Page MenuHomePhabricator

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

Authored by epriestley on Nov 6 2013, 3:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 14, 9:50 AM
Unknown Object (File)
Mon, Apr 8, 11:41 PM
Unknown Object (File)
Sat, Apr 6, 6:04 AM
Unknown Object (File)
Thu, Apr 4, 1:40 PM
Unknown Object (File)
Mar 19 2024, 1:37 AM
Unknown Object (File)
Mar 5 2024, 2:42 AM
Unknown Object (File)
Feb 16 2024, 4:14 AM
Unknown Object (File)
Jan 26 2024, 10:15 PM
Subscribers

Details

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.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped