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

[Messenger] Making cache rebuild correctly when message subscribers change#31445

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

@weaverryan
Copy link
Member

QA
Branch?4.3
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#31409
LicenseMIT
Doc PRnot needed

An edge-case that's identical toEventSubscriberInterface: when the return value ofgetHandledMessages() changes, the container needs to be rebuilt.

If you're wondering why these checks aren't in their own resource class, see#25984 - it's something we probably should do, but haven't done yet.

@weaverryanweaverryanforce-pushed themessenger-subscriber-cache-rebuild branch from2355715 tod88446bCompareMay 9, 2019 16:56
@weaverryanweaverryan changed the base branch from4.3 to4.2May 9, 2019 16:56
class TestMessageSubscriberConfigHolder
{
publicstatic$handledMessages = [];
}
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I discovered thattestEventSubscriber() andtestServiceSubscriber() are invalid. Part of the signature ofReflectionClassResource is the constants and their values. So, to purely test that the resource becomes stale when a static method is called, we must do thatwithout modifying any constants.

Those other 2 methods need to be fixed in 3.4 - you can comment out the code inReflectionClassResource for each and they still pass.

@weaverryanweaverryan modified the milestones:4.3,4.2May 9, 2019
@nicolas-grekas
Copy link
Member

Good catch, thanks@weaverryan.

@nicolas-grekasnicolas-grekas merged commitd88446b intosymfony:4.2May 11, 2019
nicolas-grekas added a commit that referenced this pull requestMay 11, 2019
…bscribers change (weaverryan)This PR was merged into the 4.2 branch.Discussion----------[Messenger] Making cache rebuild correctly when message subscribers change| Q             | A| ------------- | ---| Branch?       | 4.3| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#31409| License       | MIT| Doc PR        | not neededAn edge-case that's identical to `EventSubscriberInterface`: when the return value of `getHandledMessages()` changes, the container needs to be rebuilt.If you're wondering why these checks aren't in their own resource class, see#25984 - it's something we probably should do, but haven't done yet.Commits-------d88446b Making cache rebuild correctly with MessageSubscriberInterface return values
This was referencedMay 22, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.2

Development

Successfully merging this pull request may close these issues.

3 participants

@weaverryan@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp