Repository navigation
Schedule and Connection Decoupling #76
|
Hey @charlie-haley, I was working on a table preview feature to allow users to view sample data on the asset detail page (if they have the necessary permissions), and I realized there might be a coupling issue. We currently collect both connection details (e.g., user, password in the Postgres plugin) and behavioral configurations (e.g., excluding system schemas/tables in the Postgres plugin) in the plugin’s config: marmot/internal/plugin/providers/postgresql/source.go Lines 28 to 44 in 9a59759 We then store all of these configurations in the ingestion schedule’s config: marmot/internal/core/runs/schedule_store.go Lines 37 to 50 in 9a59759 If we want to add features like table preview or health checks, we need to access this schedule config since everything depends on this schedule. I have a question regarding this:
I’d appreciate hearing your thoughts on this. Thank you. You can find a couple of screenshots of this connection feature below:
|
Replies: 1 comment 5 replies
|
This seems like a great feature to have. It will also make implementing data quality features and statistics a lot easier! How do you think the CLI/YAML config would change, should we use Kubernetes style references to reference a connection? e.g |



If we can, I think a DB migration would be good, at least to prevent any catastrophic failures. It might involve writing a migration that covers each plugin, but it will be a nicer user experience for any upgrades