feat(backend): reject partial payment gql api#3823
Merged
njlie merged 6 commits intofeature/encrypted-data-exchangefrom Feb 13, 2026
Merged
feat(backend): reject partial payment gql api#3823njlie merged 6 commits intofeature/encrypted-data-exchangefrom
njlie merged 6 commits intofeature/encrypted-data-exchangefrom
Conversation
🚀 Performance Test ResultsTest Configuration:
Test Metrics:
📜 Logs |
Base automatically changed from
nl/raf-1186/confirm-partial-incoming-api
to
feature/encrypted-data-exchange
February 6, 2026 19:15
237f759 to
dd253b0
Compare
sanducb
approved these changes
Feb 9, 2026
|
|
||
| const redis = await ctx.container.use('redis') | ||
| const cacheKey = `${PARTIAL_PAYMENT_DECISION_PREFIX}:${input.incomingPaymentId}:${input.partialIncomingPaymentId}` | ||
| const cacheKey = `kyc_decision:${input.incomingPaymentId}:${input.partialIncomingPaymentId}` |
Contributor
There was a problem hiding this comment.
partial_payment_decision instead of kyc_decision here, to be consistent with confirmation resolver
mkurapov
reviewed
Feb 9, 2026
| throw new GraphQLError( | ||
| errorToMessage[IncomingPaymentError.UnknownPayment], | ||
| const redis = await ctx.container.use('redis') | ||
| const cacheKey = `${PARTIAL_PAYMENT_DECISION_PREFIX}:${input.incomingPaymentId}:${input.partialIncomingPaymentId}` |
Contributor
There was a problem hiding this comment.
We should have the business logic of the actual confirmation (and rejection) of the partial payment in the incomingPayment service. This is so the resolvers can be pretty thin and just know about how to call the service methods only.
(like in @sanducb 's PR > https://github.com/interledger/rafiki/pull/3706/changes#diff-afe36815c9819da35a080c01313ed35785086b4cb15eca035832d1785010f63a, where all of the decision awaiting process is happening in the incoming payment service)
mkurapov
approved these changes
Feb 13, 2026
e9b78da
into
feature/encrypted-data-exchange
32 of 52 checks passed
sanducb
pushed a commit
that referenced
this pull request
Apr 7, 2026
* feat(backend): add confirmPartialIncomingPayment resolver * feat: move return, revert jest env * feat(backend): reject partial payment gql api * fix: use correct redis key * fix: use const * feat: move redis call out of resolver
This file contains hidden or 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
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.
Changes proposed in this pull request
rejectPartialIncomingPaymentgraphql resolver.(confirm/reject)PartialIncomingPayment.Context
Fixes RAF-1187.
Checklist
fixes #numberuser-docslabel (if necessary)