Page MenuHomePhabricator

Extend all "ManagementWorkflow" classes from a base class
ClosedPublic

Authored by epriestley on Dec 26 2013, 9:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 16 2026, 12:12 PM
Unknown Object (File)
Jan 9 2026, 3:34 AM
Unknown Object (File)
Jan 9 2026, 1:31 AM
Unknown Object (File)
Nov 28 2025, 10:47 AM
Unknown Object (File)
Oct 30 2025, 12:27 AM
Unknown Object (File)
Oct 29 2025, 11:13 PM
Unknown Object (File)
Oct 28 2025, 10:45 AM
Unknown Object (File)
Oct 13 2025, 2:02 PM
Subscribers

Details

Summary

Ref T2015. Not directly related to Drydock, but I've wanted to do this for a bit.

Introduce a common base class for all the workflows in the scripts in bin/*. This slightly reduces code duplication by moving isExecutable() to the base, but also provides getViewer(). This is a little nicer than PhabricatorUser::getOmnipotentUser() and gives us a layer of indirection if we ever want to introduce more general viewer mechanisms in scripts.

Test Plan

Lint; ran some of the scripts.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped