HomePhabricator

Rough cut of DrydockRepositoryOperation

Tags
None
Referenced Files
F875741: Screen Shot 2015-10-13 at 9.35.22 AM.png
Oct 13 2015, 10:46 PM
F875743: Screen Shot 2015-10-13 at 9.34.07 AM.png
Oct 13 2015, 10:46 PM
F875750: Screen Shot 2015-10-13 at 9.37.40 AM.png
Oct 13 2015, 10:46 PM
F875747: Screen Shot 2015-10-13 at 9.36.31 AM.png
Oct 13 2015, 10:46 PM
Subscribers
None

Description

Rough cut of DrydockRepositoryOperation

Summary:
Ref T182. This doesn't do anything interesting yet and is mostly scaffolding, but here's roughly the workflow. From previous revision, you can configure "Repository Automation" for a repository:

Screen Shot 2015-10-13 at 9.35.22 AM.png (131×1 px, 16 KB)

If it's configured, a new "Land Revision" button shows up:

Screen Shot 2015-10-13 at 9.34.07 AM.png (345×486 px, 33 KB)

Once you click it you get a big warning dialog that it won't work, and then this shows up at the top of the revision (completely temporary/placeholder UI, some day a nice progress bar or whatever):

Screen Shot 2015-10-13 at 9.36.31 AM.png (328×1 px, 43 KB)

If you're lucky, the operation eventually sort of works:

Screen Shot 2015-10-13 at 9.37.40 AM.png (629×1 px, 108 KB)

It only runs git show right now, doesn't actually do any writes or anything.

Test Plan:

  • Clicked "Land Revision".
  • Watched phd debug task.
  • Saw it log git show to output.
  • Verified operation success in UI (by fiddling URL, no way to get there normally yet).

Reviewers: chad

Reviewed By: chad

Subscribers: revi

Maniphest Tasks: T182

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