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

Prevent changing storage location on itemizables if there has been an intervening audit of the items involved #4428

Merged
merged 6 commits into from
Jun 14, 2024

Conversation

jp524
Copy link
Contributor

@jp524 jp524 commented Jun 4, 2024

Resolves #4304.

Description

I implemented the feature in ItemizableUpdateService since donations, distributions and purchases all rely on this service to perform the update action.

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Added some tests in spec/services/itemizable_update_service_spec.rb.

Screenshots

Distribution
Distribution

Donation
Donation
I noticed that when the donation update fails some select fields become empty and don't hold their initial value. I checked the staging server and the issue doesn't happen there, so I didn't look into it further.

Purchase
Purchase

@cielf
Copy link
Collaborator

cielf commented Jun 6, 2024

passes manual testing. Asking @dorner for a technical review.

@cielf cielf requested a review from dorner June 6, 2024 16:28
Copy link
Collaborator

@dorner dorner left a comment

Choose a reason for hiding this comment

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

One small request. Also posted a comment in the original issue @cielf

app/services/itemizable_update_service.rb Outdated Show resolved Hide resolved
@jp524 jp524 requested a review from dorner June 7, 2024 21:54
@dorner
Copy link
Collaborator

dorner commented Jun 14, 2024

Nice, thanks!

@dorner dorner merged commit ccc9b27 into rubyforgood:main Jun 14, 2024
19 checks passed
Copy link
Contributor

@jp524: Your PR Prevent changing storage location on itemizables if there has been an intervening audit of the items involved is part of today's Human Essentials production release: 2024.06.16.
Thank you very much for your contribution!

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.

Prevent changing storage location on itemizables if there has been an intervening audit of the items involved
3 participants