Description
Consider following UI Option:
@Option
@Suggestable(value = "basedOnComplex", parameters =
)
private String basedOnComplex;
and following Suggestions method:
@Suggestions("basedOnComplex")
public SuggestionValues basedOnComplex(@Option("ds") final QASuggestionsDatastore store, @Option("c") final ComplexConfig complex) {
ActionReference contains SimplePropertyDefinition, which are sorted in alphabetic order(in case several properties are located on the same level in the tree) . Thus, in ActionProperty property "c" goes before property "ds". The order of properties in ActionReference is different than relative paths order in Suggestable.parameters().
However, integration in Studio expects action properties in the same order as relative paths.
This should be fixed.
See:
https://github.com/Talend/component-runtime-qa/blob/master/components/qa/src/main/java/org/talend/components/qa/actions/QASuggestionsDataset.java#L83-L86
https://github.com/Talend/component-runtime-qa/blob/master/components/qa/src/main/java/org/talend/components/qa/actions/QASuggestionsService.java#L58-L59
Workaround for component dev:
ensure Suggestions method parameters go in alphabetic order.