Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented May 21, 2025

What do these changes do?

This PR allows the backend disable the "Create Functions" section in the frontend by making the pluginsDisabled WEBSERVER_FUNCTIONS flag truthy.

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz added this to the Bazinga! milestone May 21, 2025
@odeimaiz odeimaiz self-assigned this May 21, 2025
@odeimaiz odeimaiz added t:enhancement Improvement or request on an existing feature a:frontend issue affecting the front-end (area group) labels May 21, 2025
@sonarqubecloud
Copy link

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 enables the dynamic disabling of the "Create Functions" section based on the backend plugin flag (WEBSERVER_FUNCTIONS).

  • Updated the DisabledPlugins utility to include a new FUNCTIONS key and a corresponding method.
  • Modified the ResourceDetails component to conditionally disable the "Create Functions" page based on the new flag.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
services/static-webserver/client/source/class/osparc/utils/DisabledPlugins.js Added FUNCTIONS flag definition and isFunctionsDisabled method for handling plugin disabling.
services/static-webserver/client/source/class/osparc/dashboard/ResourceDetails.js Added conditional check to disable the Create Functions page when the FUNCTIONS plugin is disabled.

@odeimaiz odeimaiz added the 🤖-automerge marks PR as ready to be merged for Mergify label May 21, 2025
@odeimaiz
Copy link
Member Author

@Mergifyio queue

@mergify
Copy link
Contributor

mergify bot commented May 21, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 7185458

@mergify mergify bot merged commit 7185458 into ITISFoundation:master May 21, 2025
59 checks passed
@odeimaiz odeimaiz deleted the enh/disable-functions branch May 21, 2025 11:06
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Jun 6, 2025
92 tasks
@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

Development

Successfully merging this pull request may close these issues.

3 participants