Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Jun 26, 2025

What do these changes do?

In order to become a Function, a Project needs:

  • at least one parameter or one probe
    • for now, only float types are allowed
  • at least one computational service
  • no dynamic services

PotentialFunction

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz changed the title more checks 🎨 [Frontend] Enh: Improve potential Function checks Jun 26, 2025
@odeimaiz odeimaiz changed the title 🎨 [Frontend] Enh: Improve potential Function checks 🎨 [Frontend] Improve potential Function checks Jun 26, 2025
@odeimaiz odeimaiz self-assigned this Jun 26, 2025
@odeimaiz odeimaiz added this to the Engage milestone Jun 26, 2025
@odeimaiz odeimaiz added t:enhancement Improvement or request on an existing feature a:frontend issue affecting the front-end (area group) labels Jun 26, 2025
@odeimaiz odeimaiz requested a review from Copilot June 26, 2025 13:39
@odeimaiz odeimaiz marked this pull request as ready for review June 26, 2025 13:39
Copy link
Contributor

Copilot AI left a 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) {

@odeimaiz odeimaiz changed the title 🎨 [Frontend] Improve potential Function checks 🎨 [Frontend] MM: Improve potential Function checks Jun 26, 2025
@odeimaiz odeimaiz added the 🤖-automerge marks PR as ready to be merged for Mergify label Jun 26, 2025
@odeimaiz
Copy link
Member Author

@mergify queue

@mergify
Copy link
Contributor

mergify bot commented Jun 26, 2025

queue

🟠 Waiting for conditions to match

  • any of: [🔀 queue conditions]
    • all of: [📌 queue conditions of queue default]
      • any of: [🛡 GitHub branch protection]
        • check-neutral = deploy to dockerhub
        • check-skipped = deploy to dockerhub
        • check-success = deploy to dockerhub
      • any of: [🛡 GitHub branch protection]
        • check-neutral = system-tests
        • check-skipped = system-tests
        • check-success = system-tests
      • any of: [🛡 GitHub branch protection]
        • check-neutral = check OAS' are up to date
        • check-skipped = check OAS' are up to date
        • check-success = check OAS' are up to date
      • any of: [🛡 GitHub branch protection]
        • check-neutral = integration-tests
        • check-skipped = integration-tests
        • check-success = integration-tests
      • any of: [🛡 GitHub branch protection]
        • check-neutral = build-test-images (frontend) / build-test-images
        • check-skipped = build-test-images (frontend) / build-test-images
        • check-success = build-test-images (frontend) / build-test-images
      • #approved-reviews-by >= 2 [🛡 GitHub branch protection]
      • #approved-reviews-by>=2
      • #changes-requested-reviews-by = 0 [🛡 GitHub branch protection]
      • #changes-requested-reviews-by=0
      • #review-threads-unresolved = 0 [🛡 GitHub branch protection]
      • #review-threads-unresolved=0
      • -conflict
      • -draft
      • base=master
      • branch-protection-review-decision = APPROVED [🛡 GitHub branch protection]
      • label!=🤖-do-not-merge
      • label=🤖-automerge
      • any of: [🛡 GitHub branch protection]
        • check-success = unit-tests
        • check-neutral = unit-tests
        • check-skipped = unit-tests
  • -closed [📌 queue requirement]
  • -conflict [📌 queue requirement]
  • -draft [📌 queue requirement]
  • any of: [📌 queue -> configuration change requirements]
    • -mergify-configuration-changed
    • check-success = Configuration changed

Copy link
Contributor

@wvangeit wvangeit left a 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.

@JavierGOrdonnez
Copy link

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?

@odeimaiz
Copy link
Member Author

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?

ITISFoundation/osparc-issues#1940

Copy link
Contributor

@bisgaard-itis bisgaard-itis left a 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

@odeimaiz
Copy link
Member Author

@mergify queue

@sonarqubecloud
Copy link

@mergify
Copy link
Contributor

mergify bot commented Jun 27, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 5aa1302

@mergify mergify bot merged commit 5aa1302 into ITISFoundation:master Jun 27, 2025
60 checks passed
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Aug 5, 2025
88 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖-automerge marks PR as ready to be merged for Mergify a:frontend issue affecting the front-end (area group) t:enhancement Improvement or request on an existing feature

Projects

None yet

4 participants