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)
Thu, Dec 19, 12:19 AM
Unknown Object (File)
Tue, Dec 17, 10:09 AM
Unknown Object (File)
Fri, Dec 6, 2:58 PM
Unknown Object (File)
Wed, Dec 4, 2:47 PM
Unknown Object (File)
Mon, Nov 25, 4:01 PM
Unknown Object (File)
Nov 9 2024, 5:08 PM
Unknown Object (File)
Nov 9 2024, 5:08 PM
Unknown Object (File)
Nov 9 2024, 5:08 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