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

[Serializer] Use default context EXCLUDE_FROM_CACHE_KEY for unsetting OBJECT_TO_POPULATE#36363

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

@alanpoulain
Copy link
Contributor

QA
Branch?4.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsN/A
LicenseMIT
Doc PRN/A

Following#36332, instead of unsetting directly theOBJECT_TO_POPULATE key from the context ingetCacheKey, we can add the key to theEXCLUDE_FROM_CACHE_KEY array of the default context for Symfony >= 4.4.

@nicolas-grekasnicolas-grekas added this to the4.4 milestoneApr 10, 2020
@nicolas-grekasnicolas-grekasforce-pushed theserializer-fix-cache-key-unitialized-properties-default-context branch fromdd38271 to8d9a1b6CompareSeptember 2, 2020 15:37
@nicolas-grekas
Copy link
Member

I think we should reject this PR:

  1. it has a BC breaking potential (merging it for ppl that set theEXCLUDE_FROM_CACHE_KEY key will not unset(OBJECT_TO_POPULATE) anymore).
  2. nobody complained that it could not use the OBJECT_TO_POPULATE as part of the cache key (I fail to see what the use case would be).
dunglas reacted with thumbs up emoji

@dunglas
Copy link
Member

I agree with@nicolas-grekas, let's close for now. We can still do it in a new PR if it becomes necessary at some point. Thanks for contributing@alanpoulain!

@dunglasdunglas closed thisSep 2, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@dunglasdunglasAwaiting requested review from dunglasdunglas is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

4 participants

@alanpoulain@nicolas-grekas@dunglas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp