-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpKernel] [WebProfilerBundle] added HTTP status to profiler search result #13034
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
Conversation
beeab74
to
9d53f00
Compare
Nice one! |
@xelaris The format of the storage has changed in almost all minor versions of Symfony, so I think it's safe to assume the same for 2.7. |
👍 |
👍 |
@@ -32,6 +33,7 @@ public function getFunctions() | |||
{ | |||
return array( | |||
new \Twig_SimpleFunction('profiler_dump', array($this, 'dumpValue')), | |||
new \Twig_SimpleFunction('http_status_text', array($this, 'httpStatusText')), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
your function depends only on HttpFoundation, so it should go in the HttpFoundationExtension of the bridge IMO
👍 (the failing tests are because the Form changes of 2.7 have not yet been merged into the master branch) |
Thank you @xelaris. |
Would be great if this could be added to the search form too. I'd like to be able to easily identify and filter on requests with exceptions. |
This PR was submitted for the 3.0 branch but it was merged into the 3.1-dev branch instead (closes #17125). Discussion ---------- Webprofiler add status code to search form | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #13034 | License | MIT With this PR, in the web profiler, you can filter by HTTP status codes. *Before filter*  *After filter*  Commits ------- 7d3700a Webprofiler add status code to search form
…tus to profiler search result (xelaris) This PR was squashed before being merged into the 2.7 branch (closes symfony#13034). Discussion ---------- [HttpKernel] [WebProfilerBundle] added HTTP status to profiler search result | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | yes | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#12944 | License | MIT | Doc PR | With this PR HTTP status codes are provided in the search results to simplify identification of particular requests. For the schema-less storage implementations (memcache(d), redis, mongodb) and the default file storage, it should work without purging existing profiles. But the code could be simplified, if it is an option to expect old profiles to be purged. For database driven storages (mysql, sqlite), the `sf_profiler_data` table must be dropped anyway (if the table isn't altered manually by adding the `status_code` column). Thus the changes are not fully BC.  Commits ------- 34ecda5 [HttpKernel] [WebProfilerBundle] added HTTP status to profiler search result
With this PR HTTP status codes are provided in the search results to simplify identification of particular requests.
For the schema-less storage implementations (memcache(d), redis, mongodb) and the default file storage, it should work without purging existing profiles. But the code could be simplified, if it is an option to expect old profiles to be purged. For database driven storages (mysql, sqlite), the
sf_profiler_data
table must be dropped anyway (if the table isn't altered manually by adding thestatus_code
column). Thus the changes are not fully BC.