-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add Soft Delete for Payment Orders #401
Comments
Hi, please can I be assigned this please? This would be my first time contributing to this project and I would love to be the given the opportunity to solve this issue please. I am good with tests and I have experience in html, css, JavaScript,TypeScript and solidity, and Cairo. |
I'd be happy to do this. |
1 similar comment
I'd be happy to do this. |
Can I jump on this task? first time contributor |
May I try my hand at this? |
@Fidel-wole have you started work on this ticket? |
I'm still going through the repository, will begin soon |
User Story
As a system operator, I want payment orders to be soft deleted instead of permanently removed, to maintain data integrity and audit history while still allowing cleanup of old records.
Acceptance Criteria
GIVEN a payment order is deleted
WHEN using normal deletion
THEN the record is soft deleted by setting
deleted_at
GIVEN querying payment orders
WHEN no special context is provided
THEN only non-deleted records are returned
GIVEN querying payment orders
WHEN using SkipSoftDelete context
THEN all records including soft-deleted ones are returned
GIVEN a sender profile is deleted
WHEN the cascade delete triggers
THEN associated payment orders are soft deleted
Tech Details
SoftDeleteMixin
in schema/mixins.go following Ent documentation for soft deleteentsql.Cascade
deleted_at
fieldLockPaymentOrder
andPaymentOrder
schemasNotes/Assumptions
Open Questions
The text was updated successfully, but these errors were encountered: