Skip to content

Improved the Ajax profiler panel when there are exceptions #26665

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

Merged
merged 1 commit into from
Mar 27, 2018

Conversation

javiereguiluz
Copy link
Member

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #26646
License MIT
Doc PR -

This makes the following changes in the Ajax panel:

  • The Profiler column is now the first one.
  • When the response status code is 400 or higher, the profiler link points to the exception panel instead of the default request/response panel

ajax-panel

Copy link
Contributor

@ostrolucky ostrolucky left a comment

Choose a reason for hiding this comment

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

Some unnecessary moving of code blocks, increasing likehood of merge conflicts, but I'll let others decide how important that is

@javiereguiluz
Copy link
Member Author

@ostrolucky the main problem is moving this line -> var profilerCell = row.children[0]; I did that because this cell is now the first one instead of the last one, so it was weird to leave it at the end as before. But I can revert this if needed 😃

@ostrolucky
Copy link
Contributor

Yes I see your reasoning. I would do the same in most codebases too.

@fabpot
Copy link
Member

fabpot commented Mar 27, 2018

Thank you @javiereguiluz.

@fabpot fabpot merged commit 074d68d into symfony:master Mar 27, 2018
fabpot added a commit that referenced this pull request Mar 27, 2018
…ions (javiereguiluz)

This PR was merged into the 4.1-dev branch.

Discussion
----------

Improved the Ajax profiler panel when there are exceptions

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #26646
| License       | MIT
| Doc PR        | -

This makes the following changes in the Ajax panel:

* The `Profiler` column is now the first one.
* When the response status code is `400` or higher, the profiler link points to the exception panel instead of the default request/response panel

![ajax-panel](https://user-images.githubusercontent.com/73419/37874477-52cf3888-3030-11e8-8042-23351f2e7a0f.png)

Commits
-------

074d68d Improved the Ajax profiler panel when there are exceptions
@fabpot fabpot mentioned this pull request May 7, 2018
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.

4 participants