-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(vdp): add release stage to component definitions (#283)
Because - Component page and auto-generated docs require a release stage, and unimplemented stages (coming soon / open for contributions) shouldn't be extracted from the `version` field. - Reasons: they don't compare well (`0.1.0-alpha` < `0.1.0-alpha.coming-soon` < `0.1.0-coming-soon`), version isn't as good as an enum to filter out unimplemented versions (if in the future we use the component definition table for fetching the connectors / operators in the console). This commit - Adds and documents a `release_stage` enum and field to component definitions. ## ⏩ Next steps - Introduce property in existing `definitions.json` fields - Read this property when building the component definitions index in SQL. - Remove unimplemented components from [connector and operator lists](https://github.com/instill-ai/component/blob/main/pkg/base/connector.go#L177). Right now we don't have any component in this stage but as soon as we have one they will be load in the inmem list of definitions and they will appear in the console when building pipelines. - Update `compogen` to read release stages from this field instead of from `version` --------- Co-authored-by: droplet-bot <[email protected]>
- Loading branch information
1 parent
c4cdf98
commit 8c20b4b
Showing
2 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters