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] Fix configuration of the cache key#36340

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

Merged
fabpot merged 1 commit intosymfony:4.4fromdunglas:fix-exclude-cache-key
Aug 17, 2020

Conversation

@dunglas
Copy link
Member

QA
Branch?4.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#35574doctrine/orm#8030 (partially)
LicenseMIT
Doc PRn/a

Currently, a bug prevents to configure the context keys to exclude from the cache key computation. The value is always replaced in the constructor. This PR fixes the problem.

@dunglasdunglas changed the title[Serializer] It must possible to configure to keys to exclude for the cache key computation[Serializer] It must be possible to configure the keys to exclude from the cache key computationApr 4, 2020
@dunglasdunglas changed the title[Serializer] It must be possible to configure the keys to exclude from the cache key computation[Serializer] Fix configuration of the cache keyApr 4, 2020
@dunglasdunglasforce-pushed thefix-exclude-cache-key branch from981b57a to2875404CompareApril 4, 2020 07:46
@alanpoulain
Copy link
Contributor

It's only an issue if the default context for the cache key is changed by a child class and if the constructor is called afterwards, doesn't it?

@nicolas-grekasnicolas-grekas added this to the4.4 milestoneApr 4, 2020
@nicolas-grekas
Copy link
Member

A test case would be nice if you can.

@dunglas
Copy link
MemberAuthor

dunglas commentedApr 5, 2020
edited
Loading

@alanpoulain it's even the case if you just pass the keys to exclude as parameter of the constructor.
@nicolas-grekas test added and exception message fixed

@fabpot
Copy link
Member

Is this one still relevant? I see that the original issue has been closed as the problem has been fixed in PHP itself IIUC? /cc@dunglas@nicolas-grekas

@dunglas
Copy link
MemberAuthor

AFAIK it's still an issue.

@fabpot
Copy link
Member

@dunglas Ok, can you rebase so that we can merge?

@fabpotfabpotforce-pushed thefix-exclude-cache-key branch from116110a to3b034cbCompareAugust 17, 2020 06:10
@fabpot
Copy link
Member

Thank you@dunglas.

@fabpotfabpot merged commit66b9fef intosymfony:4.4Aug 17, 2020
This was referencedAug 31, 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

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

5 participants

@dunglas@alanpoulain@nicolas-grekas@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp