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: Rolling Back Model Fields with JSON Data #55

Merged

Conversation

cjmellor
Copy link
Owner

This PR should fix an issue where JSON data is sent to be approved.

Closes #54

This update enhances support for JSON fields in the MustBeApproved trait. Changes include modifications to getDirtyAttributes and callCastAttribute methods to handle JSON casting. Extended tests are also added to validate the correct functionality with Models containing JSON fields.
@cjmellor cjmellor self-assigned this Feb 22, 2024
@cjmellor cjmellor linked an issue Feb 22, 2024 that may be closed by this pull request
@cjmellor cjmellor added the bug Something isn't working label Feb 22, 2024
This commit removes the user authentication check from the MustBeApproved trait. This change ensures that the trait is solely focused on approval processes and not concerned with user authentication, making for cleaner code and separation of concerns.
@cjmellor cjmellor marked this pull request as ready for review February 27, 2024 10:41
@cjmellor cjmellor merged commit f417cec into main Feb 27, 2024
5 checks passed
@cjmellor cjmellor deleted the 54-issue-when-rolling-back-models-that-contain-json-fields branch February 27, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue when rolling back models that contain json fields
1 participant