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
F15665382: D7514.id16949.diff
Sun, May 25, 5:49 AM
Unknown Object (File)
Tue, May 20, 8:45 PM
Unknown Object (File)
Mon, May 19, 7:28 AM
Unknown Object (File)
Fri, May 9, 4:36 AM
Unknown Object (File)
Apr 9 2025, 8:21 PM
Unknown Object (File)
Apr 9 2025, 6:31 PM
Unknown Object (File)
Apr 8 2025, 7:31 PM
Unknown Object (File)
Apr 7 2025, 6:12 AM
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

Branch
importing
Lint
Lint Passed
Unit
No Test Coverage