Homec4science

Add an administrative `bin/repository mark-imported` command

Authored by epriestley <git@epriestley.com> on Nov 6 2013, 20:26.

Description

Add an administrative bin/repository mark-imported command

Summary:
Ref T4068. In some cases like that one, I anticipate a repository not fully importing when a handful of random commits are broken. In the long run we should just deal with that properly, but in the meantime provide an administrative escape hatch so you can mark the repository as imported and get it running normally.

The major reason to do this is that Herald, Feed, Harbormaster, etc., won't activate until a repository is "imported".

Test Plan:

  • Tried to mark an imported repository as imported, got an "already imported" message.
  • Same for not-imported.
  • Marked a repository not-imported.
  • Marked a repository imported.
  • Marked a repository not-imported, then waited for the daemons to mark it imported again automatically.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran, kbrownlees

Maniphest Tasks: T4068

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

Details

Committed
epriestley <git@epriestley.com>Nov 6 2013, 20:26
Pushed
aubortJan 31 2017, 17:16
Parents
rPH377742c23af0: Get some level of meaningful status information into Harbormaster buildable list
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHe3a5ab1f8cec: Add an administrative `bin/repository mark-imported` command (authored by epriestley <git@epriestley.com>).Nov 6 2013, 20:26