Closed (fixed)
Project:
Group
Version:
8.x-1.4
Component:
Group (group)
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Jul 2021 at 21:25 UTC
Updated:
22 Jul 2021 at 16:04 UTC
Jump to comment: Most recent
There is a typo in src/Access/ChainGroupPermissionCalculator.php. The word calculator is misspelled as "calulator".
Fix the typo in the CID.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
devkinetic commentedComment #4
kristiaanvandeneyndeAs far as I can tell, that is the only place the CID is being used. So while it is a typo, it's not breaking anything, right?
Comment #5
devkinetic commentedI found this while integrating a patch I wrote over a year ago around group membership edit permissions back on alpha 4 or 5. I believe we came to the consensus that group wasn't going to implement permissions to edit the actual user? In either case, it was simply a minor find. I can't say if anything breaks, but the chained group permission calculator itself can be called.
I will remove that line from the description, it was based on an assumption not fact.
Comment #6
devkinetic commentedComment #7
kristiaanvandeneyndeRight, in that case, I'm thinking it might be prudent to include a post_update hook that reads out the old cache ID and stores it in the new one. Group permissions are cached because they're really expensive to calculate and maybe some websites won't like having to recalculate something that was still fine.
Maybe this is providing too much of a service, though. But I've had performance complaints before so I'm trying to tread carefully when it comes to clearing people's caches :D
Comment #8
devkinetic commentedI think that is a good idea. When we have to rebuild one of our bigger sites, we schedule downtime. I'm sure it would be appreciated, and since this isn't breaking anything currently, there is no rush.
Comment #9
kristiaanvandeneyndeLooking at the code again I was mistaken. The cache we're talking about here is a simple static cache. So it's perfectly fine to simply change the name of the cache ID.
Comment #11
kristiaanvandeneyndeTrying merge button for the first time, let's see what that does.
Comment #13
devkinetic commentedAwesome!