-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
UI: Fix filtering of templates by account #10425
base: 4.19
Are you sure you want to change the base?
UI: Fix filtering of templates by account #10425
Conversation
@bernardodemarco a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #10425 +/- ##
============================================
- Coverage 15.15% 15.15% -0.01%
+ Complexity 11315 11314 -1
============================================
Files 5413 5413
Lines 474694 474696 +2
Branches 57891 57892 +1
============================================
- Hits 71942 71941 -1
- Misses 394706 394709 +3
Partials 8046 8046
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
UI build: ✔️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm, tested in qa: from an account only the templates for that account are show, from the menu all templates visible to the user are shown.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering if we should change the filter to 'Mine' when we go from account view -> templates. So that we can switch back to 'All' templatefilter?
Great idea, I'll see if that's possible |
good catch, simple workaround is to switch to any other filter and back to 'All' though. |
Description
Currently, an account's
InfoCard
contains buttons that enable the users to view the resources of a given account. However, theView Templates
button is not working. When selected, all templates are listed.This PR proposes to fix this issue by only listing the templates associated to an account when the
View Templates
button on itsInfoCard
is selected.Fixes #10391
Types of changes
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Verified that when selecting the
View Templates
button present on an account'sInfoCard
, the UI redirects the user to the following path/template?templatefilter=self&account=<account-name>&domainid=<domain-id>
. Therefore, only the templates associated with the account are listed.