- Issue created by @id.aleks
- Merge request !183425407: Added user context to the H5PDefaultFormatter render array. β (Merged) created by id.aleks
- Status changed to Needs review
over 1 year ago 12:34pm 4 March 2024 - πΊπ¦Ukraine id.aleks
I have opened the MR https://git.drupalcode.org/project/h5p/-/merge_requests/18. Also attaching the fix as a patch. Please review.
- Status changed to Needs work
over 1 year ago 10:29am 27 March 2024 - π¬π§United Kingdom catch
This makes sense, but it should only add this cache context if 'save content state' is enabled I think - then when it's not enabled, there would still be a higher cache hit rate.
- Status changed to Needs review
over 1 year ago 12:09pm 7 April 2024 - πΊπ¦Ukraine id.aleks
Hello @catch, thank you for checking this. I agree with your opinion. I have pushed new changes to the MR and also added a new patch to this comment. Please review.
- πΊπΈUnited States illeace
Patch #5 no longer applies to 2.0.x-dev so created a new patch file off the latest dev code. @id.aleks - please take a look and make sure I didn't miss anything.
I have used similar steps to the ones you suggest for testing, and in my tests can confirm that the patch resolves the issue of showing a different user with the same role's cached progress. I also confirmed that the additional user context is only added when the
Save content state option
option is enabled. - πΊπ¦Ukraine id.aleks
@illeace The patch looks good to me. Could you also update the MR according to your changes?
- πΊπΈUnited States illeace
@id.aleks I've rebased the issue branch off of 2.0.x from origin and it shows as mergeable now. I've also checked out the issue branch, rolled back the code before you commits and reproduced the issue. Then I pulled in your commits and retested, confirming the issue no longer occurs. I'm not sure if it's kosher, but I'm going to go ahead and mark this RTBC, but I could get somebody else to test if desired.
- First commit to issue fork.
-
sim_1 β
committed 060902fb on 2.0.x authored by
id.aleks β
Issue #3425407 by id.aleks, illeace, catch: H5PDefaultFormatter should...
-
sim_1 β
committed 060902fb on 2.0.x authored by
id.aleks β
Automatically closed - issue fixed for 2 weeks with no activity.