-
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
Inject Hub() function on hub storage resources #1616
Conversation
@@ -153,6 +153,7 @@ func NewTestCodeGenerator(testName string, path string, t *testing.T, testConfig | |||
"injectOriginalVersionFunction", | |||
"injectOriginalVersionProperty", | |||
"injectPropertyAssignmentFunctions", | |||
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.
makes me think a pipeline function should take IDFactory
(as well as Configuration
?) so we don't need to have a building function that in turn calls MakeStage
, so that this would be injectHubFunction.name
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 see how this would work - whether the factory methods return functions or objects, we don't have a reference to the value here, so we can't dereference it to access name. #pleaseexplainmore
6d73203
to
7319ad2
Compare
93a5d65
to
8959fb7
Compare
74e3f6f
to
3be33df
Compare
8959fb7
to
157c4eb
Compare
What this PR does / why we need it:
To support use of the
Convertible
interface, the hub storage version needs to implement aHub()
function. This pipeline stage modifies resources that have been flagged as "The storage version" by injecting this necessary function.How does this PR make you feel:
![gif](https://camo.githubusercontent.com/fb3040231185ec4b0d6a36c80d38b65b0f22d69c7cc7e99b3333308ec8749a23/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f7445735056494e4554745a70532f67697068792e676966)
If applicable:
Requires PR #1606 to be merged first, as this reuses test support functions from that PR, and then rebasing on
master
.Harvested from PR #1533.