Details
Description
New BuiltInSuggestable API will be added by Romain. This means UI should show widget with suggested values for annotated component option. Suggested values are schema column names.
https://github.com/Talend/component-api/blob/master/src/main/java/org/talend/sdk/component/api/configuration/action/BuiltInSuggestable.java
If annotated component option is String widget should allow single selection of suggested values (dropdown list).
If annotated component option is List<String> widget should allow multiple selection of suggested values.
Suggested values should be collected statically (without server call).
Suggested values should be collected from incoming schema? (should be checked whether this requirement is correct and suitable)
Implementation details
In case Option is annotated with BuiltInSuggestable, component server will return SimplePropertyDefinition with following metadata key:
action::built_in_suggestable=INCOMING_SCHEMA_ENTRY_NAMES
value can be anything, so there should be switch-case.
In case there is unknown value it should be logged and empty list should be returned.
./main/plugins/org.talend.core.runtime/src/main/java/org/talend/core/model/process/EParameterFieldType.java has some speicifc widgets like PREV_COLUMN_LIST, which can maybe be used
Attachments
Issue Links
- blocks
-
TCOMP-1083 Enable suggestion from schema data for a configuration.
-
- Done
-
- is related to
-
TUP-30291 Add Suggestable support for Table options (List<Row>) in Studio
-
- closed
-
-
TUP-20952 Add Suggestable support for Table options (List<Row>) in Studio
-
- Rejected
-
-
TUP-21099 [Research] TACOKit v1 integration
-
- closed
-
-
TUP-21759 BuiltInSuggestable table should remove value, when corresponding schema column was removed
-
- closed
-