-
Notifications
You must be signed in to change notification settings - Fork 30
♻️ Refactoring of APIs for computations in web-server, api-server and directorv2 #7520
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
♻️ Refactoring of APIs for computations in web-server, api-server and directorv2 #7520
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7520 +/- ##
==========================================
+ Coverage 87.44% 88.16% +0.71%
==========================================
Files 1740 1725 -15
Lines 67432 66412 -1020
Branches 1144 1144
==========================================
- Hits 58968 58554 -414
+ Misses 8143 7537 -606
Partials 321 321
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
65e3ac6
to
f836f15
Compare
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
…ith _client usage
…ath parameter handling in REST controller
…ethod names for clarity
58c2741
to
5452a7f
Compare
@mergify queue |
🟠 Waiting for conditions to match
|
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.
Copilot reviewed 42 out of 43 changed files in this pull request and generated 1 comment.
Files not reviewed (1)
- services/director-v2/openapi.json: Language not supported
Comments suppressed due to low confidence (1)
services/api-server/src/simcore_service_api_server/services_http/director_v2.py:88
- [nitpick] The nested usage of model validation (wrapping DirectorV2ComputationGet.model_validate_json(response.text) inside ComputationTaskGet.model_validate) could be simplified to improve clarity. Consider refactoring to directly use a single validation step with the proper flags if supported.
return ComputationTaskGet.model_validate(
services/director-v2/src/simcore_service_director_v2/api/routes/computations.py
Outdated
Show resolved
Hide resolved
…s/computations.py Co-authored-by: Copilot <[email protected]>
|
What do these changes do?
Cleanup of APIs related to computations in the web-api (
web-server
rest API),director-v2
(rest API) and finally the public-api (api-server
's rest API).web-api (
web-server
):Some refactoring in the
director-v2
domain in theweb-server
which is in charge of connecting with thedirectorv2
micro-service (i.e.services/web/server/src/simcore_service_webserver/director_v2
)/_handlers.py
-> renamed/_contoller/rest.py
packages/models-library/src/models_library/api_schemas_webserver/computations.py
parse_request_*
functions_rest_exceptions
api/specs/web-server/_computations.py
directorv2
/computations
collectionpublic-api (
api-server
)Related issue/s
How to test
tests in place
Dev-ops