You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f"Expected manifest component of type {model_type.__name__}, but received {component_type} instead"
1279
1279
)
1280
1280
1281
+
# FIXME the interfaces of the concurrent cursor are kind of annoying as they take a `ComponentDefinition` instead of the actual model. This was done because the ConcurrentDeclarativeSource didn't have access to the models [here for example](https://github.com/airbytehq/airbyte-python-cdk/blob/f525803b3fec9329e4cc8478996a92bf884bfde9/airbyte_cdk/sources/declarative/concurrent_declarative_source.py#L354C54-L354C91). So now we have two cases:
1282
+
# * The ComponentDefinition comes from model.__dict__ in which case we have `parameters`
1283
+
# * The ComponentDefinition comes from the manifest as a dict in which case we have `$parameters`
1284
+
# We should change those interfaces to use the model once we clean up the code in CDS at which point the parameter propagation should happen as part of the ModelToComponentFactory.
f"Expected manifest component of type {model_type.__name__}, but received {component_type} instead"
1583
1589
)
1584
1590
1591
+
# FIXME the interfaces of the concurrent cursor are kind of annoying as they take a `ComponentDefinition` instead of the actual model. This was done because the ConcurrentDeclarativeSource didn't have access to the models [here for example](https://github.com/airbytehq/airbyte-python-cdk/blob/f525803b3fec9329e4cc8478996a92bf884bfde9/airbyte_cdk/sources/declarative/concurrent_declarative_source.py#L354C54-L354C91). So now we have two cases:
1592
+
# * The ComponentDefinition comes from model.__dict__ in which case we have `parameters`
1593
+
# * The ComponentDefinition comes from the manifest as a dict in which case we have `$parameters`
1594
+
# We should change those interfaces to use the model once we clean up the code in CDS at which point the parameter propagation should happen as part of the ModelToComponentFactory.
0 commit comments