I'm trying to implement the following ETL job in Kiba, in the context of a Rails app:
- For a given local database record
- Search its name using a remote application API (Evernote)
- For each record found with the API, get the GUIDs of all the tags used on this record and consolidate this in a single array
- Using the same API, retrieve the full list of tags used, in order to get their labels from the GUID
- Process these tags (keep, ignore, replace) based on internal business logic
- Save these tags on the local database record
My question is: how would you model the sources in this example?
The starting point is the local database record, but the real data comes from two calls to the API (1/ records returned by the search and 2/ full tags list).
Thanks!