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

[Cache] fix logic for fetching tag versions on TagAwareAdapter#27158

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
nicolas-grekas merged 1 commit intosymfony:3.4fromdmaicher:fix-issue-27147
May 5, 2018

Conversation

@dmaicher
Copy link
Contributor

QA
Branch?3.4
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#27147
LicenseMIT
Doc PR-

There was a problem introduced in#27007 which breaks tag invalidation.

From what I can see there were some cases when the actual tag versions were never fetched from the tags pool and version=0 was used.

@nicolas-grekas this is my attempt of understanding the logic withinTagAwareAdapter. Please have a look if this makes sense to you 😉

}

if (!isset($this->knownTagVersions[$tag])) {
$fetchTagVersions =true;

Choose a reason for hiding this comment

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

That's the correct fix thanks. I'd just suggest to keep the previous single "if" and add this line in it.

dmaicher reacted with thumbs up emoji
@nicolas-grekasnicolas-grekas added this to the3.4 milestoneMay 5, 2018
@nicolas-grekas
Copy link
Member

Thank you@dmaicher.

@nicolas-grekasnicolas-grekas merged commitd3790ca intosymfony:3.4May 5, 2018
nicolas-grekas added a commit that referenced this pull requestMay 5, 2018
…pter (dmaicher)This PR was squashed before being merged into the 3.4 branch (closes#27158).Discussion----------[Cache] fix logic for fetching tag versions on TagAwareAdapter| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#27147| License       | MIT| Doc PR        | -There was a problem introduced in#27007 which breaks tag invalidation.From what I can see there were some cases when the actual tag versions were never fetched from the tags pool and version=0 was used.@nicolas-grekas this is my attempt of understanding the logic within `TagAwareAdapter`. Please have a look if this makes sense to you 😉Commits-------d3790ca [Cache] fix logic for fetching tag versions on TagAwareAdapter
@dmaicherdmaicher deleted the fix-issue-27147 branchMay 5, 2018 19:50
@andrerom
Copy link

@nicolas-grekas Any chance getting a small 3.4 release out?
The issue this fixes broke usage in 3.4.9, second symfony version we have had to put up as conflict over the last few months(haven't had to do that for a very long time).

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

3.4

Development

Successfully merging this pull request may close these issues.

4 participants

@dmaicher@nicolas-grekas@andrerom@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp