fix(SavedQueries): allow other admin users see "saved queries" (#20604)#21769
fix(SavedQueries): allow other admin users see "saved queries" (#20604)#21769pengwk wants to merge 2 commits into
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 |
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 |
|
Needs a rebase (sorry!) A couple questions about this came up here: #20604 (comment) This might warrant a little bit more Discussion (cc @yousoph @eschutho @michael-s-molina) |
|
Hi @pengwk, this PR has been open for a long time and there's clearly a lot of community interest in seeing it land — thank you for sticking with it. It currently has merge conflicts and there are some open design questions raised in the last comment that need discussion (cc @yousoph @eschutho @michael-s-molina). We're converting it to draft for now. When you're ready, please rebase on the latest |
… "Actions" 2. Add a "Created by" filter to the top of the page, to the left of "Search"
a7bdb78 to
5475330
Compare
|
Picked this back up @pengwk - it had drifted ~8k commits behind and gone conflicting. I rebased it onto current |

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