[dashboard] Disabled packages are browsed in App catalog
Bug #1307963 reported by
Anastasia Kuznetsova
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Murano |
Fix Released
|
Low
|
Ankur Rishi |
Bug Description
Steps to reproduce:
1. Log in WebUI
2. Navigate to Murano>
3. Select some package and click on 'Toggle Active'
4. Navigate to Murano>
Observed result:
After step 3 package became inactive (Active = False), but we still can see this package in 'Application Catalog' page
summary: |
- 'Toggle Active' option really do nothing at this moment + [dashboard]'Toggle Active' option really do nothing at this moment |
summary: |
- [dashboard]'Toggle Active' option really do nothing at this moment + [dashboard] Disabled packages are browsed in App catalog |
Changed in murano: | |
milestone: | none → 0.5 |
importance: | Undecided → Low |
tags: | added: low-hanging-fruit |
Changed in murano: | |
status: | New → Confirmed |
Changed in murano: | |
assignee: | nobody → Ankur Rishi (ankur-rishi) |
Changed in murano: | |
status: | In Progress → Fix Committed |
Changed in murano: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I investigated and found that the murano dashboard calls up the murano api endpoint's "search" function to retrieve a list of active packages.
Unfortunately, the "enabled" attribute of a package is not one of the supported parameters. Moreover, the murano dashboard's admin listing of packages (which calls the "search" function) needs to return all packages, enabled or not. However, the application catalog's listing (which also calls the same "search" function) needs to filter out the disabled packages.
We can add an "enabled" parameter, but then the question becomes one of how to we keep the parameter only exposed to admins while ignoring it for other users. We can support the parameter, but ignore it if it's passed by someone not allowed to pass it. However, this will still mean that admin users will still see all packages, enabled or not, in the application catalog.
Another solution would be to provide separate search functions for admin users and for regular users. Regular users would always get only enabled packages while admin users would be able to pass in a flag for filtering packages by their status.
Any thoughts?