Skip to content

chore!: removed 'updatedAt' from incoming and outgoing payments responses from OP#3429

Merged
oana-lolea merged 8 commits into
mainfrom
oana/raf-1044
Jul 2, 2025
Merged

chore!: removed 'updatedAt' from incoming and outgoing payments responses from OP#3429
oana-lolea merged 8 commits into
mainfrom
oana/raf-1044

Conversation

@oana-lolea
Copy link
Copy Markdown
Contributor

@oana-lolea oana-lolea commented May 13, 2025

Changes proposed in this pull request

  • Removed 'updatedAt' from incoming and outgoing payments responses, as well as from receiver.
  • Requires open-payments@7.0.0
  • Added feature #997

Context

Fixes #3386

Checklist

  • Related issues linked using fixes #number
  • Tests added/updated
  • Make sure that all checks pass
  • Bruno collection updated (if necessary)
  • Documentation issue created with user-docs label (if necessary)
  • OpenAPI specs updated (if necessary)

@netlify
Copy link
Copy Markdown

netlify Bot commented May 13, 2025

Deploy Preview for brilliant-pasca-3e80ec canceled.

Name Link
🔨 Latest commit 4e10352
🔍 Latest deploy log https://app.netlify.com/projects/brilliant-pasca-3e80ec/deploys/6865006e1494dd0008c5e2cf

@github-actions github-actions Bot added type: tests Testing related pkg: backend Changes in the backend package. pkg: frontend Changes in the frontend package. type: source Changes business logic pkg: mock-ase pkg: mock-account-service-lib labels May 13, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 13, 2025

🚀 Performance Test Results

Test Configuration:

  • VUs: 4
  • Duration: 1m0s

Test Metrics:

  • Requests/s: 43.93
  • Iterations/s: 14.66
  • Failed Requests: 0.00% (0 of 2643)
📜 Logs

> performance@1.0.0 run-tests:testenv /home/runner/work/rafiki/rafiki/test/performance
> ./scripts/run-tests.sh -e test "-k" "-q" "--vus" "4" "--duration" "1m"

Cloud Nine GraphQL API is up: http://localhost:3101/graphql
Cloud Nine Wallet Address is up: http://localhost:3100/
Happy Life Bank Address is up: http://localhost:4100/
cloud-nine-wallet-test-backend already set
cloud-nine-wallet-test-auth already set
happy-life-bank-test-backend already set
happy-life-bank-test-auth already set
     data_received..................: 922 kB 15 kB/s
     data_sent......................: 1.9 MB 31 kB/s
     http_req_blocked...............: avg=6.36µs   min=2.38µs   med=5.11µs  max=611.83µs p(90)=6.23µs   p(95)=6.71µs  
     http_req_connecting............: avg=369ns    min=0s       med=0s      max=366.73µs p(90)=0s       p(95)=0s      
     http_req_duration..............: avg=90.42ms  min=8.64ms   med=76.59ms max=693.14ms p(90)=149.34ms p(95)=173.2ms 
       { expected_response:true }...: avg=90.42ms  min=8.64ms   med=76.59ms max=693.14ms p(90)=149.34ms p(95)=173.2ms 
     http_req_failed................: 0.00%  ✓ 0         ✗ 2643
     http_req_receiving.............: avg=89.57µs  min=26.04µs  med=77.57µs max=1.75ms   p(90)=116.02µs p(95)=149.89µs
     http_req_sending...............: avg=37.03µs  min=9.11µs   med=26.88µs max=3.3ms    p(90)=38.3µs   p(95)=52.56µs 
     http_req_tls_handshaking.......: avg=0s       min=0s       med=0s      max=0s       p(90)=0s       p(95)=0s      
     http_req_waiting...............: avg=90.3ms   min=8.49ms   med=76.49ms max=693.04ms p(90)=149.25ms p(95)=173.06ms
     http_reqs......................: 2643   43.92993/s
     iteration_duration.............: avg=272.56ms min=181.61ms med=258.6ms max=988.89ms p(90)=326.82ms p(95)=350.87ms
     iterations.....................: 882    14.659931/s
     vus............................: 4      min=4       max=4 
     vus_max........................: 4      min=4       max=4 

@mkurapov mkurapov added the breaking Issue/PR that introduces breaking changes label May 15, 2025
@mkurapov mkurapov changed the title chore: removed 'updatedAt' from incoming and outgoing payments responses from OP chore!: removed 'updatedAt' from incoming and outgoing payments responses from OP May 15, 2025
"@graphql-tools/schema": "^10.0.16",
"@interledger/http-signature-utils": "2.0.2",
"@interledger/open-payments": "6.13.2",
"@interledger/open-payments": "7.0.0",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you bump this in the auth package as well please

@njlie
Copy link
Copy Markdown
Contributor

njlie commented May 19, 2025

I think you just need to remove updatedAt in the query for getting a receiver in the Bruno collection. You also might need to remove some references to updatedAt to fix the integration tests.

…n for auth, test-lib and integration packages
@github-actions github-actions Bot added the pkg: auth Changes in the GNAP auth package. label May 27, 2025
Comment thread packages/backend/src/open_payments/payment/incoming/model.ts
@mkurapov
Copy link
Copy Markdown
Contributor

mkurapov commented Jun 2, 2025

I think this would end up fixing #3386 instead of #3337

mkurapov
mkurapov previously approved these changes Jun 2, 2025
Copy link
Copy Markdown
Contributor

@mkurapov mkurapov left a comment

Choose a reason for hiding this comment

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

Looks good, we should wait for #3337 to be merged in/completed first, then this one directly after

edit: 3386 -> 3337

@oana-lolea
Copy link
Copy Markdown
Contributor Author

oana-lolea commented Jun 3, 2025

Looks good, we should wait for #3386 to be merged in/completed first, then this one directly after

@mkurapov, #3386 needs to use OP version 7.0.0, and it will break without 'updatedAt' removed.

@mkurapov
Copy link
Copy Markdown
Contributor

mkurapov commented Jun 3, 2025

@oana-lolea maybe you can open the 3337 PR against this one, and we'll merge it in as one?

…t limits (#3449)

* Set limits to have either receive or debit amount

* Updated auth limits and bruno request

* Added the case when both types of amount are missing

* Updated mock ASE consent screen, renamed error, added check in auth for both types of amount

* Added error enum for access, added tests and updated types

* Added error mapping for grants, updated tests

* Format fixes and ignored eslint error

* Updated createGrant function for testing

* Forgot to rollback transaction when error will be thrown

* Simplified access error handling

* Removed unnecessary assert and changed error code

* Fixed mock consent screen so it will support having either receive or debit amount

* Updated consent messages

* Updated mock ASE consent screen to handle all limit amount cases
@oana-lolea oana-lolea requested a review from mkurapov July 2, 2025 08:59
Comment thread packages/backend/src/openapi/specs/webhooks.yaml
Comment thread test/test-lib/package.json
@oana-lolea oana-lolea requested a review from mkurapov July 2, 2025 10:01
@oana-lolea oana-lolea merged commit 16b501e into main Jul 2, 2025
44 checks passed
@oana-lolea oana-lolea deleted the oana/raf-1044 branch July 2, 2025 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Issue/PR that introduces breaking changes pkg: auth Changes in the GNAP auth package. pkg: backend Changes in the backend package. pkg: frontend Changes in the frontend package. pkg: mock-account-service-lib pkg: mock-ase type: source Changes business logic type: tests Testing related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove updatedAt field from Open Payments RS responses

3 participants