How do we add collections and channels to a local project with v2 sync?
Collections and channels both live at the project level
We don't really represent the project level stuff on disk. You've got your workflow.yaml but that doesn't hold collections or channels
The project yaml file contains both keys at the top level. But you can't edit that locally (when you try and deploy it, we fetch the latest version and drop your local edits)
Probably the only place we currently do hold this is the project key in openfn.yaml. We can pull those details into the metadata, and users can edit it freely to add more.
That's got to be the answer, but it does slightly change my perception on what the openfn.yaml file is
How do we add collections and channels to a local project with v2 sync?
Collections and channels both live at the project level
We don't really represent the project level stuff on disk. You've got your workflow.yaml but that doesn't hold collections or channels
The project yaml file contains both keys at the top level. But you can't edit that locally (when you try and deploy it, we fetch the latest version and drop your local edits)
Probably the only place we currently do hold this is the
projectkey inopenfn.yaml. We can pull those details into the metadata, and users can edit it freely to add more.That's got to be the answer, but it does slightly change my perception on what the openfn.yaml file is