andrew_stewart
12/07/2021, 7:37 PMaaronsteers
12/07/2021, 7:40 PMandrew_stewart
12/07/2021, 7:44 PM'my_list': ['a','b','c']
(and this instance with another property 'id': 'xxx'
)…
and then say in the child stream I’d expect objects obtained from paths as follows:
• /parent/{id}/{a}
• /parent/{id}/{b}
• /parent/{id}/{c}
Does something like that seem possible with parent child steams?andrew_stewart
12/07/2021, 7:44 PMaaronsteers
12/07/2021, 7:47 PMandrew_stewart
12/07/2021, 7:47 PMb
,etc.aaronsteers
12/07/2021, 7:48 PMandrew_stewart
12/07/2021, 7:48 PMaaronsteers
12/07/2021, 7:48 PMandrew_stewart
12/07/2021, 7:49 PMaaronsteers
12/07/2021, 7:49 PMaaronsteers
12/07/2021, 7:51 PMaaronsteers
12/07/2021, 7:52 PMaaronsteers
12/07/2021, 7:53 PMandrew_stewart
12/07/2021, 7:56 PMdef get_records(self, context: Optional[dict] = None) -> Iterable[Dict[str, Any]]:
"""Return a generator of row-type dictionary objects.
Each row emitted should be a dictionary of property names to their values.
"""
if context and 'a' in context.get("my_list"):
self.logger.debug(f"No comments detected. Skipping '{self.name}' sync.")
return []
return super().get_records(context)
andrew_stewart
12/07/2021, 8:01 PMandrew_stewart
12/07/2021, 8:03 PMaaronsteers
12/07/2021, 8:11 PMaaronsteers
12/07/2021, 8:12 PM