Skip to content
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

Fix permissions by non-GDS users Rake task #3096

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

yndajas
Copy link
Member

@yndajas yndajas commented Aug 14, 2024

Trello

I noticed that some the data had a lot of events in which permissions were added but not listed. Some of the permissions could have been removed, but there were too many. It turns out I was splitting the event log's message incorrectly, so the task was looking for e.g. "Editor" within an array like ["signin", " Editor"]. This revises the split to account for the programmatically-added whitespace, which should (correctly) result in more matches


This application is owned by the publishing platform team. Please let us know in #govuk-publishing-platform when you raise any PRs.

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

Copy link
Contributor

@Gweaton Gweaton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My kinda PR

@yndajas yndajas force-pushed the permissions_by_non_gds_users_fix branch from 06361cd to 84126fe Compare August 14, 2024 15:52
I noticed that the data had a lot of events in which permissions were
added but not listed. Some of the permissions could have been removed,
but there were too many for that to account for all the omissions. It
turns out I was splitting the event logs' messages incorrectly, so the
task was looking for e.g. "Editor" within an array like ["signin", "
Editor"]. This revises the split to account for the
programmatically-added whitespace, which should (correctly) result in
more matches
@yndajas yndajas force-pushed the permissions_by_non_gds_users_fix branch from 84126fe to c91723a Compare August 14, 2024 15:53
@yndajas yndajas merged commit 9134c35 into main Aug 14, 2024
15 checks passed
@yndajas yndajas deleted the permissions_by_non_gds_users_fix branch August 14, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants