8000 [HttpFoundation] AutExpireFlashBag should not clear new flashes by Simperfit · Pull Request #25182 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Simperfit
Copy link
Contributor
@Simperfit Simperfit commented Nov 28, 2017
Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #9318
License MIT
Doc PR none

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

img_2826

@sroze
Copy link
Contributor
sroze commented Nov 28, 2017

Tests? :)

@Simperfit
Copy link
Contributor Author

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

@sroze
Copy link
Contributor
sroze commented Nov 28, 2017

And you've got one now 😉

I believe that it's a real bug.

@nicolas-grekas nicolas-grekas added this to the 2.7 milestone Nov 28, 2017
@nicolas-grekas
Copy link
Member

ping @Tobion I guess

Copy link
Contributor
@Tobion Tobion left a comment

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. So all() should not either.

@fabpot
Copy link
Member
fabpot commented Nov 28, 2017

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 commented Nov 28, 2017 via email

@fabpot
Copy link
Member
fabpot commented Nov 29, 2017

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

@fabpot
Copy link
Member
fabpot commented Nov 29, 2017

Thank you @Simperfit.

@fabpot fabpot merged commit 706201e into symfony:2.7 Nov 29, 2017
fabpot added a commit that referenced this pull request Nov 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        | none

I 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 ones
7fe3fe8 [HttpFoundation] AutExpireFlashBag should not clear new flashes
@Simperfit
Copy link
Contributor Author
Simperfit commented Nov 29, 2017 via email

@Simperfit Simperfit deleted the bugfix/auflashbag-should-not-clear-flashes-in-new branch May 26, 2019 17:17
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.

6 participants
0