From fb0ae834f218fd0d1d90308f2f4839c4042b4461 Mon Sep 17 00:00:00 2001 From: KonstantAnxiety Date: Wed, 27 Nov 2024 13:20:10 +0300 Subject: [PATCH] feat: BI-5771 add display_mode to reporting (#728) feat: BI-5859 add display_mode to reporting --- lib/dl_api_commons/dl_api_commons/reporting/profiler.py | 1 + lib/dl_constants/dl_constants/api_constants.py | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/dl_api_commons/dl_api_commons/reporting/profiler.py b/lib/dl_api_commons/dl_api_commons/reporting/profiler.py index 46e04a381..1082de544 100644 --- a/lib/dl_api_commons/dl_api_commons/reporting/profiler.py +++ b/lib/dl_api_commons/dl_api_commons/reporting/profiler.py @@ -143,6 +143,7 @@ def flush_query_report(self, query_id: str) -> None: is_public=int(self._is_public_env), is_embedded=int(self.rci.is_embedded), embed_id=getattr(self.rci.auth_data, "embed_id", None), + display_mode=x_dl_context.get(DLContextKey.DISPLAY_MODE), # basic, embedded, etc. dash_id=x_dl_context.get(DLContextKey.DASH_ID), dash_tab_id=x_dl_context.get(DLContextKey.DASH_TAB_ID), chart_id=x_dl_context.get(DLContextKey.CHART_ID), diff --git a/lib/dl_constants/dl_constants/api_constants.py b/lib/dl_constants/dl_constants/api_constants.py index cfc0ba941..926012a8c 100644 --- a/lib/dl_constants/dl_constants/api_constants.py +++ b/lib/dl_constants/dl_constants/api_constants.py @@ -15,6 +15,7 @@ class DLCookies(str, enum.Enum): class DLContextKey(str, enum.Enum): + DISPLAY_MODE = "displayMode" DASH_ID = "dashId" CHART_ID = "chartId" CHART_KIND = "chartKind"