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: Bypass Approving a Rollback #53

Merged
merged 1 commit into from
Feb 21, 2024
Merged

Conversation

cjmellor
Copy link
Owner

This PR makes a change to the rollback function, where by default a rollback will not require an Approval, it will bypass it.

If you want to approve roll backs, you can pass a bypass parameter to the function

->rollback(bypass: false) // default is true

This update introduces changes in the rollback function within the Approval model, now considering a 'bypass' condition. Additionally, 'user_id' is now included in the 'MustBeApproved' Trait and the testing features. Tests have been modified and extended to reflex these changes in rollback and saving data behaviours.
@cjmellor cjmellor self-assigned this Feb 21, 2024
@cjmellor cjmellor added the enhancement New feature or request label Feb 21, 2024
@cjmellor cjmellor merged commit d635654 into main Feb 21, 2024
5 checks passed
@cjmellor cjmellor deleted the fix/52-rollback-behavior branch February 21, 2024 19:00
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.

1 participant