Skip to content

[HttpKernel] Fix TimeDataCollector #42823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented Sep 1, 2021

In order for the TimeDataCollector to work properly the X-Debug-Token from the response header needs to be used which was removed in #42331 to fix #36623. Fixes #42804

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #42804
License MIT
Doc PR N/A

In order for the TimeDataCollector to work properly the X-Debug-Token from the response header needs to be used which was removed in #42331 to fix #36623.

Manually tested via profiler in a new app and via disabled profiler and command mentioned in #36623 (comment). I'm not a 100% sure if this is the best fix though.

@herndlm herndlm changed the base branch from 5.4 to 4.4 September 1, 2021 08:28
@herndlm herndlm changed the title [HttpKernel] Fix TimeDataCollector [HttpKernel] Fix TimeDataCollector Sep 1, 2021
In order for the `TimeDataCollector` to work properly the `X-Debug-Token` from the response header needs to be used which was removed in symfony#42331 to fix symfony#36623. Fixes symfony#42804
@herndlm
Copy link
Contributor Author

herndlm commented Sep 1, 2021

The goal here was to be compatible with the previous behaviour but another simpler solution is at #42830

@herndlm
Copy link
Contributor Author

herndlm commented Sep 1, 2021

With the changes being only in one component there is no need for keeping the header token check I guess. The simpler fix is definitely the better one than!

@herndlm herndlm closed this Sep 1, 2021
fabpot added a commit that referenced this pull request Sep 1, 2021
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpKernel] Fix empty timeline in profiler

Simple fix to #42804

| Q             | A
| ------------- | ---
| Branch?       | 5.3 && 4.4
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix #42804 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT

Fix #42804 following #42331 conventions

Another solution could be found here #42823

<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - Never break backward compatibility (see https://symfony.com/bc).
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too.)
 - Features and deprecations must be submitted against branch 5.x.
 - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
-->

Commits
-------

f1b3840 [HttpKernel] Fix timeline in profiler
@herndlm herndlm deleted the bugfix/fix-kernel-time-data-collector branch September 1, 2021 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[HttpKernel] Timeline in profiler is broken since 5.3.7 Requests leave stopwatch section open
2 participants