Skip to content

Fixed missing request type in event #452

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

Closed

Conversation

Toflar
Copy link
Contributor

@Toflar Toflar commented May 9, 2019

I noticed there's a major issue in the CacheEvent because it's lacking the request type. If you want to send a request via $httpCache = $event->getKernel()->handle($$event->getRequest()) in an event listener yourself, you don't know the request type which means it's always going to be a master request even though it should be a sub request (e.g. Symfony's AbstractSurrogateHandler).

@Toflar Toflar force-pushed the fix-missing-request-type branch from 7188a7e to 25cf2d9 Compare May 9, 2019 16:24
Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

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

that makes sense and looks clean to me. can you please add a changelog entry for this? i'd consider it a new feature, not a bug, as nothing in the library itself is not working correctly, so the release for this would be 2.7.0

@Toflar
Copy link
Contributor Author

Toflar commented May 14, 2019

Done, I've also added some unit tests :) I know it's rather a feature, it's just a pretty important one because I cannot fix my bug without having that feature 🙈

@Toflar
Copy link
Contributor Author

Toflar commented May 14, 2019

Failing tests are unrelated. Something with the docs is not working.

@dbu
Copy link
Contributor

dbu commented May 14, 2019

yeah, the doc build fails because somethingsomething pyton/sphinx. i tried to fix it in #450 but no luck yet.

@dbu dbu mentioned this pull request May 14, 2019
@dbu
Copy link
Contributor

dbu commented May 14, 2019

can you check out #453 please? i think we should use the HttpKernelInterface for the constants

@Toflar
Copy link
Contributor Author

Toflar commented May 14, 2019

You could've just pushed to this PR 😄

@dbu
Copy link
Contributor

dbu commented May 14, 2019

do i have push rights in your copy of the repo?

I could also give you push rights here on the repo, if you want to become co-maintainer ;-)

@Toflar
Copy link
Contributor Author

Toflar commented May 14, 2019

do i have push rights in your copy of the repo?

The checkbox "Allow edits from maintainers." is enabled by default 😄

I could also give you push rights here on the repo, if you want to become co-maintainer ;-)

I'll leave this decision up to you 😄

@Toflar Toflar closed this May 14, 2019
@Toflar Toflar deleted the fix-missing-request-type branch May 14, 2019 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants