Needs work
Project:
Drupal core
Version:
main
Component:
views.module
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Nov 2015 at 14:13 UTC
Updated:
30 Jan 2023 at 22:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dawehnerThank you wim for creating this issue!
Comment #4
xjmThe core committers and Views maintainers agreed that this is a major issue, because it will interfere with Views being cached and invalidated properly.
Comment #12
danflanagan8This issue appears to be outdated. I tried reproducing locally on and I couldn't expose any problems. In fact I have an automated test that I'm attaching to demonstrate that cacheable metadata bubbles up from a token in a title override. The existing test was relatively easy to modify.
I'll run the test here and then close the issue if it passes.
Comment #13
danflanagan8Bah, I've removed the extra newline. This one should run.
I might not close this right away though, on second thought. There's just not enough context in the IS or the issue this spun off of.
I was expecting the recreate the bug actually, given the appearance of
\Drupal\views\Plugin\views\PluginBase::globalTokenReplace. It doesn't pass around$bubbleable_metadataexplicitly. But in the background, the token service seems to make it all work. See:https://git.drupalcode.org/project/drupal/-/blob/9.3.x/core/lib/Drupal/C...
I can't find any meaningful changes in any of the relevant classes that were made after this issue was posted though. That's one reason I've become hesitant to close the issue. "Token" can mean several things and they can be used in several places. Maybe I missed something.
Comment #17
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.