Hey team,
Resource page has a UI bug that can be misleading and cause issues as it is falsely reporting resource usage.
I'll use a scenario to surface bug and how you can reproduce it:
- You have 2 resources A and B
- Your resource B is not used but A is used in 7 apps
- You create a branch to switch resources and update all queries to point to resource B
Resource screen will now display the following usage:
Resource B (7)
Resource A (0)
This is troublesome as the PR hasn't been merged, leading maintainers to potentially delete Resource A which is currently in use.
Proposed resolution:
- Have resource show usage only for the active branch
- If there is a PR show the affect on the resource or not show it at all instead of misleading the users thinking resource is not used
This is not only an on-prem bug, also happens in Cloud.