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

[WebProfilerBundle] Load toolbar "forever", allow users to cancel#41257

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

Merged
fabpot merged 2 commits intosymfony:5.4fromaleho:feature/toolbar-infinite-loading
Nov 3, 2021
Merged

[WebProfilerBundle] Load toolbar "forever", allow users to cancel#41257

fabpot merged 2 commits intosymfony:5.4fromaleho:feature/toolbar-infinite-loading
Nov 3, 2021

Conversation

@aleho
Copy link
Contributor

QA
Branch?5.x
Bug fix?yes
New feature?no
Deprecations?no
TicketsRefs#41112
LicenseMIT

On projects where finishing the request takes some time, loading should not be stopped after a definitive amount of time.

The latest changes introducing an increasing hold-off timer make failures to load the toolbar less likely, although not impossible. They also increase the loading times too much in a too short period of time in my opinion and they don't account for the most common cases where only a short delay is needed.

These changes make the toolbar appear almost instantly in the projects I tested, even if the first request failed.

toolbar

The toolbar with loading counter will only be shown after the original amount of requests (5) were unsuccessful to flash as little as possible. It allows to cancel the loop, if needed.

On projects where finishing the request takes some time, loadingshould not be stopped after a definitive amount of time.The loading bar will only be shown after the original amount ofrequests (5) were unsuccessful to flash as little as possible.Also the hold-off has been changed to 500 and a maximum of 2000.
@carsonbot
Copy link

Hey!

I see that this is your first PR. That is great! Welcome!

Symfony has acontribution guide which I suggest you to read.

In short:

  • Always add tests
  • Keep backward compatibility (seehttps://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (seehttps://symfony.com/releases)
  • Features and deprecations must be submitted against the 5.x branch.

Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change.

When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

@carsonbotcarsonbot changed the titleLoad toolbar "forever", allow users to cancel[WebProfilerBundle] Load toolbar "forever", allow users to cancelMay 18, 2021
@nicolas-grekasnicolas-grekas added this to the5.x milestoneMay 18, 2021
@carsonbot
Copy link

Hey!

I think@Chi-teck has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

Copy link
Member

@jderussejderusse left a comment

Choose a reason for hiding this comment

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

Works for me except for a little bug when the user click oncancel the toolbar disappear then re-appear

Comment on lines 496 to 498
if (count>5) {
that.initToolbar(token);
}
Copy link
Member

Choose a reason for hiding this comment

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

It means we are starting to show the toolbar after the 5th attempt.

I wonder if we shouldn't show the toolbar immediately (or at least after one or 2 seconds)

@jderusse
Copy link
Member

@aleho I push few fix in your repo

Peek 2021-11-02 18-56

@symfony/mergers PR RFR

aleho reacted with heart emoji

@fabpot
Copy link
Member

Thank you@aleho.

aleho reacted with heart emoji

@fabpotfabpot merged commitd61b14f intosymfony:5.4Nov 3, 2021
fabpot added a commit that referenced this pull requestNov 3, 2021
…'s needed by toolbar.html.twig (weaverryan)This PR was merged into the 5.4 branch.Discussion----------[5.4][WebProfiler] Fixing missing full_stack variable that's needed by toolbar.html.twig| Q             | A| ------------- | ---| Branch?       | 5.4| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       | None| License       | MIT| Doc PR        | Not neededThe combination of#43526 and then#41257 created an undefined variable. By adding the variable here, it will flow from `toolbar_js.html.twig` into `toolbar.html.twig`.Tested locally after reproducing the issue. Thanks to symfony/ux test suite for catching this :)Commits-------0e8b864 Fixing missing full_stack variable that's needed by toolbar.html.twig
@aleho
Copy link
ContributorAuthor

Thanks guys! I was down with a cold only to "wake up" to this being improved and merged!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@jderussejderussejderusse left review comments

@stofstofstof approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

7 participants

@aleho@carsonbot@jderusse@fabpot@stof@nicolas-grekas@Nyholm

[8]ページ先頭

©2009-2025 Movatter.jp