Page MenuHomePhabricator

Remove rows for personal saved builtin queries

Authored by epriestley on Aug 24 2017, 8:19 PM.
Referenced Files
F12189043: D18464.id44359.diff
Tue, Sep 19, 6:15 AM
F12183286: D18464.diff
Thu, Sep 14, 10:20 AM
Sat, Sep 9, 6:20 AM
F12166982: D18464.diff
Thu, Sep 7, 2:14 AM
Mon, Sep 4, 11:49 AM
F12150184: D18464.id44367.diff
Sat, Sep 2, 4:44 PM
F12126401: D18464.diff
Aug 19 2023, 12:04 AM
Unknown Object (File)
Jul 23 2023, 9:48 AM



Ref T12956. After this change, individual users will no longer be able to modify builtin queries on a user-by-user basis: they will always appear at the bottom of the list, under their personal queries, and can only be managed by administrators.

To support this, clean up the old rows which could be hanging around from before: delete any personal saved queries where the saved query is a builtin query.

To ease this transition, try to pin the query we're deleting if the user had reordered things to put it on top.

Test Plan
  • Ran the migration, saw no changes in the UI but fewer rows.
  • Went back to master, reordered queries to put a builtin one on top.
  • Ran the migration.
  • Saw that builtin one drop to the bottom (since it can't be on top anymore) but be pinned, preserving the behavior of /maniphest/.

Diff Detail

rP Phabricator
Lint Not Applicable
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Aug 24 2017, 8:52 PM
This revision was automatically updated to reflect the committed changes.