Skip to content

Conversation

@davidfrigolet
Copy link
Contributor

feat: add steps support to templates

Copy link
Member

@dieppa dieppa left a 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 the apply and rollback, it's a list , not an object.
  • setStepsPayload is expected by the TemplateExecutableTask to be a method in the ChangeTemplate interface, but it's not
  • apply and rollback should be marked as deprecated(and removed in the next PR)

private Object configuration;
private Object apply;
private Object rollback;
private Object steps;
Copy link
Member

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;
Copy link
Member

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;
Copy link
Member

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()))
Copy link
Member

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;
Copy link
Member

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.

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.

3 participants