Skip to content

Conversation

rihter007
Copy link
Contributor

Minimal change to make step variables feature fully work in prod

@rihter007 rihter007 force-pushed the feature/expand_variables_to_parameters branch from ff23a80 to 263cd19 Compare August 8, 2022 15:24
@rihter007 rihter007 requested a review from mimir-d August 8, 2022 15:24
@rihter007 rihter007 force-pushed the feature/expand_variables_to_parameters branch from 263cd19 to 04c951a Compare August 8, 2022 16:00
return mapCopy
}

func registerStepVariableAccessor(fm map[string]interface{}, tgtID string, vars StepsVariablesReader) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont these always expand to a string? the descriptor json is a string, what's the point of having an int version? just type safety?

Copy link
Contributor Author

@rihter007 rihter007 Aug 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, always to "smth" or "smth" and error: https://pkg.go.dev/text/template#FuncMap . Where smth should will be converted to string by template (I assume via Sprintf)

Signed-off-by: Ilya <rihter007@inbox.ru>
@rihter007 rihter007 force-pushed the feature/expand_variables_to_parameters branch from 04c951a to 642b26f Compare August 8, 2022 18:54
@rihter007 rihter007 requested a review from mimir-d August 8, 2022 18:54
@mimir-d mimir-d merged commit 29d7b6d into main Aug 8, 2022
@mimir-d mimir-d deleted the feature/expand_variables_to_parameters branch August 8, 2022 21:07
rihter007 pushed a commit that referenced this pull request Aug 9, 2022
…rameters

Parameter.Expand consumes optional StepsVariables argument

Signed-off-by: Ilya <rihter007@inbox.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants