Page MenuHomePhabricator

Separate saved queries in applications into "personal" and "global" queries
ClosedPublic

Authored by epriestley on Aug 14 2017, 8:15 PM.
Tags
None
Referenced Files
F18769936: D18426.id.diff
Wed, Oct 8, 9:59 AM
F18759557: D18426.id.diff
Mon, Oct 6, 4:31 AM
F18645309: D18426.id44277.diff
Fri, Sep 19, 7:25 AM
F18637642: D18426.diff
Wed, Sep 17, 7:54 AM
F18591726: D18426.id44366.diff
Sep 12 2025, 10:00 AM
F18494025: D18426.diff
Sep 4 2025, 6:01 AM
F18110070: D18426.id44366.diff
Aug 11 2025, 3:57 PM
F18109930: D18426.id44366.diff
Aug 11 2025, 3:26 PM
Subscribers
None

Details

Summary

Ref T12956. UI changes:

  • Administrators get a new [X] Save as global query option when saving a query.
  • "Edit Queries..." is split into "Personal" and "Global" sections. For administrators, each section can be edited. For non-admins, only the top section can be edited, but any query can be pinned.

A couple notes:

  • This doesn't support "pin for everyone by default". New users just get the first query from the bottom set. That seems reasonable for now.
  • Reordering is currently a little buggy (it works if you've reordered before, but not if you're reordering for the first time), but I need to migrate before I can fix / test that properly. So that'll get cleaned up in the next change or two.
Test Plan
  • As an admin and non-admin, viewed, edited, disabled, saved-as-personal and saved-as-global various queries.

Screen Shot 2017-08-14 at 1.12.32 PM.png (758×1 px, 104 KB)

Screen Shot 2017-08-14 at 1.11.45 PM.png (970×1 px, 153 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable