-
Notifications
You must be signed in to change notification settings - Fork 28
🎨 add Postgres connection to dynamic-scheduler
#7600
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
base: master
Are you sure you want to change the base?
🎨 add Postgres connection to dynamic-scheduler
#7600
Conversation
…gres-tables-to-dyamic-scheduler
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7600 +/- ##
==========================================
+ Coverage 87.73% 87.78% +0.04%
==========================================
Files 1784 1779 -5
Lines 68854 68720 -134
Branches 1133 1133
==========================================
- Hits 60411 60327 -84
+ Misses 8131 8081 -50
Partials 312 312
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
…gres-tables-to-dyamic-scheduler
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 connects Postgres to the dynamic-scheduler service and introduces the ProjectNetworks repository. Key changes include:
- Injecting Postgres lifespan and connection details in tests and configuration.
- Adding repository logic for handling project networks.
- Updating CLI and docker-compose files to support new Postgres settings.
Reviewed Changes
Copilot reviewed 24 out of 28 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
services/dynamic-scheduler/tests/unit/service_tracker/test__api.py | Added disable_postgres_lifespan parameter to the fixture |
services/dynamic-scheduler/tests/unit/api_rpc/test_api_rpc__services.py | Added disable_postgres_lifespan parameter in RPC client fixture |
services/dynamic-scheduler/tests/unit/api_rest/test_api_rest__meta.py | Renamed test function from test_health to test_meta for clarity |
services/dynamic-scheduler/tests/unit/api_rest/conftest.py | Added Postgres lifespan disable parameter |
services/dynamic-scheduler/tests/unit/api_frontend/*.py | Added "postgres" to core services selection lists |
services/dynamic-scheduler/tests/unit/api_frontend/conftest.py | Added Postgres configuration fixtures for frontend tests |
services/dynamic-scheduler/tests/conftest.py | Added Postgres service and updated event patching configuration (note duplicate fixture entry) |
services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/repository/project_networks.py | Introduced repository and error classes for project networks (typo in error class name) |
services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/repository/events.py | Registered the new repository lifespan manager |
services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/core/settings.py | Added Postgres settings configuration |
services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/core/events.py | Included repository lifespan in app startup |
services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/cli.py | Updated CLI to handle new Postgres configuration |
services/docker-compose.yml | Added Postgres environment variables to the service configuration |
packages/service-library/src/servicelib/logging_utils.py | Updated logging calls with a stacklevel parameter |
Files not reviewed (4)
- services/dynamic-scheduler/requirements/_test.in: Language not supported
- services/dynamic-scheduler/requirements/_test.txt: Language not supported
- services/dynamic-scheduler/requirements/_tools.txt: Language not supported
- services/dynamic-scheduler/setup.cfg: Language not supported
Comments suppressed due to low confidence (1)
services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/repository/project_networks.py:14
- There is a typo in the class name 'BaseProjectNetwroksError'. It should be 'BaseProjectNetworksError' to maintain consistent naming.
class BaseProjectNetwroksError(OsparcErrorMixin, RuntimeError):
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. Please check my comments regarding ProjectNetworks.
services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/repository/project_networks.py
Show resolved
Hide resolved
services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/repository/project_networks.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.
Thanks look good 👍 I just started a conversation to discuss project networks and where they should live.
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. I left some suggestions
services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/core/settings.py
Outdated
Show resolved
Hide resolved
services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/repository/events.py
Show resolved
Hide resolved
services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/repository/project_networks.py
Show resolved
Hide resolved
@Mergifyio queue |
🟠 Waiting for conditions to match
|
|
What do these changes do?
Connects
Postgres
todynamic-scheduler
and also adds theProjectNetowrks
repository.Related issue/s
How to test
Dev-ops checklist