-
Notifications
You must be signed in to change notification settings - Fork 59
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
Refactor unreleased commands and hide released spcs flags instead of blocking #1989
Refactor unreleased commands and hide released spcs flags instead of blocking #1989
Conversation
"enable_spcs_service_events = true\n" | ||
"enable_spcs_service_metrics = true\n" | ||
) | ||
yield config_toml |
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.
Do we need to do this on config file? Mock is_enabled/is_disabled is more obvious and faster. WDYT?
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.
Unfortunately - mocking happens after the commands.py
file is imported. During import is_enabled
function is saved in app factory, which means it is not mocked :/
…blocking (#1989) * disable spcs commands if feature flag is disabled; hide logs instead of rising an error * Hide flag instead of command, fix tests * update snapshots * remove streaming flag
* SNOW-1843926: SPCS service events & metrics (#1954) * spcs service events&metrics * snapshot and feature flag * add new test * fix test * new table format and new test and new snapshot * fix comment * release notes * fix comments * snapshot update * update snapshots --------- Co-authored-by: Teja Kommineni <teja.kommineni@snowflake.com> Co-authored-by: Patryk Czajka <patryk.czajka@snowflake.com> * Refactor unreleased commands and hide released spcs flags instead of blocking (#1989) * disable spcs commands if feature flag is disabled; hide logs instead of rising an error * Hide flag instead of command, fix tests * update snapshots * remove streaming flag --------- Co-authored-by: Abby Shen <abby.shen@snowflake.com> Co-authored-by: Teja Kommineni <teja.kommineni@snowflake.com>
Pre-review checklist
Changes description
--follow
and--follow-interval
flags ifENABLE_SPCS_LOG_STREAMING
flag is disabledsnow spcs service metrics/events
commands if their feature flags are not set