Homec4science

Add "Manual Activities", to tell administrators to rebuild the search index

Authored by epriestley <git@epriestley.com> on Nov 30 2016, 19:26.

Description

Add "Manual Activities", to tell administrators to rebuild the search index

Summary:
Ref T11922. After updating to HEAD of master, you need to manually rebuild the index. We don't do this during bin/storage upgrade because it can take a very long time (secure.phabricator.com took roughly an hour) and can happen while Phabricator is running.

However, if we don't warn users about this they'll just get a broken index unless they go read the changelog (or file an issue, then we tell them to go read the changelog).

This adds a very simple table for notes to administrators so we can write a "you need to go rebuild the index" note, then adds one.

Administrators clear the note by completing the activity and running bin/config done reindex. This isn't automatic because there are various strategies you can use to approach the issue, which I'll discuss in greater detail in the linked documentation.

Also, fix an issue where bin/storage upgrade --apply <patch> could try to re-mark an already-applied patch as applied.

Test Plan:

  • Ran storage ugrades.
  • Got instructions to rebuild search index.
  • Cleared instructions with bin/config done reindex.

Reviewers: chad

Reviewed By: chad

Subscribers: avivey

Maniphest Tasks: T11922

Differential Revision: https://secure.phabricator.com/D16965

Details

Committed
epriestley <git@epriestley.com>Nov 30 2016, 20:23
Pushed
aubortJan 31 2017, 17:16
Parents
rPHeeb80ba96b59: Add sidenav back to workboards
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH29a3cd5121d9: Add "Manual Activities", to tell administrators to rebuild the search index (authored by epriestley <git@epriestley.com>).Nov 30 2016, 20:23