elasticio / sftp-component

SFTP component for the elastic.io platform
Apache License 2.0
2 stars 3 forks source link

Write OIH Compliant "Lookup File (At most 1) By Filename" Action #18

Closed jhorbulyk closed 4 years ago

jhorbulyk commented 5 years ago

OIH Standard: In the case of files on an sftp server, the filename with absolute path is effectively the ID.

There should be an action Lookup File (at most 1) that adheres to the OIH standard. Iteration 1 is fine. It is not clear that iteration 2 could ever exist since filename is the only criteria which is commonly used to uniquely identify files. The file should be stored as an attachment in steward and the message structure should be similar to the structure produced by read. The file on the SFTP server should not be altered by this operation.

Suggested Config Fields

Input metadata

zubairov commented 5 years ago

Interesting proposal. I think the assumption that file name is an ID may not be valid for typical SFTP use-cases where SFTP server is seen lees as CRUD service to read and write data but more like Queue where data batches are temproarily stored

shulkaolka commented 4 years ago

DoD

Component development prerequisites:

Development:

After QA:

QA: