-
Notifications
You must be signed in to change notification settings - Fork 32
🎨 [Frontend] MM: Improve potential Function checks #7990
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
🎨 [Frontend] MM: Improve potential Function checks #7990
Conversation
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 improves the criteria for a Project to qualify as a Function by refining checks for parameters/probes, as well as ensuring the inclusion of computational services and the exclusion of dynamic services.
- Added helper methods extractComputationalServices and extractDynamicServices
- Renamed the function canCreateFunction to isPotentialFunction and updated its logic accordingly
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| services/static-webserver/client/source/class/osparc/study/Utils.js | Added functions to extract computational and dynamic services; updated the function criteria for potential Functions |
| services/static-webserver/client/source/class/osparc/dashboard/ResourceDetails.js | Updated reference from canCreateFunction to isPotentialFunction |
Comments suppressed due to low confidence (1)
services/static-webserver/client/source/class/osparc/study/Utils.js:253
- [nitpick] Consider renaming 'extractComputationalServices' and 'extractDynamicServices' to 'extractFunctionableComputationalServices' and 'extractFunctionableDynamicServices' respectively, to maintain consistency with the existing 'extractFunctionableParameters' and 'extractFunctionableProbes' methods.
extractComputationalServices: function(workbench) {
|
@mergify queue |
🟠 Waiting for conditions to match
|
wvangeit
left a comment
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 @odeimaiz. Looks good.
|
I would say that it needs BOTH at least one parameter and one probe. Also, regarding the no-interactive-service limitation, why is that an issue? Do not they simply get ignored? |
|
bisgaard-itis
left a comment
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.
Nice! Thanks a lot for the quick fix
|
@mergify queue |
|
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 5aa1302 |



What do these changes do?
In order to become a Function, a Project needs:
Related issue/s
How to test
Dev-ops