WISH-440 Reset ProvDon When Matched Deposit Deletion Requested #235
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.
π λ³κ²½ μ¬ν
μ΄λ² PRμμλ νμ μμ νλ‘μΈμ€ κ°μ λ° μλΉνμ(Provisional Donation) μν κ΄λ¦¬λ₯Ό μΆκ°νμμ΅λλ€.
νμ μμ μ μλΉνμ μν μ΄κΈ°ν μΆκ°
DepositDeleteSaga.handleMatchedDepositDeleteRequested()λ΄μμ μλΉνμμ λ§€μΉλ₯Ό μ·¨μνλ λ‘μ§μ μΆκ°νμμΌλ©°, μ€ν¨ μ μ μ ν 보μ μ‘°μΉ(κ΄λ¦¬μ μλ¦Ό λ°μ‘)λ₯Ό μνν©λλ€.μλΉνμ λ§€μΉ μ·¨μ μ€ν¨ μ²λ¦¬
cancelMatchProvDon.execute()νΈμΆ μInvalidStatusμμΈκ° λ°μνλ©΄ κ΄λ¦¬μμκ² μλ¦Όμ 보λ΄λλ‘ λ³΄μ μ‘°μΉλ₯Ό μΆκ°νμ΅λλ€.E2E ν μ€νΈ μ λ°μ΄νΈ
Deposit API E2E Testμμ νμ μμ ν μλΉνμμ μνκ°PendingμΌλ‘ λ³κ²½λλμ§λ₯Ό κ²μ¦νλ ν μ€νΈ μΌμ΄μ€λ₯Ό μΆκ°νμ΅λλ€.Mock λ°μ΄ν° μμ± κ°μ
createMockFundingWithRelations()ν¨μμμprovisional donationμ μμ±ν λ,senderSigκ°μ μ μ ν μ€μ νλλ‘ μμ νμ΅λλ€.π μ£Όμ λ³κ²½ νμΌ
src/event-handlers/deposit-delete.saga.tssrc/features/deposit/deposit.e2e.spec.tssrc/tests/mock-factory.tsβ κ²ν ν¬μΈνΈ
PendingμΌλ‘ μ΄κΈ°ννλ λ°©μμ΄ μ μ νμ§InvalidStatusμμΈ λ°μ μ κ΄λ¦¬μ μλ¦Ό μ²λ¦¬κ° μ μ νμ§π κΈ°λ ν¨κ³Ό
Depositμ λ λ² μμ μλν©λλ€. κ·Έ μ΄μ λ Donation μμ μ±κ³΅ μ΄λ²€νΈ νΈλ€λ¬μμ ν λ², ProvDon 리μ μ±κ³΅ μ΄λ²€νΈ νΈλ€λ¬μμ ν λ². νμ§λ§ κ²°κ³Όμ μΌλ‘ Eventual Consistencyλ₯Ό λ§μ‘±μν€λκΉ, λ΄λΉλμ΄μΌ ν κΉμ?
리뷰 λΆνλ립λλ€! π