-
Notifications
You must be signed in to change notification settings - Fork 65
feat: add steps support to templates #812
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
Conversation
dieppa
left a comment
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.
This requires some changes and it's half done, the changeTemplate structure should be affected
- The
steps, unlike theapplyandrollback, it's a list , not an object. setStepsPayloadis expected by the TemplateExecutableTask to be a method in theChangeTemplateinterface, but it's notapplyandrollbackshould be marked as deprecated(and removed in the next PR)
| private Object configuration; | ||
| private Object apply; | ||
| private Object rollback; | ||
| private Object steps; |
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.
This should be a List.
| private Object configuration; | ||
| private Object apply; | ||
| private Object rollback; | ||
| private Object steps; |
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.
This should be a List.
| private Object configuration; | ||
| private Object apply; | ||
| private Object rollback; | ||
| private Object steps; |
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.
This should be a List.
| } | ||
|
|
||
| Method setStepsMethod = Arrays.stream(instance.getClass().getMethods()) | ||
| .filter(m -> "setStepsPayload".equals(m.getName())) |
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.
this method is not present in the ChangeTemplate interface
| private Object configuration; | ||
| private Object apply; | ||
| private Object rollback; | ||
| private Object steps; |
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.
This should be a List.
feat: add steps support to templates