Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

WDT following AJAX requests#9692

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
jeffreymb wants to merge3 commits intosymfony:masterfromjeffreymb:wdt_follow_ajax
Closed

WDT following AJAX requests#9692

jeffreymb wants to merge3 commits intosymfony:masterfromjeffreymb:wdt_follow_ajax

Conversation

@jeffreymb
Copy link
Contributor

This PR is for#8409 and the functionality insymfony/symfony#26655.

This is my first Doc PR so I'm happy for all the constrictive input there is to give. I'm really hoping this functionality can make 4.1.

@jeffreymbjeffreymb changed the titleFirst attempt at documenting the WDT following AJAX requestsWDT following AJAX requestsApr 27, 2018
Copy link
Contributor

@tomtomautomtomau left a comment

Choose a reason for hiding this comment

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

I've left a few suggestions and flagged a few typos but otherwise looks good to me.

Thanks for teaching me something new as well!

.. index::
single: Profiling: WDT Auto-update after AJAX Request

How to make the Web Debug Toolbar Auto-upate after AJAX Requests
Copy link
Contributor

Choose a reason for hiding this comment

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

typoupdate

================================================================

For single page applications it is often inconvenient to find the profiler
information for the most recent request. It would be much more convient if it
Copy link
Contributor

Choose a reason for hiding this comment

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

typoconvenient

Copy link
Contributor

Choose a reason for hiding this comment

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

Consider rephrase to:

It would be more convenient if the toolbar showed the information for the most recent AJAX request instead of the initial page load.

the toolbar would show the information from the most recent AJAX request
instead of your initial page load.

By setting the `Symfony-Debug-Toolbar-Replace` to a value of `1` in the
Copy link
Contributor

Choose a reason for hiding this comment

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

By setting theSymfony-Debug-Toolbar-Replaceheader to a value of1


$response->headers->set('Symfony-Debug-Toolbar-Replace', 1);

Only setting the header durring development
Copy link
Contributor

Choose a reason for hiding this comment

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

typoduring

Only setting the header durring development
-------------------------------------------

Ideally this header should only be set durring development and not for
Copy link
Contributor

Choose a reason for hiding this comment

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

typoduring

Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps:

As the Web Debug Toolbar should not be used in production, this header should only be set in the development environment. This can be accomplished by creating akernel.response event listener that is only registered in the development environment.

Copy link
Member

@javiereguiluzjaviereguiluz left a comment

Choose a reason for hiding this comment

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

A fantastic feature and a very nice first contribution to Symfony Docs. Thanks a lot!

showed the information for the most recent AJAX request instead of the
initial page load.

By setting the `Symfony-Debug-Toolbar-Replace` header to a value of `1` in the

Choose a reason for hiding this comment

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

The syntax used in Symfony Docs is similar to Markdown, but different in some cases. One of those cases is the use of double backticks for code. This:

`Symfony-Debug-Toolbar-Replace`

should be written like this:

``Symfony-Debug-Toolbar-Replace``

Same for the1 code used in the same phrase.


$response->headers->set('Symfony-Debug-Toolbar-Replace', 1);

Only setting the header during development

Choose a reason for hiding this comment

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

For titles we use a special "title case" where the first letter of most, but not all, words is uppercased. So, this title should be:

Only Setting the Header During Development------------------------------------------

@jeffreymbjeffreymb deleted the wdt_follow_ajax branchMay 2, 2018 09:41
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@javiereguiluzjaviereguiluzjaviereguiluz approved these changes

+1 more reviewer

@tomtomautomtomautomtomau requested changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.1

Development

Successfully merging this pull request may close these issues.

4 participants

@jeffreymb@javiereguiluz@tomtomau@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp