Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-2699

CLONE - Allow DiscoverSchema action to fill complex objects

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • None
    • ui

    Description

      According documentation

      Mark a List<String> or List<Object> field as being represented as the component data selector.

      when using the following kind of code

       @Option
       @Documentation("Schema.")
       @Structure(type = Structure.Type.OUT, discoverSchema = GUESS_SCHEMA)
       private List<SchemaInfo> schema = Collections.emptyList();
      

      We expect, to fill an Object matching all or a set of properties matching the Schema.Entry interface...
      But, in fact in javascript code, it cannot handle anything but only the entry name (of Schema.Entry class):

      parent[key] = body.entries.map(entry => entry.name); 
      

      See code at https://github.com/Talend/ui/blob/0fc2e8ea8433070abacfd6eb0e61a577ed11ab95/packages/containers/src/ComponentForm/kit/defaultRegistry.js#L82

      This bug affects cloud environments.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              calvis calvis cr
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: