-
Notifications
You must be signed in to change notification settings - Fork 27
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
✨ dynamic-services will fail if they have any required input that is not set #5845
✨ dynamic-services will fail if they have any required input that is not set #5845
Conversation
…-input-required-and-missing
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5845 +/- ##
=========================================
- Coverage 84.5% 70.2% -14.4%
=========================================
Files 10 553 +543
Lines 214 27997 +27783
Branches 25 205 +180
=========================================
+ Hits 181 19656 +19475
- Misses 23 8290 +8267
- Partials 10 51 +41
Flags with carried forward coverage won't be shown. Click here to find out more.
|
…-input-required-and-missing
…-input-required-and-missing
…-input-required-and-missing
…-input-required-and-missing
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!
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.
Very nice! I see how we can apply this to many use-cases. Maybe @wvangeit is interested as well.
So @GitHK. the requirements to use this feature are (please correct me if this is wrong):
- a service has to be dynamic
- in the DB, we need to set which inputs are required. Could you maybe add a screenshot that shows that to the PR description?
correct both legacy and new style work
OM will add an UI element for this a PR will follow |
One question, I assume that if there is a file from a previous run of the study present, it will pass the test and run the service? |
Correct. this only checks for the port connections and the presence of a file in the port. It cannot do more that this (like inspecting if a file changes) that requires the sidecar to be running (a.k.a. the service to be running) |
@GitHK Ok, makes sense. |
services/web/server/src/simcore_service_webserver/projects/db.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/projects/_nodes_handlers.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/projects/exceptions.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/projects/db.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/projects/db.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.
in your PR I see that the error message shows the port key not the port displayed name. Can this not be done otherwise? How as a user will I instantly recognize which port is missing?
services/web/server/src/simcore_service_webserver/projects/_nodes_handlers.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/projects/db.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/projects/db.py
Outdated
Show resolved
Hide resolved
…-input-required-and-missing
…-input-required-and-missing
…-input-required-and-missing
So the data is coming from the workbench. I'm not sure exactly how to fetch some more information inside the webserver. I would need to pull the data of all the services that are connecting to my node in order to properly format these messages. |
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.
👍
services/web/server/src/simcore_service_webserver/projects/exceptions.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/projects/projects_api.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/projects/exceptions.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/projects/projects_api.py
Show resolved
Hide resolved
…-input-required-and-missing
|
What do these changes do?
Changes
Users warning messages
Case 1 (input link to port is missing)
Case 2 (file in input port not present)
Related issue/s
inputs_required
to workbench #5838How to test
Dev-ops checklist