-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[WebProfiler] Improve HttpClient Panel #33315
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] Improve HttpClient Panel #33315
Conversation
I started to work on this feature and I have few questions :
Does display the total of request in Performance metrics section is enough (see picture) or we should also implement details for each request in Execution timeline section
I just add a href link, I don't know how to implement a copy as curl button in pure html but the user can still copy the link :-)
Body is returned via |
@@ -8,6 +8,17 @@ | |||
<span class="sf-toolbar-value">{{ collector.requestCount }}</span> | |||
{% endset %} | |||
|
|||
{% set text %} | |||
<div class="sf-toolbar-info-piece"> | |||
<b>Total Requests</b> |
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.
Total requests
</div> | ||
<div class="sf-toolbar-info-piece"> | ||
<b>HTTP errors</b> | ||
<span>{{ collector.errorCount }}</span> |
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.
class="sf-toolbar-status sf-toolbar-status-red"
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/http_client.html.twig
Outdated
Show resolved
Hide resolved
Now I'm wondering: where are the request options, which contain the request headers? It might be useful to display them too. |
For copy-as-curl, we should be able to borrow from the copy/paste buttons here on the GitHub UI for example. |
Thanks for reaction 👍 Few questions : |
I personally prefer a compact layout, so that when 10+ requests are made, you don't have to scroll 10+ screens to seem them all. But I'll let others decide what's best as design is not my 1st skill... |
another solution for the case of many requests is to allow collapsing each request (we already have the JS for that) |
@ismail1432 up to move this one forward? If there are things that you don't have time to finish, please remove them from the PR so we can merge the ready parts. |
Sorry for the delay, I'll remove asap the part that I can't finish. |
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/http_client.html.twig
Outdated
Show resolved
Hide resolved
done @nicolas-grekas |
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/http_client.html.twig
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/http_client.html.twig
Show resolved
Hide resolved
Thank you @ismail1432. |
This PR was merged into the 5.1-dev branch. Discussion ---------- [WebProfiler] Improve HttpClient Panel | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | np <!-- please add some, will be required by reviewers --> | Fixed tickets | #33311 <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | ? Wishlist from issue : - [x] the panel UI could be improved I suppose, e.g. a tooltip on hover in the toolbar - [ ] putting requests in the "Performance" tab would be great (all timings are already in the collected "info") - [ ] ~response bodies are not collected yet~ #33315 (comment) - [ ] when a transport error occurs, (ie the "error" info is populated) we should maybe have a better display too? - [x] add a copy-as-curl button next to each request **[EDIT 07 oct 19]** This PR contains : - Display a tooltip in Toolbar - Add a link only for GET Request in profiler panel  Commits ------- e2e6bd0 [WebProfiler] Improve HttpClient Panel
Wishlist from issue :
response bodies are not collected yet[WebProfiler] Improve HttpClient Panel #33315 (comment)[EDIT 07 oct 19]
This PR contains :