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 Deprecated Permissions #832

Open
wants to merge 1 commit into
base: integration
Choose a base branch
from

Conversation

aaronskiba
Copy link
Collaborator

@aaronskiba aaronskiba commented Jul 25, 2024

Fixes #828

Changes proposed in this PR:

  • Added a rake task to remove any deprecated perms
    • The rake task removes all deprecated user.perms as well as all deprecated perms themselves

Copy link

1 Error
🚫 Please include a CHANGELOG entry. You can find it at CHANGELOG.md.

Generated by 🚫 Danger

This rake task removes deprecated permissions both from users and from the perms db table itself.
Copy link
Collaborator

@lagoan lagoan left a comment

Choose a reason for hiding this comment

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

This code looks good to me ! We have made rake tasks like this to handle data modification in the past. I just pushed a PR handling this type of issue as a migration instead of a rake task.

I like the idea of a migration since it wont be a part of the code that we will continue to keep in mind.

That approach can have its drawbacks too.

What do you think about these 2 approaches ?

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