-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Webprofiler add status code to search form #17125
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
Webprofiler add status code to search form #17125
Conversation
Following the PR #15111 |
$end = $request->query->get('end', $session->get('_profiler_search_end')); | ||
$limit = $request->query->get('limit', $session->get('_profiler_search_limit')); | ||
$token = $request->query->get('token', $session->get('_profiler_search_token')); | ||
$ip = $session->get('_profiler_search_ip'); |
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.
Are these changes correct?
Status: Needs work |
@sstok Oops ! Mistake after the rebase, FIxed. |
@@ -16,6 +16,11 @@ | |||
</div> | |||
|
|||
<div class="form-group"> | |||
<label for="status_code">Status</label> | |||
<input type="text" name="status_code" id="status_code" value="{{ status_code }}"> |
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.
Why not using a number
input here?
ping @sstok Can I have some news please ? |
{ | ||
$profiler = new Profiler($this->storage); | ||
|
||
$this->assertCount(0, $profiler->find(null, null, null, null, null, null, 204)); |
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.
AFAIU, you do not test anything here. Can you add a test where the count is non-zero?
@oktapodia your pull request looks good and the proposed feature is nice! We just need a final push to finish it. Do you think you can add the test asked for by Fabien? Thanks. |
Status: needs work |
Try to rebase on master. |
@Ener-Getick Thanks but my PR is not mergeable if I rebase on master |
This is a new feature so it will be merged in master anyway. Try to rebase it on 3.0 otherwise. |
Same problem :( |
It's apparently not related to your PR (see https://github.com/symfony/symfony/branches). So don't worry ;) |
👍 |
Thanks @javiereguiluz |
Thank you @oktapodia. |
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
👍 |
With this PR, in the web profiler, you can filter by HTTP status codes.
Before filter

After filter
