Skip to content
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

Snow 1038392 validation of plugin enabled type #738

Merged
merged 8 commits into from
Feb 6, 2024

Conversation

sfc-gh-pczajka
Copy link
Contributor

@sfc-gh-pczajka sfc-gh-pczajka commented Feb 5, 2024

Pre-review checklist

  • I've confirmed that instructions included in README.md are still correct after my changes in the codebase.
  • I've added or updated automated unit tests to verify correctness of my new code.
  • I've added or updated integration tests to verify correctness of my new code.
  • I've confirmed that my changes are working by executing CLI's commands manually.
  • I've confirmed that my changes are up-to-date with the target branch.
  • I've described my changes in the release notes.
  • I've described my changes in the section below.

Changes description

Add validation of "enabled" value from plugins section of config.toml

from snowflake.cli.api.plugins.plugin_config import PluginConfig


def _assert_config_enabled_value_is_bool(value, plugin_name) -> None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe lets name it _assert_value_is_bool as we can pass any value here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@sfc-gh-pczajka sfc-gh-pczajka merged commit d39ac23 into main Feb 6, 2024
17 checks passed
@sfc-gh-pczajka sfc-gh-pczajka deleted the SNOW-1038392-validation-of-plugin-enabled-type branch February 6, 2024 12:47
sfc-gh-sichen pushed a commit that referenced this pull request Oct 17, 2024
* Add plugin config enabled type validation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants