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

[HttpFoundation] AutExpireFlashBag should not clear new flashes#25182

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

Conversation

@Simperfit
Copy link
Contributor

@SimperfitSimperfit commentedNov 28, 2017
edited
Loading

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#9318
LicenseMIT
Doc PRnone

I feel like very happy ! :)
But don't worry I'm.

img_2826

sroze reacted with laugh emoji
@sroze
Copy link
Contributor

Tests? :)

@Simperfit
Copy link
ContributorAuthor

There are no way to return new, so If I add a test It will be the same as theall or theclear one.

@sroze
Copy link
Contributor

sroze commentedNov 28, 2017
edited
Loading

And you've got one now 😉

I believe that it's a real bug.

Simperfit reacted with thumbs up emoji

@nicolas-grekasnicolas-grekas added this to the2.7 milestoneNov 28, 2017
@nicolas-grekas
Copy link
Member

ping@Tobion I guess

Copy link
Contributor

@TobionTobion left a comment
edited
Loading

Choose a reason for hiding this comment

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

👍get() does not clear the new flashes. Soall() should not either.

@fabpot
Copy link
Member

The current behavior is intended. That's not a bug. A flash is something you can get once and only once, no matter if you get it for the current or the next request.

@sroze
Copy link
Contributor

sroze commentedNov 28, 2017 via email

@fabpot agreed. The point is: if in your code, you add something before the"previous" ones are displayed, it should not remove the ones you've justadded.
On Tue, 28 Nov 2017 at 18:05, Fabien Potencier ***@***.***> wrote: The current behavior is intended. That's not a bug. A flash is something you can get once and only once, no matter if you get it for the current or the next request. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#25182 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAxHEeBB1MzEdgrHdnZ7AVXrEwElx2Grks5s7EuFgaJpZM4Qst4B> .

@fabpot
Copy link
Member

I should have read the code first. The code is weird indeed, asall() does not return the new ones, only the previous ones. So, the fix looks fine.

@fabpot
Copy link
Member

Thank you@Simperfit.

@fabpotfabpot merged commit706201e intosymfony:2.7Nov 29, 2017
fabpot added a commit that referenced this pull requestNov 29, 2017
…ashes (Simperfit, sroze)This PR was merged into the 2.7 branch.Discussion----------[HttpFoundation] AutExpireFlashBag should not clear new flashes| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no <!-- don't forget to update UPGRADE-*.md files -->| Tests pass?   | yes| Fixed tickets |#9318| License       | MIT| Doc PR        | noneI feel like very happy ! :)But don't worry I'm.![img_2826](https://user-images.githubusercontent.com/3451634/33304006-99d44f38-d406-11e7-93f2-4dbc19891299.jpg)Commits-------706201e Test that it do not remove the new flashes when displaying the existing ones7fe3fe8 [HttpFoundation] AutExpireFlashBag should not clear new flashes
@Simperfit
Copy link
ContributorAuthor

Simperfit commentedNov 29, 2017 via email

Thanks to@sroze too !Le mer. 29 nov. 2017 à 02:56, Fabien Potencier <notifications@github.com> aécrit :
Merged#25182 <#25182>. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#25182 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ADSq8kCMMsH2sGWgNz_DdCOqmX962eb0ks5s7LnggaJpZM4Qst4B> .

@SimperfitSimperfit deleted the bugfix/auflashbag-should-not-clear-flashes-in-new branchMay 26, 2019 17:17
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

+1 more reviewer

@TobionTobionTobion approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

6 participants

@Simperfit@sroze@nicolas-grekas@fabpot@Tobion@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp