- 🇵🇭Philippines abhaypai
Landed on this issue from https://www.drupal.org/project/drupal/issues/3227637 🐛 NodeController::revisionOverview is uncacheable Needs review and https://lendude.gitlab.io/bug-smash-initiative/ and i am still able to replicate this in D11
Another +1. I spent quite some time with a debugger trying to find why a GraphQL query wasn't cached.
- Merge request !7362Deprecate calling addCacheableDependency() with a non CacheableDependencyInterface object → (Open) created by leksat
Tried to fix
LocalActionManagerTest::testGetActionsForRoute
.It fails because in the test we mock
LocalActionInterface
which does not extendCacheableDependencyInterface
. And then it is passed toRefinableCacheableDependencyTrait::addCacheableDependency()
.The actual class (
LocalActionDefault
) however does extendCacheableDependencyInterface
.I see two options:
1. MakeLocalActionInterface
extendCacheableDependencyInterface
(would it be an API change?)
2. MockLocalActionDefault
instead (but AFAICS we always mock interfaces, not classes)Does any of them look good? Are there other options? I have no clue 😅
- 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
I think making LocalActionInterface extend is reasonable - there's a lot of code in LocalActionDefault that would make it feasible that anything custom would extend it rather than replace it
- Status changed to Needs review
9 months ago 2:39am 16 April 2024 Tests are green, but there are open questions. I've put them into the MR.
- Status changed to Needs work
9 months ago 1:30pm 16 April 2024 - Status changed to Needs review
8 months ago 4:48pm 19 April 2024 @smustgrave Changes are ready.
What about the two other questions pointed in TODOs? Should the maintainers of the corresponding modules answer them? There's one in
field_ui
and one inlayout_builder
.- Status changed to Needs work
8 months ago 9:19pm 1 May 2024 - 🇺🇸United States smustgrave
For the todos may be out of scope to remove the cache there. So to keep this one moving lets open a follow up and update the comment with a @todo to the issue created. Then should be good here.
- Status changed to Needs review
8 months ago 1:10pm 10 May 2024 Created follow-ups
- 📌 Adjust caching logic of FieldReuseAccessCheck::access() Active
- 📌 Adjust caching logic of LayoutBuilderAccessCheck::access() Active
and linked them in TODOs ✅Please note: The deprecation notice points to 10.3.0, but the MR still targets 11.x
The test failures seems to be caused by
PDOException: SQLSTATE[HY000] [2002] Connection refused
. So I guess they are random and not related.It looks like I have no permissions to re-run them 🤷
- Status changed to Needs work
8 months ago 1:42pm 10 May 2024 - 🇺🇸United States smustgrave
Would recommend rebasing the MR. Seems to be 300+ commits behind.
- Status changed to Needs review
8 months ago 5:23am 13 May 2024 - Status changed to RTBC
8 months ago 1:16pm 13 May 2024 - 🇺🇸United States smustgrave
Feedback does appear to be addressed and deprecation seems correct.
LGTM
- Status changed to Needs work
8 months ago 1:45pm 13 May 2024