-
Notifications
You must be signed in to change notification settings - Fork 49
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
db/seed: Adapt seeding scripts to new payment structure #605
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Payment table will save the information regarding the payment - Donation table will save information regarding the donation(e.g. campaign, wish etc..)
In future situations, we might need to decrement many vaults at once as well,(e.g. payment refund etc..) - Added some unit tests to cover vaults updates -Did some refactoring on commonly used types, as well as test mocks
As the name of the model is used as a type, the acceptednaming convention is to name that type in singular way
Fixes TS related errors
…when simulating IRIS transactions
✅ Tests will run for this PR. Once they succeed it can be merged. |
sashko9807
added
area: seeds
Prisma seed related activities
run tests
Allows running the tests workflows for forked repos
labels
Mar 10, 2024
github-actions
bot
removed
the
run tests
Allows running the tests workflows for forked repos
label
Mar 10, 2024
In production, the insertion is done within a single transaction, thus the dates should be the same
…repibg-api into new-payment-flow
sashko9807
added
the
run tests
Allows running the tests workflows for forked repos
label
Mar 10, 2024
github-actions
bot
removed
the
run tests
Allows running the tests workflows for forked repos
label
Mar 10, 2024
imilchev
approved these changes
Mar 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It appears I missed to adapt the seeding scripts to the new structure, which prevents the front-end CI/CD E2E job as it requires the seeding data.
Tests:
yarn seed
- Runs successfully, with 33 payment records created, and 33 donations records created.