Account created on 27 June 2023, about 1 year ago
#

Recent comments

To find a view where there is role access but no role set, you can export the entire config (/admin/config/development/configuration/full/export -> Full archive -> Export), unzip and run a command like this:
find . -type f -print | grep views.view | xargs grep " role"
This prints all the instances of the text ' role' in the views, and should hopefully narrow down which views might be causing the problem.

In our case, the broken value of role was

role:
  '': null

, so searching for '': null might be faster, although I'm not sure that '': null will always be the value of role.

If it is, this command will find which files have the broken roles, and need to be fixed:
find . -type f -print | grep views.view | xargs grep "'': null"

Sorry, I'm not quite following why that is.
If > is changed to <=, it will return true if the values are the same, when it would have been false before. I'm having difficulty understanding why that would be required.

Oh of course, sorry.

Have you added any update hooks to this module previously, that I could take a look at? I've read through the hook_update_N docs but am still not sure how to go about this.

Production build 0.69.0 2024