tinybird 0.0.1.dev261__tar.gz → 0.0.1.dev262__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of tinybird might be problematic. Click here for more details.
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/PKG-INFO +1 -1
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/sql_template.py +8 -1
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/__cli__.py +2 -2
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/deployment.py +32 -5
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/deployment_common.py +5 -1
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird.egg-info/PKG-INFO +1 -1
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/setup.cfg +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/__cli__.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/client.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/config.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/connectors.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/context.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/datafile/common.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/datafile/exceptions.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/datafile/parse_connection.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/datafile/parse_datasource.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/datafile/parse_pipe.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/prompts.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/sql.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/sql_toolset.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/check_pypi.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/cli.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/client.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/config.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/__init__.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/agent.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/animations.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/banner.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/memory.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/models.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/prompts.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/tools/__init__.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/tools/analyze.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/tools/append.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/tools/build.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/tools/create_datafile.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/tools/deploy.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/tools/deploy_check.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/tools/diff_resource.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/tools/execute_query.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/tools/explore.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/tools/get_endpoint_stats.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/tools/get_openapi_definition.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/tools/mock.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/tools/plan.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/tools/preview_datafile.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/tools/request_endpoint.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/tools/test.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/utils.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/build.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/build_common.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/cicd.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/cli.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/common.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/config.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/connection.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/copy.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/create.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/datafile/build.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/datafile/build_common.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/datafile/diff.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/datafile/format_common.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/datafile/playground.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/datafile/pull.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/datasource.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/deprecations.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/dev_server.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/endpoint.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/info.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/infra.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/job.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/llm.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/llm_utils.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/local.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/local_common.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/login.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/login_common.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/logout.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/materialization.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/mock.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/mock_common.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/open.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/pipe.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/project.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/secret.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/secret_common.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/shell.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/sink.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/table.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/test.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/test_common.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/token.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/watch.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/workspace.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tornado_template.py +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird.egg-info/SOURCES.txt +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird.egg-info/requires.txt +0 -0
- {tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird.egg-info/top_level.txt +0 -0
|
@@ -74,7 +74,7 @@ class SQLTemplateException(ValueError):
|
|
|
74
74
|
# replace_vars_smart(t)
|
|
75
75
|
# print(generate(t, **{x: '' for x in names}))
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
JOB_TIMESTAMP_PARAM = "job_timestamp"
|
|
78
78
|
DEFAULT_PARAM_NAMES = ["format", "q"]
|
|
79
79
|
RESERVED_PARAM_NAMES = [
|
|
80
80
|
"__tb__semver",
|
|
@@ -93,6 +93,7 @@ RESERVED_PARAM_NAMES = [
|
|
|
93
93
|
"tag",
|
|
94
94
|
"template_parameters",
|
|
95
95
|
"token",
|
|
96
|
+
JOB_TIMESTAMP_PARAM,
|
|
96
97
|
]
|
|
97
98
|
|
|
98
99
|
parameter_types = [
|
|
@@ -2002,6 +2003,7 @@ def format_SQLTemplateException_message(e: SQLTemplateException, vars_and_types:
|
|
|
2002
2003
|
item.get("default") is None
|
|
2003
2004
|
and item.get("used_in", None) is None
|
|
2004
2005
|
and item.get("name") not in vars_with_default_none
|
|
2006
|
+
and item.get("name") is not JOB_TIMESTAMP_PARAM
|
|
2005
2007
|
):
|
|
2006
2008
|
vars_with_default_none.append(item["name"])
|
|
2007
2009
|
|
|
@@ -2294,6 +2296,11 @@ def render_sql_template(
|
|
|
2294
2296
|
processed_variables = preprocess_variables(variables, template_variables_with_types)
|
|
2295
2297
|
variables.update(processed_variables)
|
|
2296
2298
|
|
|
2299
|
+
# Handle job_timestamp special case providing the default value if not provided
|
|
2300
|
+
if any(var["name"] == JOB_TIMESTAMP_PARAM for var in template_variables_with_types):
|
|
2301
|
+
variables = variables or {}
|
|
2302
|
+
variables.setdefault(JOB_TIMESTAMP_PARAM, datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
|
|
2303
|
+
|
|
2297
2304
|
if test_mode:
|
|
2298
2305
|
|
|
2299
2306
|
def dummy(*args, **kwargs):
|
|
@@ -4,5 +4,5 @@ __description__ = 'Tinybird Command Line Tool'
|
|
|
4
4
|
__url__ = 'https://www.tinybird.co/docs/forward/commands'
|
|
5
5
|
__author__ = 'Tinybird'
|
|
6
6
|
__author_email__ = 'support@tinybird.co'
|
|
7
|
-
__version__ = '0.0.1.
|
|
8
|
-
__revision__ = '
|
|
7
|
+
__version__ = '0.0.1.dev262'
|
|
8
|
+
__revision__ = 'b28ec2c'
|
|
@@ -188,14 +188,27 @@ def deployment_group() -> None:
|
|
|
188
188
|
default=None,
|
|
189
189
|
help="URL of the template to use for the deployment. Example: https://github.com/tinybirdco/web-analytics-starter-kit/tree/main/tinybird",
|
|
190
190
|
)
|
|
191
|
+
@click.option(
|
|
192
|
+
"-v",
|
|
193
|
+
"--verbose",
|
|
194
|
+
is_flag=True,
|
|
195
|
+
default=False,
|
|
196
|
+
help="Show verbose output. Disabled by default.",
|
|
197
|
+
)
|
|
191
198
|
@click.pass_context
|
|
192
199
|
def deployment_create(
|
|
193
|
-
ctx: click.Context,
|
|
200
|
+
ctx: click.Context,
|
|
201
|
+
wait: bool,
|
|
202
|
+
auto: bool,
|
|
203
|
+
check: bool,
|
|
204
|
+
allow_destructive_operations: bool,
|
|
205
|
+
template: Optional[str],
|
|
206
|
+
verbose: bool,
|
|
194
207
|
) -> None:
|
|
195
208
|
"""
|
|
196
209
|
Validate and deploy the project server side.
|
|
197
210
|
"""
|
|
198
|
-
create_deployment_cmd(ctx, wait, auto, check, allow_destructive_operations, template)
|
|
211
|
+
create_deployment_cmd(ctx, wait, auto, check, allow_destructive_operations, template, verbose)
|
|
199
212
|
|
|
200
213
|
|
|
201
214
|
@deployment_group.command(name="ls")
|
|
@@ -337,14 +350,27 @@ def deployment_discard(ctx: click.Context, wait: bool) -> None:
|
|
|
337
350
|
default=None,
|
|
338
351
|
help="URL of the template to use for the deployment. Example: https://github.com/tinybirdco/web-analytics-starter-kit/tree/main/tinybird",
|
|
339
352
|
)
|
|
353
|
+
@click.option(
|
|
354
|
+
"-v",
|
|
355
|
+
"--verbose",
|
|
356
|
+
is_flag=True,
|
|
357
|
+
default=False,
|
|
358
|
+
help="Show verbose output. Disabled by default.",
|
|
359
|
+
)
|
|
340
360
|
@click.pass_context
|
|
341
361
|
def deploy(
|
|
342
|
-
ctx: click.Context,
|
|
362
|
+
ctx: click.Context,
|
|
363
|
+
wait: bool,
|
|
364
|
+
auto: bool,
|
|
365
|
+
check: bool,
|
|
366
|
+
allow_destructive_operations: bool,
|
|
367
|
+
template: Optional[str],
|
|
368
|
+
verbose: bool,
|
|
343
369
|
) -> None:
|
|
344
370
|
"""
|
|
345
371
|
Deploy the project.
|
|
346
372
|
"""
|
|
347
|
-
create_deployment_cmd(ctx, wait, auto, check, allow_destructive_operations, template)
|
|
373
|
+
create_deployment_cmd(ctx, wait, auto, check, allow_destructive_operations, template, verbose)
|
|
348
374
|
|
|
349
375
|
|
|
350
376
|
def create_deployment_cmd(
|
|
@@ -354,6 +380,7 @@ def create_deployment_cmd(
|
|
|
354
380
|
check: Optional[bool] = None,
|
|
355
381
|
allow_destructive_operations: Optional[bool] = None,
|
|
356
382
|
template: Optional[str] = None,
|
|
383
|
+
verbose: bool = False,
|
|
357
384
|
) -> None:
|
|
358
385
|
project: Project = ctx.ensure_object(dict)["project"]
|
|
359
386
|
if template:
|
|
@@ -378,4 +405,4 @@ def create_deployment_cmd(
|
|
|
378
405
|
click.echo(FeedbackManager.success(message="Template downloaded successfully"))
|
|
379
406
|
client = ctx.ensure_object(dict)["client"]
|
|
380
407
|
config: Dict[str, Any] = ctx.ensure_object(dict)["config"]
|
|
381
|
-
create_deployment(project, client, config, wait, auto, check, allow_destructive_operations)
|
|
408
|
+
create_deployment(project, client, config, wait, auto, verbose, check, allow_destructive_operations)
|
|
@@ -194,6 +194,7 @@ def create_deployment(
|
|
|
194
194
|
config: Dict[str, Any],
|
|
195
195
|
wait: bool,
|
|
196
196
|
auto: bool,
|
|
197
|
+
verbose: bool = False,
|
|
197
198
|
check: Optional[bool] = None,
|
|
198
199
|
allow_destructive_operations: Optional[bool] = None,
|
|
199
200
|
) -> None:
|
|
@@ -247,9 +248,12 @@ def create_deployment(
|
|
|
247
248
|
if f.get("level", "").upper() == "ERROR":
|
|
248
249
|
feedback_func = FeedbackManager.error
|
|
249
250
|
feedback_icon = ""
|
|
250
|
-
|
|
251
|
+
elif f.get("level", "").upper() == "WARNING":
|
|
251
252
|
feedback_func = FeedbackManager.warning
|
|
252
253
|
feedback_icon = "△ "
|
|
254
|
+
elif verbose and f.get("level", "").upper() == "INFO":
|
|
255
|
+
feedback_func = FeedbackManager.info
|
|
256
|
+
feedback_icon = ""
|
|
253
257
|
resource = f.get("resource")
|
|
254
258
|
resource_bit = f"{resource}: " if resource else ""
|
|
255
259
|
click.echo(feedback_func(message=f"{feedback_icon}{f.get('level')}: {resource_bit}{f.get('message')}"))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/tools/create_datafile.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/tools/deploy_check.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/tools/diff_resource.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/tools/execute_query.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/tools/preview_datafile.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/agent/tools/request_endpoint.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/datafile/build_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/datafile/build_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/datafile/format_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/datafile/format_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/datafile/pipe_checker.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb/modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli_modules/tinyunit/tinyunit.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev261 → tinybird-0.0.1.dev262}/tinybird/tb_cli_modules/workspace_members.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|