-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
fix(SavedQueries): allow other admin users see "saved queries" (#20604) #21769
base: master
Are you sure you want to change the base?
Conversation
@dpgaspar Any time to look at this fix? |
Codecov Report
@@ Coverage Diff @@
## master #21769 +/- ##
===========================================
- Coverage 66.88% 55.50% -11.39%
===========================================
Files 1800 1800
Lines 68967 68970 +3
Branches 7339 7339
===========================================
- Hits 46128 38281 -7847
- Misses 20943 28793 +7850
Partials 1896 1896
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Hi @pengwk ! Thanks for opening this PR Would it be possible to make the following additions to help make sure the Saved Queries page is still usable for admins?
Thanks! |
Hi @yousoph ! Thank you very much for your guidance and I am happy to be able to contribute to the project. Need to add a filter to the homepage? |
Good question! I think having the current "Mine" filter on the home page is enough. The other sections have "Favorite" and "Examples" filters which I don't think we need here |
… "Actions" 2. Add a "Created by" filter to the top of the page, to the left of "Search"
Hi, @yousoph! Both tasks 1 and 2 have been achieved, but I don't know how to do task 3. Can you find someone familiar with you for some guidance? |
can you add tests? |
Yes, I can add tests, wait for me. Thanks for your reply. |
Will this fix also apply to the REST API? We are trying to use an administrative service account to pull all saved queries for all users via the REST API. |
It would be great if you could write tests. |
@Bill0412 I'm working on it, I was too busy with work, sorry. |
I've already started using it without test. Don't worry about that too much. |
Looks like this is in need of a rebase. Personally, I think we might be able to merge it without added filters and tests. While they'd be ideal, it seems like this is still an improvement and closes a long-outstanding Issue. Curious if you agree @yousoph |
Would love to have this PR merged in |
SUMMARY
Show the list of all saved queries despite of creators. If the fix is acceptable, then add the test.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
Follow #20604 issue's description.
ADDITIONAL INFORMATION