Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Closed
wants to merge 2 commits into from
Closed

Webprofiler add status code to search form #17125

wants to merge 2 commits into from

Conversation

oktapodia
Copy link
Contributor

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
image

After filter
image

@oktapodia
Copy link
Contributor Author

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');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these changes correct?

@sstok
Copy link
Contributor

sstok commented Dec 26, 2015

Status: Needs work

@oktapodia
Copy link
Contributor Author

@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 }}">
Copy link
Contributor

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?

@oktapodia
Copy link
Contributor Author

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));
Copy link
Member

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?

@javiereguiluz
Copy link
Member

@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.

@stof
Copy link
Member

stof commented Jan 28, 2016

Status: needs work

@oktapodia
Copy link
Contributor Author

I think there are some problems with your tests.

screen

@GuilhemN
Copy link
Contributor

GuilhemN commented Feb 1, 2016

Try to rebase on master.

@oktapodia
Copy link
Contributor Author

@Ener-Getick Thanks but my PR is not mergeable if I rebase on master

@GuilhemN
Copy link
Contributor

GuilhemN commented Feb 1, 2016

This is a new feature so it will be merged in master anyway. Try to rebase it on 3.0 otherwise.

@oktapodia
Copy link
Contributor Author

Same problem :(

@GuilhemN
Copy link
Contributor

GuilhemN commented Feb 1, 2016

It's apparently not related to your PR (see https://github.com/symfony/symfony/branches). So don't worry ;)

@javiereguiluz javiereguiluz modified the milestone: 3.1 Feb 2, 2016
@javiereguiluz
Copy link
Member

Failed tests have been fixed. I've played with this feature and it works as expected:

200

404

👍

Status: reviewed

@xabbuh
Copy link
Member

xabbuh commented Feb 9, 2016

👍

@oktapodia
Copy link
Contributor Author

Thanks @javiereguiluz

@fabpot
Copy link
Member

fabpot commented Feb 9, 2016

Thank you @oktapodia.

@fabpot fabpot closed this Feb 9, 2016
fabpot added a commit that referenced this pull request Feb 9, 2016
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*
![image](https://i.gyazo.com/8cb99295b12489cc9024ccc07fabf805.png)

*After filter*
![image](https://i.gyazo.com/4caaf032b56ccfe84198a230dbb211a2.png)

Commits
-------

7d3700a Webprofiler add status code to search form
@rvanlaak
Copy link
Contributor

👍

@oktapodia oktapodia deleted the webprofiler-add-status-code-to-search-form branch February 14, 2016 12:25
@fabpot fabpot mentioned this pull request May 13, 2016
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.

9 participants