-
Notifications
You must be signed in to change notification settings - Fork 30
π¨ introduce include_children
query parameter for activity monitor / project activity listings (ποΈ)
#7718
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
π¨ introduce include_children
query parameter for activity monitor / project activity listings (ποΈ)
#7718
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7718 +/- ##
==========================================
+ Coverage 87.19% 87.39% +0.20%
==========================================
Files 1786 1753 -33
Lines 69761 68734 -1027
Branches 1203 1047 -156
==========================================
- Hits 60827 60072 -755
+ Misses 8606 8371 -235
+ Partials 328 291 -37
Continue to review full report in Codecov by Sentry.
π New features to boost your workflow:
|
include_children
query parameter for activity monitor / project activity listings
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.
π
include_children
query parameter for activity monitor / project activity listingsinclude_children
query parameter for activity monitor / project activity listings (ποΈ)
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.
tested π
@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.
Pull Request Overview
This PR introduces a new query parameter, include_children, to the activity monitor and project activity listings endpoints so that activities for child projects are optionally included. Key changes include:
- Adding and exposing a new function to fetch project UUIDs by root parent project ID.
- Updating computations endpoints and RPC calls to accept a list of project IDs instead of a single project ID.
- Adjusting related tests, database queries, and error messages to support the new filtering functionality.
Reviewed Changes
Copilot reviewed 20 out of 21 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
services/web/server/src/simcore_service_webserver/projects/projects_metadata_service.py | Updated imports and all to expose the new function. |
services/web/server/src/simcore_service_webserver/projects/_metadata_service.py | Added get_project_uuids_by_root_parent_project_id function. |
services/web/server/src/simcore_service_webserver/projects/_metadata_repository.py | Added database queries to support filtering by root parent project UUID. |
services/web/server/src/simcore_service_webserver/director_v2/_controller/computations_rest.py | Revised endpoint parameter types and query parsing to support include_children. |
services/director-v2/_computations_service.py | Added filtering logic for child projects and updated calls to RPC functions. |
services/director-v2/api/rpc/_computations.py | Changed API signatures from single project_id to list of project_ids and adjusted downstream calls. |
Other files (tests, database migrations, and library updates) | Adjusted tests and error messages, and added indexes to support efficient queries. |
Files not reviewed (1)
- services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml: Language not supported
Comments suppressed due to low confidence (2)
services/director-v2/api/rpc/_computations.py:157
- There is a potential KeyError if a taskβs project_uuid is not present in project_uuid_to_iteration; consider adding error handling or a default value.
project_uuid_to_iteration[task.project_uuid],
services/director-v2/_computations_service.py:141
- [nitpick] Consider renaming 'child_projects_with_root' to 'project_ids_with_children' for improved clarity of the variable's purpose.
if include_children:
services/director/src/simcore_service_director/registry_proxy.py
Outdated
Show resolved
Hide resolved
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.
There is I think a problem with your pydantic model.
Also I do not see any test that reflects these changes, is this coming afterwards?
packages/models-library/src/models_library/projects_metadata.py
Outdated
Show resolved
Hide resolved
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.
thx!
services/director-v2/src/simcore_service_director_v2/api/rpc/_computations.py
Show resolved
Hide resolved
...ker/src/simcore_service_resource_usage_tracker/services/modules/db/credit_transactions_db.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/projects/_metadata_repository.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/projects/_metadata_repository.py
Outdated
Show resolved
Hide resolved
|
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.
Somehow this was not submitted yesterday.
services/director-v2/src/simcore_service_director_v2/api/rpc/_computations.py
Show resolved
Hide resolved
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.
066b8a2
into
ITISFoundation:master
What do these changes do?
include_children
query parameter for activity monitor / project activity listings (ποΈ)Related issue/s
How to test
Dev-ops