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

feat: Rollback Approvals #41

Merged
merged 5 commits into from
Oct 10, 2023
Merged

feat: Rollback Approvals #41

merged 5 commits into from
Oct 10, 2023

Conversation

cjmellor
Copy link
Owner

@cjmellor cjmellor commented Oct 9, 2023

This PR adds a new feature: Approval Rollbacks

Once a Model has been approved, you can rollback to its previous state.

It will revert the new and original data and mark the reverted Approval as Pending, ready for re-approval.

New Migration

A new Migration was also added. This adds a new field to the approvals table -- rolled_back_at which is a timestamp which logs when the Model was rolled back.

refactor: some minor refactoring done also
@cjmellor cjmellor added the enhancement New feature or request label Oct 9, 2023
@cjmellor cjmellor self-assigned this Oct 9, 2023
@cjmellor cjmellor merged commit 563ac0e into main Oct 10, 2023
5 checks passed
@cjmellor cjmellor deleted the feat/rollbacks branch October 10, 2023 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant