-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eliminate most use of hard coded strings for pipeline stage names #1640
Conversation
7a5ba94
to
8890b7e
Compare
3cbf7cf
to
48fea67
Compare
8890b7e
to
994c3b5
Compare
48fea67
to
b1c83a1
Compare
994c3b5
to
55dd583
Compare
b1c83a1
to
cbd24f7
Compare
131ec1b
to
3fb22f1
Compare
cbd24f7
to
88c2074
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
pipeline.InjectOriginalVersionFunctionStageID, | ||
pipeline.InjectOriginalVersionPropertyStageID, | ||
pipeline.InjectPropertyAssignmentFunctionsStageID, | ||
//pipeline.InjectHubFunctionStageID, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: Is this commented out for a reason? I think yes and it will be enabled later? Might be worth a TODO here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we'll want to include this stage in tests, but we can't remove it until it's formally included in the pipeline. Comment added.
88c2074
to
3aa75b8
Compare
What this PR does / why we need it:
Largely eliminates the use of magic strings to identify pipeline stages, which will help with future stability.
For a couple of stages where the prerequisites are intrinsic to correct behaviour, I moved the declaration of the prerequisite into the stage itself where it is less likely to be inadvertently removed.
Also includes a handful of other code gardening changes.
Prerequisites
master
How does this PR make you feel:
![gif](https://camo.githubusercontent.com/e4f5a9e1c9682c32a301b4528abce42269b6db8297271d656b879fac942fd2a5/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f535167626b7a697547724e78532f67697068792e676966)