Skip to content

Commit 00c0f13

Browse files
SNOW-2178027 revert explicit preview changes (#2476)
fix: [SNOW-2178027] Revert preview changes and ENABLE_DBT default
1 parent 4e7720a commit 00c0f13

File tree

5 files changed

+348
-369
lines changed

5 files changed

+348
-369
lines changed

src/snowflake/cli/api/commands/snow_typer.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646

4747
log = logging.getLogger(__name__)
4848

49+
PREVIEW_PREFIX = ""
50+
4951

5052
class SortedTyperGroup(TyperGroup):
5153
def list_commands(self, ctx: click.Context) -> List[str]:
@@ -107,18 +109,17 @@ def command(
107109

108110
def custom_command(command_callable):
109111
"""Custom command wrapper similar to Typer.command."""
110-
# Sanitize doc string which is used to create help in terminal
111112
command_callable.__doc__ = sanitize_for_terminal(command_callable.__doc__)
112113

113114
if preview and command_callable.__doc__:
114-
if not command_callable.__doc__.strip().startswith("(preview)"):
115+
if not command_callable.__doc__.strip().startswith(PREVIEW_PREFIX):
115116
command_callable.__doc__ = (
116-
f"(preview) {command_callable.__doc__.strip()}"
117+
f"{PREVIEW_PREFIX}{command_callable.__doc__.strip()}"
117118
)
118119

119120
if preview and "help" in kwargs and kwargs["help"]:
120-
if not kwargs["help"].strip().startswith("(preview)"):
121-
kwargs["help"] = f"(preview) {kwargs['help'].strip()}"
121+
if not kwargs["help"].strip().startswith(PREVIEW_PREFIX):
122+
kwargs["help"] = f"{PREVIEW_PREFIX}{kwargs['help'].strip()}"
122123

123124
if requires_connection:
124125
command_callable = global_options_with_connection(command_callable)
@@ -256,8 +257,8 @@ def __init__(
256257
def create_instance(self) -> SnowTyper:
257258
help_text = self.help
258259
if self.preview and help_text:
259-
if not help_text.strip().startswith("(preview)"):
260-
help_text = f"(preview) {help_text.strip()}"
260+
if not help_text.strip().startswith(PREVIEW_PREFIX):
261+
help_text = f"{PREVIEW_PREFIX}{help_text.strip()}"
261262

262263
app = SnowTyper(
263264
name=self.name,

src/snowflake/cli/api/feature_flags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class FeatureFlag(FeatureFlagMixin):
6464
)
6565
ENABLE_SNOWPARK_GLOB_SUPPORT = BooleanFlag("ENABLE_SNOWPARK_GLOB_SUPPORT", False)
6666
ENABLE_SPCS_SERVICE_EVENTS = BooleanFlag("ENABLE_SPCS_SERVICE_EVENTS", False)
67-
ENABLE_DBT = BooleanFlag("ENABLE_DBT", True)
67+
ENABLE_DBT = BooleanFlag("ENABLE_DBT", False)
6868
ENABLE_AUTH_KEYPAIR = BooleanFlag("ENABLE_AUTH_KEYPAIR", False)
6969
ENABLE_NATIVE_APP_PYTHON_SETUP = BooleanFlag(
7070
"ENABLE_NATIVE_APP_PYTHON_SETUP", False

0 commit comments

Comments
 (0)