Skip to content
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

Shared scopes shows scope has been used but not showing usage list and not allowing to delete scopes in APIM 4.1.0 #3029

Closed
lucas-wso2 opened this issue Jul 29, 2024 · 1 comment

Comments

@lucas-wso2
Copy link

Problem

Hello team,

  • Issue:

The customer has a requirement to delete shared scopes from the shared scopes list in the API publisher. However, the delete button is disabled, indicating a number of usages for the scope, but the usage list appears empty when clicked.

  • Steps to Reproduce:
  1. Start an APIM 4.1.0 pack and log in to the publisher (tested with admin user).
  2. Create multiple shared scopes (e.g., team:create, team:update) and assign the role of admin.
  3. Deploy the Pizza Shack API and assign scopes to deploy the revision.
  4. Remove the scopes and deploy a new revision.
  5. Go to the resources, remove the scopes, and deploy it again.
  6. Go to the shared scope tab and observe the issue mentioned.
  • Conclusion:

This issue appears to be related to revisions. When a new revision is deployed without scopes, references to the scopes remain in previous revisions.

If this is the expected behavior, the system should at least show the APIs and revisions using the scopes.

From local testing, we observed that even after deleting the scopes from previous revisions, it still shows one usage left on the shared scopes page.

Thank you.
Best regards

Solution

Update to the UI that displays which revision the scope is linked to, making it easier to remove.

Affected Component

APIM

Version

4.1.0.133

Implementation

No response

Related Issues

No response

Suggested Labels

No response

@msm1992
Copy link

msm1992 commented Aug 20, 2024

public PRs : wso2/carbon-apimgt#12452, wso2/apim-apps#704

@msm1992 msm1992 closed this as completed Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants