-
Notifications
You must be signed in to change notification settings - Fork 129
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
Fix bug with socks subaccount subscription with best effort canceled logic. #2718
Conversation
WalkthroughThis pull request introduces new optional query parameters to order listing endpoints, enhancing the filtering capabilities of the API without impacting existing functionality. It also tightens URL matching in tests and adds error logging with a corrected URL interpolation in the subscription service, ensuring more reliable handling of subscription responses. Changes
Sequence Diagram(s)sequenceDiagram
participant Client as Client
participant OC as OrdersController
participant Service as Subscription Service
Client->>OC: GET /orders?goodTilBlockAfter=&goodTilBlockTimeAfter=
OC->>Service: Forward request with query parameters
Service-->>OC: Return filtered order data
OC-->>Client: Respond with order data
sequenceDiagram
participant Sub as Subscriptions
participant Axios as Axios Request
participant Logger as Error Logger
Sub->>Axios: Make GET request with URL including goodTilBlockAfter
alt Successful response
Axios-->>Sub: Return response data
Sub-->>Client: Send data to client
else Error encountered
Axios-->>Sub: Return error
Sub->>Logger: Log error with context details
Sub-->>Client: Return error response
end
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms (12)
🔇 Additional comments (5)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Changelist
Fix typo + add test to catch issues with subscribing to subaccount orders initial response.
Test Plan
Unit tests, tested in staging.
Author/Reviewer Checklist
state-breaking
label.indexer-postgres-breaking
label.PrepareProposal
orProcessProposal
, manually add the labelproposal-breaking
.feature:[feature-name]
.backport/[branch-name]
.refactor
,chore
,bug
.Summary by CodeRabbit