-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Figure out why the pulse filters don't show up in the list of permissions #8034
Comments
Findings so far:
This seems to be something to do with permissions not being present on staging/production. This Group form code fetches the registered permissions for snippets when constructing the 'Object permissions' list on the Group admin page. When recreating the call in the shell locally vs staging the list of permission objects is empty on staging: Local:
Staging:
So to progress we need to investigate why the permissions don't appear to be present on staging and production. |
This is starting to smell like a migration file got updated in-place, where stage/prod had the class, then later it got switched to a snippet, but the migration that created the class got updated, rather than having a new migration that changed the data layout. Although a prod copy should be identical in table data so if the databases look different after copying, we'll have to pick up the investigations there, first. |
Moving back to backlog as agreed in standup until we have a clear sense on Pulse strategy |
Moving this up for Maintenance/bug issues |
In looking in to this, these permissions now seem to be present on both production and staging. Looking at deployment logs, there was an error running migrations starting when these models were first added, meaning the full migration process (and |
Created #9547 to prevent similar issues by exiting out of the release pipeline when commands fail. |
Thanks for looking into this @tomusher. I left one question on the PR, but only for my own learning 😅 |
Merged and deployed. All is well. Thanks for this @tomusher. |
Pulse filters show up in the list of snippets:
But they are nowhere to be found in the list of items that can be assigned permissions when creating/editing a group.
Code:
https:/mozilla/foundation.mozilla.org/blob/main/network-api/networkapi/wagtailpages/pagemodels/pulse.py#L9
The text was updated successfully, but these errors were encountered: