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)
Sat, Nov 9, 5:08 PM
Unknown Object (File)
Sat, Nov 9, 5:08 PM
Unknown Object (File)
Sat, Nov 9, 5:08 PM
Unknown Object (File)
Wed, Nov 6, 12:34 AM
Unknown Object (File)
Wed, Oct 23, 9:42 AM
Unknown Object (File)
Oct 21 2024, 4:23 PM
Unknown Object (File)
Oct 19 2024, 2:03 AM
Unknown Object (File)
Oct 7 2024, 2:25 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