Skip to content
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

[WebProfilerBundle] Show AJAX requests in the symfony profiler toolbar #12000

Merged
merged 7 commits into from Sep 24, 2014

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Sep 23, 2014

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

Adds AJAX requests in the web debug toolbar.
See #8896 for the original discussion.

image

@fabpot
Copy link
Member Author

fabpot commented Sep 23, 2014

👍

1 similar comment
@romainneutron
Copy link
Contributor

👍

@nicolas-grekas
Copy link
Member

👍 ;)

@pborreli
Copy link
Contributor

happy 1️⃣ 2️⃣ 0️⃣ 0️⃣ 0️⃣ th issue/PR

@shoomyth
Copy link

Oh, this icon... Is this recent screenshot?
IMO should be more rounded

@fabpot
Copy link
Member Author

fabpot commented Sep 23, 2014

@shoomyth Unfortunately yes. But we still have 2 full months to get a nicer one.

requestCounter[0].className = className;
};

{% if (excluded_ajax_paths is defined) %}
Copy link
Member

Choose a reason for hiding this comment

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

parenthesis are not needed

@fabpot
Copy link
Member Author

fabpot commented Sep 24, 2014

@stof comments taken into account

@fabpot
Copy link
Member Author

fabpot commented Sep 24, 2014

@stof Any other comments before I merge this one?

@@ -38,14 +38,16 @@ class WebDebugToolbarListener implements EventSubscriberInterface
protected $interceptRedirects;
protected $mode;
protected $position;
protected $excludedAjaxPaths;
Copy link
Member

Choose a reason for hiding this comment

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

I think we should make it private (others should already be private btw as there is no reason to provide extension points here, but we cannot change it for BC reasons)

@stof
Copy link
Member

stof commented Sep 24, 2014

Apart from the JS optimization I suggestion, this is good to me

@stof
Copy link
Member

stof commented Sep 24, 2014

@fabpot it looks like fabbot is applying a CS fixer which is at the Contrib level rather than the Symfony one. This looks weird to me, given that the Symfony level is precisely defined as being the rules applied in Symfony

@fabpot fabpot merged commit 16d1b35 into symfony:master Sep 24, 2014
fabpot added a commit that referenced this pull request Sep 24, 2014
…profiler toolbar (Burgov, fabpot, stof)

This PR was merged into the 2.6-dev branch.

Discussion
----------

[WebProfilerBundle] Show AJAX requests in the symfony profiler toolbar

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

Adds AJAX requests in the web debug toolbar.
See #8896 for the original discussion.

![image](https://cloud.githubusercontent.com/assets/47313/4384087/43d1feb2-43b0-11e4-99c9-3e50e19e623f.png)

Commits
-------

16d1b35 optimized JS for the AJAX section of the toolbar
2e708d7 made minor tweaks to JS code
8e4c603 replaced the AJAX icon with a smaller one
b66f39a removed hack
9c74fcc removed uneeded web_profiler.debug_toolbar.excluded_ajax_paths parameter in the container
d43edaf [WebProfilerBundle] improved the ajax section of the WDT
37f7dd7 [WebProfilerBundle] Show AJAX requests in the symfony profiler toolbar
@fabpot fabpot deleted the profile_ajax_requests branch September 26, 2014 06:45
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.

None yet

6 participants