-
Notifications
You must be signed in to change notification settings - Fork 0
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] Remove trailing slash from forwarded requests #159
Conversation
Reviewer's Guide by SourceryThis pull request fixes a bug related to URL formation for forwarded requests by removing the trailing slash. The changes refactor the URL construction logic into a new function and update existing endpoint calls to use it. Additionally, tests have been added to ensure URLs are correctly formed without trailing slashes. Sequence diagram for URL forwarding in APIsequenceDiagram
participant C as Client
participant G as get() Function
participant B as build_node_request_urls()
participant U as util.send_get_request()
C->>G: Request API call with parameters
G->>B: build_node_request_urls(node_urls, "query")
B-->>G: Return list of node_request_urls
loop For each node_request_url
G->>U: send_get_request(node_request_url, params, token)
U-->>G: Response
end
G-->>C: Aggregated response
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #159 +/- ##
==========================================
+ Coverage 97.37% 97.41% +0.03%
==========================================
Files 23 23
Lines 724 735 +11
==========================================
+ Hits 705 716 +11
Misses 19 19 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @alyssadai, looks good. One point to address on the test, but with that
🧑🍳
🚀 PR was released in |
Changes proposed in this pull request:
Checklist
This section is for the PR reviewer
[ENH]
,[FIX]
,[REF]
,[TST]
,[CI]
,[MNT]
,[INF]
,[MODEL]
,[DOC]
) (see our Contributing Guidelines for more info)skip-release
(to be applied by maintainers only)Closes #XXXX
For new features:
For bug fixes:
Summary by Sourcery
Remove trailing slash from URLs used to forward requests to Neurobagel nodes.
Bug Fixes:
Tests:
Summary by Sourcery
Remove trailing slashes from URLs used to forward requests to Neurobagel nodes.
Bug Fixes:
Tests: