From b34c0bf330f8bcf2d5781cfe5546382211c8add6 Mon Sep 17 00:00:00 2001 From: Nathaniel May Date: Fri, 9 Jul 2021 17:13:34 -0400 Subject: [PATCH] add experimental parser tracking (#3553) automatic commit by git-black, original commits: f460d275baa4df8cf8713f27e198a3577d6ea71c --- core/dbt/tracking.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/dbt/tracking.py b/core/dbt/tracking.py index 3da257487ab..6cc354efb78 100644 --- a/core/dbt/tracking.py +++ b/core/dbt/tracking.py @@ -42,7 +42,7 @@ DEPRECATION_WARN_SPEC = "iglu:com.dbt/deprecation_warn/jsonschema/1-0-0" LOAD_ALL_TIMING_SPEC = "iglu:com.dbt/load_all_timing/jsonschema/1-0-3" RESOURCE_COUNTS = "iglu:com.dbt/resource_counts/jsonschema/1-0-0" -EXPERIMENTAL_PARSER = 'iglu:com.dbt/experimental_parser/jsonschema/1-0-0' +EXPERIMENTAL_PARSER = "iglu:com.dbt/experimental_parser/jsonschema/1-0-0" PARTIAL_PARSER = "iglu:com.dbt/partial_parser/jsonschema/1-0-1" DBT_INVOCATION_ENV = 'DBT_INVOCATION_ENV' @@ -432,16 +432,16 @@ def track_invalid_invocation(config=None, args=None, result_type=None): def track_experimental_parser_sample(options): context = [SelfDescribingJson(EXPERIMENTAL_PARSER, options)] - assert active_user is not None, \ + assert ( active_user is not None ), "Cannot track experimental parser info when active user is None" track( active_user, - category='dbt', - action='experimental_parser', + category="dbt", + action="experimental_parser", label=get_invocation_id(), - context=context + context=context, )