-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add release directives support to SnowCLI #1938
Add release directives support to SnowCLI #1938
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not add integration tests for the release directive commands? We can add additional tests for release channels once they are available too
src/snowflake/cli/_plugins/nativeapp/entities/application_package.py
Outdated
Show resolved
Hide resolved
src/snowflake/cli/_plugins/nativeapp/entities/application_package.py
Outdated
Show resolved
Hide resolved
channel: Optional[str] = typer.Option( | ||
default=None, | ||
show_default=False, | ||
help="The release channel to use when listing release directives. If not provided, release directives from all release channels are listed.", | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we hide the channel
options until release channels are available in prod?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They will be available in the upcoming release, and they are optional anyways.
Snow CLI will not deploy before January, so I believe we should be ok.
Release channel commands (snow app release-channel) will also follow so they will be visible regardless.
Will submit this as a follow up - Waiting for the UI Parameter FEATURE_RELEASE_CHANNELS to be available (ETA of deployment is tomorrow) before i can write integ tests. Otherwise, some of the commands (show release channels) are not available, and can't check the UI Parameter because the default is true. |
3fab28d
3fab28d
to
514fc72
Compare
Pre-review checklist
Changes description
snow app release-directive list
to list the release directives.snow app release-directive set
to set a release directivesnow app release-directive unset
to unset a release directive.Integ tests will be added after release channels changes are available in prod.