Skip to content

Fix request deletion based on PROVISION requestable flag - #90

Merged
ivan-risueno merged 10 commits into
masterfrom
bugfix/forbid-deletion-to-non-team-nor-manager-users
Sep 15, 2026
Merged

ivan-risueno merged 10 commits into
masterfrom
bugfix/forbid-deletion-to-non-team-nor-manager-users

Conversation

@ivan-risueno

Copy link
Copy Markdown
Contributor

No description provided.


var accessToken = authenticationProvider.getAccessToken();
var projectComponent = componentCatalogService.getProjectComponentById(accessToken, projectKey, componentId);
var catalogItem = fetchCatalogItem(accessToken, getCatalogItemId(projectComponent), projectKey);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provisioning and deletion should follow different business logic. Instead of checking if is requestable, I'd use the "canBeDeleted" property from the components (seems the endpoint used doesn't provide it but there are other endpoints that do) to have a single source of truth whereas can be deleted or not.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@ivan-risueno
ivan-risueno force-pushed the bugfix/forbid-deletion-to-non-team-nor-manager-users branch from 79889de to 9ff1da1 Compare September 14, 2026 10:40
@sonarqubecloud

Copy link
Copy Markdown

@ivan-risueno
ivan-risueno merged commit 4de6c8a into master Sep 15, 2026
3 checks passed
@ivan-risueno
ivan-risueno deleted the bugfix/forbid-deletion-to-non-team-nor-manager-users branch September 15, 2026 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants