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

Add Rake task to remove inappropriately-granted perms #3151

Merged
merged 3 commits into from
Sep 10, 2024

Conversation

yndajas
Copy link
Member

@yndajas yndajas commented Sep 4, 2024

Trello

These have been identified as inappropriately granted to non-GDS users as part of an exercise to clean up the data after having fixed the way delegatable permissions work. We need to remove these permissions from non-GDS users


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.

@Gweaton Gweaton force-pushed the add-rake-task-to-revoke-permissions branch from 31bb349 to 2642c06 Compare September 5, 2024 16:46
@yndajas yndajas force-pushed the add-rake-task-to-revoke-permissions branch from 2642c06 to 59c2c9c Compare September 6, 2024 02:00
Gweaton and others added 3 commits September 9, 2024 14:31
and update use in tests.

Co-authored-by: Ynda Jas <yndajas@gmail.com>
These would have had incorrect delegatable/grantable_from_ui values in
some tests - there weren't any failures, but this represents reality
better.

Co-authored-by: Ynda Jas <yndajas@gmail.com>
These have been identified as inappropriately granted to non-GDS users
as part of an exercise to clean up the data after having fixed the way
delegatable permissions work. We need to remove these permissions from
non-GDS users

We're using quite a few methods in the tests, which might feel a little
overkill for a single-use Rake task, but we opted for this in order to
cut down the number of lines required for all the setup and assertion
logic and limit the chance of mistyping any of the important details

Co-authored-by: George Eaton <george@dxw.com>

User input stubbing taken from: https://medium.com/@bschwartz92/testing-i-o-in-ruby-with-minitest-f775133adf6c
@yndajas yndajas force-pushed the add-rake-task-to-revoke-permissions branch from 59c2c9c to 4767d16 Compare September 9, 2024 13:35
@yndajas yndajas changed the title WIP Add Rake task to remove inappropriately-granted perms Add Rake task to remove inappropriately-granted perms Sep 9, 2024
@yndajas yndajas marked this pull request as ready for review September 9, 2024 13:58
@yndajas yndajas merged commit e64fbe1 into main Sep 10, 2024
15 checks passed
@yndajas yndajas deleted the add-rake-task-to-revoke-permissions branch September 10, 2024 14:37
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.

3 participants