Skip to content

Commit

Permalink
feat: BI-5771 add display_mode to reporting (#728)
Browse files Browse the repository at this point in the history
feat: BI-5859 add display_mode to reporting
  • Loading branch information
KonstantAnxiety authored Nov 27, 2024
1 parent 09806b0 commit fb0ae83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/dl_api_commons/dl_api_commons/reporting/profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
1 change: 1 addition & 0 deletions lib/dl_constants/dl_constants/api_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit fb0ae83

Please sign in to comment.