diff --git a/gooddata-pandas/gooddata_pandas/data_access.py b/gooddata-pandas/gooddata_pandas/data_access.py index 9b0c1416..cc509030 100644 --- a/gooddata-pandas/gooddata_pandas/data_access.py +++ b/gooddata-pandas/gooddata_pandas/data_access.py @@ -6,7 +6,7 @@ from gooddata_sdk import ( Attribute, AttributeFilter, - CatalogWorkspaceContent, + CatalogAttribute, ExecutionDefinition, ExecutionResponse, Filter, @@ -16,6 +16,7 @@ ObjId, TableDimension, ) +from gooddata_sdk.utils import IdObjType from gooddata_pandas.utils import ( ColumnsDef, @@ -319,19 +320,26 @@ def _extract_for_metrics_only(response: ExecutionResponse, cols: list, col_to_me return data -def _typed_result(catalog: CatalogWorkspaceContent, attribute: Attribute, result_values: list[Any]) -> list[Any]: +def _find_attribute(attributes: list[CatalogAttribute], id_obj: IdObjType) -> Union[CatalogAttribute, None]: + for attribute in attributes: + if attribute.find_label(id_obj) is not None: + return attribute + return None + + +def _typed_result(attributes: list[CatalogAttribute], attribute: Attribute, result_values: list[Any]) -> list[Any]: """ Internal function to convert result_values to proper data types. Args: - catalog (CatalogWorkspaceContent): The catalog workspace content. + attributes (list[CatalogAttribute]): The catalog of attributes. attribute (Attribute): The attribute for which the typed result will be computed. result_values (list[Any]): A list of raw values. Returns: list[Any]: A list of converted values with proper data types. """ - catalog_attribute = catalog.find_label_attribute(attribute.label) + catalog_attribute = _find_attribute(attributes, attribute.label) if catalog_attribute is None: raise ValueError(f"Unable to find attribute {attribute.label} in catalog") return [_typed_attribute_value(catalog_attribute, value) for value in result_values] @@ -339,7 +347,7 @@ def _typed_result(catalog: CatalogWorkspaceContent, attribute: Attribute, result def _extract_from_attributes_and_maybe_metrics( response: ExecutionResponse, - catalog: CatalogWorkspaceContent, + attributes: list[CatalogAttribute], cols: list[str], col_to_attr_idx: dict[str, int], col_to_metric_idx: dict[str, int], @@ -382,12 +390,12 @@ def _extract_from_attributes_and_maybe_metrics( for idx_name in index: rs = result.get_all_header_values(attribute_dim, safe_index_to_attr_idx[idx_name]) attribute = index_to_attribute[idx_name] - index[idx_name] += _typed_result(catalog, attribute, rs) + index[idx_name] += _typed_result(attributes, attribute, rs) for col in cols: if col in col_to_attr_idx: rs = result.get_all_header_values(attribute_dim, col_to_attr_idx[col]) attribute = col_to_attribute[col] - data[col] += _typed_result(catalog, attribute, rs) + data[col] += _typed_result(attributes, attribute, rs) elif col_to_metric_idx[col] < len(result.data): data[col] += result.data[col_to_metric_idx[col]] if result.is_complete(attribute_dim): @@ -440,10 +448,10 @@ def compute_and_extract( if not exec_def.has_attributes(): return _extract_for_metrics_only(response, cols, col_to_metric_idx), dict() else: - catalog = sdk.catalog_workspace_content.get_full_catalog(workspace_id) + attributes = sdk.catalog_workspace_content.get_attributes_catalog(workspace_id, include=["labels", "datasets"]) return _extract_from_attributes_and_maybe_metrics( response, - catalog, + attributes, cols, col_to_attr_idx, col_to_metric_idx, diff --git a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_bytes_limits_failure.yaml b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_bytes_limits_failure.yaml index 78ac3d50..97ed6c5a 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_bytes_limits_failure.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_bytes_limits_failure.yaml @@ -121,7 +121,7 @@ interactions: content-length: - '1219' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:43 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:18 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -182,10 +182,10 @@ interactions: name: Order Amount localIdentifier: dim_1 links: - executionResult: 4e372376a5bef9f8d64b3eec9022efea2e41c7d5:05407e0d701640fb410ed25e354a7e702b55be7bcf8bf949eb4b5fa4776019e2 + executionResult: 7ee8ce1d028718cc038ddca8930ed19b19f8aac4:5fd6ab8e4c7d54aae4276edb69e6ffd56d3a906b81a84bf3bb12e1ac75d3e4e3 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/4e372376a5bef9f8d64b3eec9022efea2e41c7d5%3A05407e0d701640fb410ed25e354a7e702b55be7bcf8bf949eb4b5fa4776019e2/metadata + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/7ee8ce1d028718cc038ddca8930ed19b19f8aac4%3A5fd6ab8e4c7d54aae4276edb69e6ffd56d3a906b81a84bf3bb12e1ac75d3e4e3/metadata body: null headers: Accept: @@ -252,7 +252,7 @@ interactions: content-length: - '2168' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:43 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:18 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -355,7 +355,7 @@ interactions: name: Order Amount localIdentifier: dim_1 links: - executionResult: 4e372376a5bef9f8d64b3eec9022efea2e41c7d5:05407e0d701640fb410ed25e354a7e702b55be7bcf8bf949eb4b5fa4776019e2 + executionResult: 7ee8ce1d028718cc038ddca8930ed19b19f8aac4:5fd6ab8e4c7d54aae4276edb69e6ffd56d3a906b81a84bf3bb12e1ac75d3e4e3 resultSpec: dimensions: - localIdentifier: dim_0 @@ -372,7 +372,7 @@ interactions: resultSize: 4237 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/4e372376a5bef9f8d64b3eec9022efea2e41c7d5%3A05407e0d701640fb410ed25e354a7e702b55be7bcf8bf949eb4b5fa4776019e2?offset=0%2C0&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/7ee8ce1d028718cc038ddca8930ed19b19f8aac4%3A5fd6ab8e4c7d54aae4276edb69e6ffd56d3a906b81a84bf3bb12e1ac75d3e4e3?offset=0%2C0&limit=100%2C100 body: null headers: Accept: @@ -439,7 +439,7 @@ interactions: content-length: - '11295' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:43 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:18 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_dimensions_limits_failure.yaml b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_dimensions_limits_failure.yaml index 9e67115d..97ed6c5a 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_dimensions_limits_failure.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_dimensions_limits_failure.yaml @@ -121,7 +121,7 @@ interactions: content-length: - '1219' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:42 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:18 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -182,10 +182,10 @@ interactions: name: Order Amount localIdentifier: dim_1 links: - executionResult: 4e372376a5bef9f8d64b3eec9022efea2e41c7d5:05407e0d701640fb410ed25e354a7e702b55be7bcf8bf949eb4b5fa4776019e2 + executionResult: 7ee8ce1d028718cc038ddca8930ed19b19f8aac4:5fd6ab8e4c7d54aae4276edb69e6ffd56d3a906b81a84bf3bb12e1ac75d3e4e3 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/4e372376a5bef9f8d64b3eec9022efea2e41c7d5%3A05407e0d701640fb410ed25e354a7e702b55be7bcf8bf949eb4b5fa4776019e2/metadata + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/7ee8ce1d028718cc038ddca8930ed19b19f8aac4%3A5fd6ab8e4c7d54aae4276edb69e6ffd56d3a906b81a84bf3bb12e1ac75d3e4e3/metadata body: null headers: Accept: @@ -252,7 +252,7 @@ interactions: content-length: - '2168' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:42 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:18 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -355,7 +355,7 @@ interactions: name: Order Amount localIdentifier: dim_1 links: - executionResult: 4e372376a5bef9f8d64b3eec9022efea2e41c7d5:05407e0d701640fb410ed25e354a7e702b55be7bcf8bf949eb4b5fa4776019e2 + executionResult: 7ee8ce1d028718cc038ddca8930ed19b19f8aac4:5fd6ab8e4c7d54aae4276edb69e6ffd56d3a906b81a84bf3bb12e1ac75d3e4e3 resultSpec: dimensions: - localIdentifier: dim_0 @@ -372,7 +372,7 @@ interactions: resultSize: 4237 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/4e372376a5bef9f8d64b3eec9022efea2e41c7d5%3A05407e0d701640fb410ed25e354a7e702b55be7bcf8bf949eb4b5fa4776019e2?offset=0%2C0&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/7ee8ce1d028718cc038ddca8930ed19b19f8aac4%3A5fd6ab8e4c7d54aae4276edb69e6ffd56d3a906b81a84bf3bb12e1ac75d3e4e3?offset=0%2C0&limit=100%2C100 body: null headers: Accept: @@ -439,7 +439,7 @@ interactions: content-length: - '11295' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:42 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:18 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_one_dim1.yaml b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_one_dim1.yaml index a7fde25a..614ee164 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_one_dim1.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_one_dim1.yaml @@ -119,7 +119,7 @@ interactions: content-length: - '1179' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:48 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:22 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -178,10 +178,10 @@ interactions: name: Order Amount localIdentifier: dim_0 links: - executionResult: 6d6c03d47ad8bedf8a436f87a7f2638bfe2e0fc8:5e583be017c9937b7fe0f13ba25eb2c731d1b4f9bf129b1384ed5b1b9db86b90 + executionResult: c06b00baf3852d8d1dac66f3231bb224be66a113:b65c60a7f92636c16bbfded9b076ffad6173f12cde8ded544841547a3601e995 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/6d6c03d47ad8bedf8a436f87a7f2638bfe2e0fc8%3A5e583be017c9937b7fe0f13ba25eb2c731d1b4f9bf129b1384ed5b1b9db86b90/metadata + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/c06b00baf3852d8d1dac66f3231bb224be66a113%3Ab65c60a7f92636c16bbfded9b076ffad6173f12cde8ded544841547a3601e995/metadata body: null headers: Accept: @@ -248,7 +248,7 @@ interactions: content-length: - '2067' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:48 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:22 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -349,7 +349,7 @@ interactions: name: Order Amount localIdentifier: dim_0 links: - executionResult: 6d6c03d47ad8bedf8a436f87a7f2638bfe2e0fc8:5e583be017c9937b7fe0f13ba25eb2c731d1b4f9bf129b1384ed5b1b9db86b90 + executionResult: c06b00baf3852d8d1dac66f3231bb224be66a113:b65c60a7f92636c16bbfded9b076ffad6173f12cde8ded544841547a3601e995 resultSpec: dimensions: - localIdentifier: dim_0 @@ -363,7 +363,7 @@ interactions: resultSize: 2913 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/6d6c03d47ad8bedf8a436f87a7f2638bfe2e0fc8%3A5e583be017c9937b7fe0f13ba25eb2c731d1b4f9bf129b1384ed5b1b9db86b90?offset=0&limit=500 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/c06b00baf3852d8d1dac66f3231bb224be66a113%3Ab65c60a7f92636c16bbfded9b076ffad6173f12cde8ded544841547a3601e995?offset=0&limit=500 body: null headers: Accept: @@ -430,7 +430,7 @@ interactions: content-length: - '98918' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:48 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:22 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -4819,7 +4819,7 @@ interactions: - 364 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/6d6c03d47ad8bedf8a436f87a7f2638bfe2e0fc8%3A5e583be017c9937b7fe0f13ba25eb2c731d1b4f9bf129b1384ed5b1b9db86b90/metadata + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/c06b00baf3852d8d1dac66f3231bb224be66a113%3Ab65c60a7f92636c16bbfded9b076ffad6173f12cde8ded544841547a3601e995/metadata body: null headers: Accept: @@ -4886,7 +4886,7 @@ interactions: content-length: - '2067' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:48 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:22 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -4987,7 +4987,7 @@ interactions: name: Order Amount localIdentifier: dim_0 links: - executionResult: 6d6c03d47ad8bedf8a436f87a7f2638bfe2e0fc8:5e583be017c9937b7fe0f13ba25eb2c731d1b4f9bf129b1384ed5b1b9db86b90 + executionResult: c06b00baf3852d8d1dac66f3231bb224be66a113:b65c60a7f92636c16bbfded9b076ffad6173f12cde8ded544841547a3601e995 resultSpec: dimensions: - localIdentifier: dim_0 @@ -5001,7 +5001,7 @@ interactions: resultSize: 2913 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/6d6c03d47ad8bedf8a436f87a7f2638bfe2e0fc8%3A5e583be017c9937b7fe0f13ba25eb2c731d1b4f9bf129b1384ed5b1b9db86b90?offset=0&limit=500 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/c06b00baf3852d8d1dac66f3231bb224be66a113%3Ab65c60a7f92636c16bbfded9b076ffad6173f12cde8ded544841547a3601e995?offset=0&limit=500 body: null headers: Accept: @@ -5068,7 +5068,7 @@ interactions: content-length: - '98918' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:48 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:22 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_one_dim2.yaml b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_one_dim2.yaml index 3f5d58de..a2029d06 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_one_dim2.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_one_dim2.yaml @@ -121,7 +121,7 @@ interactions: content-length: - '1220' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:49 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:23 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -182,10 +182,10 @@ interactions: name: Order Amount localIdentifier: dim_1 links: - executionResult: 64d30531a7bfa919d530c5f14e62c739773fc091:8b754ccb606d7ce289a028436001256df1bfb5a35015b394864af050b79b6edb + executionResult: a01781b10aa2cb820f1845d8b99185beaabb49a2:c9c27373e7c1818243953040281df11027586dab035789af9549794076d442c7 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/64d30531a7bfa919d530c5f14e62c739773fc091%3A8b754ccb606d7ce289a028436001256df1bfb5a35015b394864af050b79b6edb/metadata + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/a01781b10aa2cb820f1845d8b99185beaabb49a2%3Ac9c27373e7c1818243953040281df11027586dab035789af9549794076d442c7/metadata body: null headers: Accept: @@ -252,7 +252,7 @@ interactions: content-length: - '2170' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:49 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:23 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -355,7 +355,7 @@ interactions: name: Order Amount localIdentifier: dim_1 links: - executionResult: 64d30531a7bfa919d530c5f14e62c739773fc091:8b754ccb606d7ce289a028436001256df1bfb5a35015b394864af050b79b6edb + executionResult: a01781b10aa2cb820f1845d8b99185beaabb49a2:c9c27373e7c1818243953040281df11027586dab035789af9549794076d442c7 resultSpec: dimensions: - localIdentifier: dim_0 @@ -372,7 +372,7 @@ interactions: resultSize: 2913 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/64d30531a7bfa919d530c5f14e62c739773fc091%3A8b754ccb606d7ce289a028436001256df1bfb5a35015b394864af050b79b6edb?offset=0%2C0&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/a01781b10aa2cb820f1845d8b99185beaabb49a2%3Ac9c27373e7c1818243953040281df11027586dab035789af9549794076d442c7?offset=0%2C0&limit=100%2C100 body: null headers: Accept: @@ -439,7 +439,7 @@ interactions: content-length: - '27491' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:49 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:23 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -1664,7 +1664,7 @@ interactions: - 364 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/64d30531a7bfa919d530c5f14e62c739773fc091%3A8b754ccb606d7ce289a028436001256df1bfb5a35015b394864af050b79b6edb?offset=0%2C100&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/a01781b10aa2cb820f1845d8b99185beaabb49a2%3Ac9c27373e7c1818243953040281df11027586dab035789af9549794076d442c7?offset=0%2C100&limit=100%2C100 body: null headers: Accept: @@ -1731,7 +1731,7 @@ interactions: content-length: - '27723' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:50 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:23 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -2956,7 +2956,7 @@ interactions: - 364 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/64d30531a7bfa919d530c5f14e62c739773fc091%3A8b754ccb606d7ce289a028436001256df1bfb5a35015b394864af050b79b6edb?offset=0%2C200&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/a01781b10aa2cb820f1845d8b99185beaabb49a2%3Ac9c27373e7c1818243953040281df11027586dab035789af9549794076d442c7?offset=0%2C200&limit=100%2C100 body: null headers: Accept: @@ -3023,7 +3023,7 @@ interactions: content-length: - '27251' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:50 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:23 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -4248,7 +4248,7 @@ interactions: - 364 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/64d30531a7bfa919d530c5f14e62c739773fc091%3A8b754ccb606d7ce289a028436001256df1bfb5a35015b394864af050b79b6edb?offset=0%2C300&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/a01781b10aa2cb820f1845d8b99185beaabb49a2%3Ac9c27373e7c1818243953040281df11027586dab035789af9549794076d442c7?offset=0%2C300&limit=100%2C100 body: null headers: Accept: @@ -4315,7 +4315,7 @@ interactions: content-length: - '17095' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:50 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:23 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -5108,7 +5108,7 @@ interactions: - 364 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/64d30531a7bfa919d530c5f14e62c739773fc091%3A8b754ccb606d7ce289a028436001256df1bfb5a35015b394864af050b79b6edb/metadata + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/a01781b10aa2cb820f1845d8b99185beaabb49a2%3Ac9c27373e7c1818243953040281df11027586dab035789af9549794076d442c7/metadata body: null headers: Accept: @@ -5175,7 +5175,7 @@ interactions: content-length: - '2170' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:50 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:24 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -5278,7 +5278,7 @@ interactions: name: Order Amount localIdentifier: dim_1 links: - executionResult: 64d30531a7bfa919d530c5f14e62c739773fc091:8b754ccb606d7ce289a028436001256df1bfb5a35015b394864af050b79b6edb + executionResult: a01781b10aa2cb820f1845d8b99185beaabb49a2:c9c27373e7c1818243953040281df11027586dab035789af9549794076d442c7 resultSpec: dimensions: - localIdentifier: dim_0 @@ -5295,7 +5295,7 @@ interactions: resultSize: 2913 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/64d30531a7bfa919d530c5f14e62c739773fc091%3A8b754ccb606d7ce289a028436001256df1bfb5a35015b394864af050b79b6edb?offset=0%2C0&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/a01781b10aa2cb820f1845d8b99185beaabb49a2%3Ac9c27373e7c1818243953040281df11027586dab035789af9549794076d442c7?offset=0%2C0&limit=100%2C100 body: null headers: Accept: @@ -5362,7 +5362,7 @@ interactions: content-length: - '27491' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:50 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:24 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -6587,7 +6587,7 @@ interactions: - 364 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/64d30531a7bfa919d530c5f14e62c739773fc091%3A8b754ccb606d7ce289a028436001256df1bfb5a35015b394864af050b79b6edb?offset=0%2C100&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/a01781b10aa2cb820f1845d8b99185beaabb49a2%3Ac9c27373e7c1818243953040281df11027586dab035789af9549794076d442c7?offset=0%2C100&limit=100%2C100 body: null headers: Accept: @@ -6654,7 +6654,7 @@ interactions: content-length: - '27723' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:50 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:24 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -7879,7 +7879,7 @@ interactions: - 364 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/64d30531a7bfa919d530c5f14e62c739773fc091%3A8b754ccb606d7ce289a028436001256df1bfb5a35015b394864af050b79b6edb?offset=0%2C200&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/a01781b10aa2cb820f1845d8b99185beaabb49a2%3Ac9c27373e7c1818243953040281df11027586dab035789af9549794076d442c7?offset=0%2C200&limit=100%2C100 body: null headers: Accept: @@ -7946,7 +7946,7 @@ interactions: content-length: - '27251' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:50 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:24 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -9171,7 +9171,7 @@ interactions: - 364 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/64d30531a7bfa919d530c5f14e62c739773fc091%3A8b754ccb606d7ce289a028436001256df1bfb5a35015b394864af050b79b6edb?offset=0%2C300&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/a01781b10aa2cb820f1845d8b99185beaabb49a2%3Ac9c27373e7c1818243953040281df11027586dab035789af9549794076d442c7?offset=0%2C300&limit=100%2C100 body: null headers: Accept: @@ -9238,7 +9238,7 @@ interactions: content-length: - '17095' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:51 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:24 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_totals1.yaml b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_totals1.yaml index 3327e514..3f5f81fb 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_totals1.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_totals1.yaml @@ -140,7 +140,7 @@ interactions: content-length: - '1219' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:45 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:20 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -201,10 +201,10 @@ interactions: name: Order Amount localIdentifier: dim_1 links: - executionResult: 2fe44a2ae0aac23b4c46c8ca7c0ffa74ab82fdae:8e81554da21411a91a2ea8a427524a53eab44e9ac6af2931f9788342029edc5c + executionResult: 901afe48fcbff3ceca7ccdbff9985a622e99d54d:ebe3de2061d4ed77dbe99fdbe5ba34d02a2683b95106e179374dfddd36dfbf97 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/2fe44a2ae0aac23b4c46c8ca7c0ffa74ab82fdae%3A8e81554da21411a91a2ea8a427524a53eab44e9ac6af2931f9788342029edc5c/metadata + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/901afe48fcbff3ceca7ccdbff9985a622e99d54d%3Aebe3de2061d4ed77dbe99fdbe5ba34d02a2683b95106e179374dfddd36dfbf97/metadata body: null headers: Accept: @@ -271,7 +271,7 @@ interactions: content-length: - '2528' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:45 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:20 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -374,7 +374,7 @@ interactions: name: Order Amount localIdentifier: dim_1 links: - executionResult: 2fe44a2ae0aac23b4c46c8ca7c0ffa74ab82fdae:8e81554da21411a91a2ea8a427524a53eab44e9ac6af2931f9788342029edc5c + executionResult: 901afe48fcbff3ceca7ccdbff9985a622e99d54d:ebe3de2061d4ed77dbe99fdbe5ba34d02a2683b95106e179374dfddd36dfbf97 resultSpec: dimensions: - localIdentifier: dim_0 @@ -409,7 +409,7 @@ interactions: resultSize: 4770 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/2fe44a2ae0aac23b4c46c8ca7c0ffa74ab82fdae%3A8e81554da21411a91a2ea8a427524a53eab44e9ac6af2931f9788342029edc5c?offset=0%2C0&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/901afe48fcbff3ceca7ccdbff9985a622e99d54d%3Aebe3de2061d4ed77dbe99fdbe5ba34d02a2683b95106e179374dfddd36dfbf97?offset=0%2C0&limit=100%2C100 body: null headers: Accept: @@ -476,7 +476,7 @@ interactions: content-length: - '22911' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:45 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:20 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -1867,7 +1867,7 @@ interactions: - 96 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/2fe44a2ae0aac23b4c46c8ca7c0ffa74ab82fdae%3A8e81554da21411a91a2ea8a427524a53eab44e9ac6af2931f9788342029edc5c/metadata + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/901afe48fcbff3ceca7ccdbff9985a622e99d54d%3Aebe3de2061d4ed77dbe99fdbe5ba34d02a2683b95106e179374dfddd36dfbf97/metadata body: null headers: Accept: @@ -1934,7 +1934,7 @@ interactions: content-length: - '2528' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:45 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:20 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -2037,7 +2037,7 @@ interactions: name: Order Amount localIdentifier: dim_1 links: - executionResult: 2fe44a2ae0aac23b4c46c8ca7c0ffa74ab82fdae:8e81554da21411a91a2ea8a427524a53eab44e9ac6af2931f9788342029edc5c + executionResult: 901afe48fcbff3ceca7ccdbff9985a622e99d54d:ebe3de2061d4ed77dbe99fdbe5ba34d02a2683b95106e179374dfddd36dfbf97 resultSpec: dimensions: - localIdentifier: dim_0 @@ -2072,7 +2072,7 @@ interactions: resultSize: 4770 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/2fe44a2ae0aac23b4c46c8ca7c0ffa74ab82fdae%3A8e81554da21411a91a2ea8a427524a53eab44e9ac6af2931f9788342029edc5c?offset=0%2C0&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/901afe48fcbff3ceca7ccdbff9985a622e99d54d%3Aebe3de2061d4ed77dbe99fdbe5ba34d02a2683b95106e179374dfddd36dfbf97?offset=0%2C0&limit=100%2C100 body: null headers: Accept: @@ -2139,7 +2139,7 @@ interactions: content-length: - '22911' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:45 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:20 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_totals2.yaml b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_totals2.yaml index 533cb6b1..d5dbb5d8 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_totals2.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_totals2.yaml @@ -138,7 +138,7 @@ interactions: content-length: - '1219' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:46 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:20 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -199,10 +199,10 @@ interactions: name: Order Amount localIdentifier: dim_1 links: - executionResult: fad444675a7060b4809fabaa600f783c27462afe:9ad66095edbf4dba29cc12b45fb896053a1ec5970ea58991e6d5313ac7d0d5e1 + executionResult: 134d71d1eab4352a53c3b8ab40479700345488aa:76e162dca073c362b39151aabb18f7242b75ae687b2299f9d5b01c1d783411a2 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/fad444675a7060b4809fabaa600f783c27462afe%3A9ad66095edbf4dba29cc12b45fb896053a1ec5970ea58991e6d5313ac7d0d5e1/metadata + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/134d71d1eab4352a53c3b8ab40479700345488aa%3A76e162dca073c362b39151aabb18f7242b75ae687b2299f9d5b01c1d783411a2/metadata body: null headers: Accept: @@ -269,7 +269,7 @@ interactions: content-length: - '2511' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:46 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:20 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -372,7 +372,7 @@ interactions: name: Order Amount localIdentifier: dim_1 links: - executionResult: fad444675a7060b4809fabaa600f783c27462afe:9ad66095edbf4dba29cc12b45fb896053a1ec5970ea58991e6d5313ac7d0d5e1 + executionResult: 134d71d1eab4352a53c3b8ab40479700345488aa:76e162dca073c362b39151aabb18f7242b75ae687b2299f9d5b01c1d783411a2 resultSpec: dimensions: - localIdentifier: dim_0 @@ -405,7 +405,7 @@ interactions: resultSize: 15292 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/fad444675a7060b4809fabaa600f783c27462afe%3A9ad66095edbf4dba29cc12b45fb896053a1ec5970ea58991e6d5313ac7d0d5e1?offset=0%2C0&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/134d71d1eab4352a53c3b8ab40479700345488aa%3A76e162dca073c362b39151aabb18f7242b75ae687b2299f9d5b01c1d783411a2?offset=0%2C0&limit=100%2C100 body: null headers: Accept: @@ -472,7 +472,7 @@ interactions: content-length: - '24535' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:46 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:20 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -2918,7 +2918,7 @@ interactions: - 96 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/fad444675a7060b4809fabaa600f783c27462afe%3A9ad66095edbf4dba29cc12b45fb896053a1ec5970ea58991e6d5313ac7d0d5e1/metadata + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/134d71d1eab4352a53c3b8ab40479700345488aa%3A76e162dca073c362b39151aabb18f7242b75ae687b2299f9d5b01c1d783411a2/metadata body: null headers: Accept: @@ -2985,7 +2985,7 @@ interactions: content-length: - '2511' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:46 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:20 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -3088,7 +3088,7 @@ interactions: name: Order Amount localIdentifier: dim_1 links: - executionResult: fad444675a7060b4809fabaa600f783c27462afe:9ad66095edbf4dba29cc12b45fb896053a1ec5970ea58991e6d5313ac7d0d5e1 + executionResult: 134d71d1eab4352a53c3b8ab40479700345488aa:76e162dca073c362b39151aabb18f7242b75ae687b2299f9d5b01c1d783411a2 resultSpec: dimensions: - localIdentifier: dim_0 @@ -3121,7 +3121,7 @@ interactions: resultSize: 15292 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/fad444675a7060b4809fabaa600f783c27462afe%3A9ad66095edbf4dba29cc12b45fb896053a1ec5970ea58991e6d5313ac7d0d5e1?offset=0%2C0&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/134d71d1eab4352a53c3b8ab40479700345488aa%3A76e162dca073c362b39151aabb18f7242b75ae687b2299f9d5b01c1d783411a2?offset=0%2C0&limit=100%2C100 body: null headers: Accept: @@ -3188,7 +3188,7 @@ interactions: content-length: - '24535' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:46 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:20 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_totals3.yaml b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_totals3.yaml index 1cffd848..2e3fcbea 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_totals3.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_totals3.yaml @@ -140,7 +140,7 @@ interactions: content-length: - '1219' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:47 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:21 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -201,10 +201,10 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: efbd93414745ed202250dded0b761b192119f46d:70e27249808a6807f92ca9468eb126f82af144a73366626487a99f12848a898f + executionResult: b51533ad390b7ee4eb8651181edbe2c381d5e5e3:38b120db14d2d5ce62e652af32fc1bb0e9bb2186e6993356f3e14e39aaf78750 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/efbd93414745ed202250dded0b761b192119f46d%3A70e27249808a6807f92ca9468eb126f82af144a73366626487a99f12848a898f/metadata + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/b51533ad390b7ee4eb8651181edbe2c381d5e5e3%3A38b120db14d2d5ce62e652af32fc1bb0e9bb2186e6993356f3e14e39aaf78750/metadata body: null headers: Accept: @@ -271,7 +271,7 @@ interactions: content-length: - '2528' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:47 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:21 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -374,7 +374,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: efbd93414745ed202250dded0b761b192119f46d:70e27249808a6807f92ca9468eb126f82af144a73366626487a99f12848a898f + executionResult: b51533ad390b7ee4eb8651181edbe2c381d5e5e3:38b120db14d2d5ce62e652af32fc1bb0e9bb2186e6993356f3e14e39aaf78750 resultSpec: dimensions: - localIdentifier: dim_0 @@ -409,7 +409,7 @@ interactions: resultSize: 4770 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/efbd93414745ed202250dded0b761b192119f46d%3A70e27249808a6807f92ca9468eb126f82af144a73366626487a99f12848a898f?offset=0%2C0&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/b51533ad390b7ee4eb8651181edbe2c381d5e5e3%3A38b120db14d2d5ce62e652af32fc1bb0e9bb2186e6993356f3e14e39aaf78750?offset=0%2C0&limit=100%2C100 body: null headers: Accept: @@ -476,7 +476,7 @@ interactions: content-length: - '23283' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:47 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:21 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -1867,7 +1867,7 @@ interactions: - 4 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/efbd93414745ed202250dded0b761b192119f46d%3A70e27249808a6807f92ca9468eb126f82af144a73366626487a99f12848a898f/metadata + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/b51533ad390b7ee4eb8651181edbe2c381d5e5e3%3A38b120db14d2d5ce62e652af32fc1bb0e9bb2186e6993356f3e14e39aaf78750/metadata body: null headers: Accept: @@ -1934,7 +1934,7 @@ interactions: content-length: - '2528' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:47 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:21 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -2037,7 +2037,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: efbd93414745ed202250dded0b761b192119f46d:70e27249808a6807f92ca9468eb126f82af144a73366626487a99f12848a898f + executionResult: b51533ad390b7ee4eb8651181edbe2c381d5e5e3:38b120db14d2d5ce62e652af32fc1bb0e9bb2186e6993356f3e14e39aaf78750 resultSpec: dimensions: - localIdentifier: dim_0 @@ -2072,7 +2072,7 @@ interactions: resultSize: 4770 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/efbd93414745ed202250dded0b761b192119f46d%3A70e27249808a6807f92ca9468eb126f82af144a73366626487a99f12848a898f?offset=0%2C0&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/b51533ad390b7ee4eb8651181edbe2c381d5e5e3%3A38b120db14d2d5ce62e652af32fc1bb0e9bb2186e6993356f3e14e39aaf78750?offset=0%2C0&limit=100%2C100 body: null headers: Accept: @@ -2139,7 +2139,7 @@ interactions: content-length: - '23283' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:47 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:21 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_totals4.yaml b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_totals4.yaml index cf55c918..942d524f 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_totals4.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_totals4.yaml @@ -138,7 +138,7 @@ interactions: content-length: - '1219' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:47 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:21 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -199,10 +199,10 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: 0c3f58fc9b47a66ea0d230c0e25ffebc5bd6c3f9:a881d61efa89160a55946c8f7420db99ac719de930bff8c1df2eb5eef62a5dd5 + executionResult: fbfac3f2c103a90ec86fd86648e6b95f56fbea7d:2c8cdca9c5d097d32854040b4dcd80fcbed16377652798ecb517ef07a29dbfa4 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/0c3f58fc9b47a66ea0d230c0e25ffebc5bd6c3f9%3Aa881d61efa89160a55946c8f7420db99ac719de930bff8c1df2eb5eef62a5dd5/metadata + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/fbfac3f2c103a90ec86fd86648e6b95f56fbea7d%3A2c8cdca9c5d097d32854040b4dcd80fcbed16377652798ecb517ef07a29dbfa4/metadata body: null headers: Accept: @@ -269,7 +269,7 @@ interactions: content-length: - '2511' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:47 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:21 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -372,7 +372,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: 0c3f58fc9b47a66ea0d230c0e25ffebc5bd6c3f9:a881d61efa89160a55946c8f7420db99ac719de930bff8c1df2eb5eef62a5dd5 + executionResult: fbfac3f2c103a90ec86fd86648e6b95f56fbea7d:2c8cdca9c5d097d32854040b4dcd80fcbed16377652798ecb517ef07a29dbfa4 resultSpec: dimensions: - localIdentifier: dim_0 @@ -405,7 +405,7 @@ interactions: resultSize: 15292 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/0c3f58fc9b47a66ea0d230c0e25ffebc5bd6c3f9%3Aa881d61efa89160a55946c8f7420db99ac719de930bff8c1df2eb5eef62a5dd5?offset=0%2C0&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/fbfac3f2c103a90ec86fd86648e6b95f56fbea7d%3A2c8cdca9c5d097d32854040b4dcd80fcbed16377652798ecb517ef07a29dbfa4?offset=0%2C0&limit=100%2C100 body: null headers: Accept: @@ -472,7 +472,7 @@ interactions: content-length: - '24881' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:47 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:21 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -2918,7 +2918,7 @@ interactions: - 17 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/0c3f58fc9b47a66ea0d230c0e25ffebc5bd6c3f9%3Aa881d61efa89160a55946c8f7420db99ac719de930bff8c1df2eb5eef62a5dd5/metadata + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/fbfac3f2c103a90ec86fd86648e6b95f56fbea7d%3A2c8cdca9c5d097d32854040b4dcd80fcbed16377652798ecb517ef07a29dbfa4/metadata body: null headers: Accept: @@ -2985,7 +2985,7 @@ interactions: content-length: - '2511' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:47 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:21 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -3088,7 +3088,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: 0c3f58fc9b47a66ea0d230c0e25ffebc5bd6c3f9:a881d61efa89160a55946c8f7420db99ac719de930bff8c1df2eb5eef62a5dd5 + executionResult: fbfac3f2c103a90ec86fd86648e6b95f56fbea7d:2c8cdca9c5d097d32854040b4dcd80fcbed16377652798ecb517ef07a29dbfa4 resultSpec: dimensions: - localIdentifier: dim_0 @@ -3121,7 +3121,7 @@ interactions: resultSize: 15292 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/0c3f58fc9b47a66ea0d230c0e25ffebc5bd6c3f9%3Aa881d61efa89160a55946c8f7420db99ac719de930bff8c1df2eb5eef62a5dd5?offset=0%2C0&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/fbfac3f2c103a90ec86fd86648e6b95f56fbea7d%3A2c8cdca9c5d097d32854040b4dcd80fcbed16377652798ecb517ef07a29dbfa4?offset=0%2C0&limit=100%2C100 body: null headers: Accept: @@ -3188,7 +3188,7 @@ interactions: content-length: - '24881' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:48 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:21 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_two_dim1.yaml b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_two_dim1.yaml index 1009e849..f31ebd7e 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_two_dim1.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_two_dim1.yaml @@ -121,7 +121,7 @@ interactions: content-length: - '1219' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:41 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:17 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -182,10 +182,10 @@ interactions: name: Order Amount localIdentifier: dim_1 links: - executionResult: 4e372376a5bef9f8d64b3eec9022efea2e41c7d5:05407e0d701640fb410ed25e354a7e702b55be7bcf8bf949eb4b5fa4776019e2 + executionResult: 7ee8ce1d028718cc038ddca8930ed19b19f8aac4:5fd6ab8e4c7d54aae4276edb69e6ffd56d3a906b81a84bf3bb12e1ac75d3e4e3 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/4e372376a5bef9f8d64b3eec9022efea2e41c7d5%3A05407e0d701640fb410ed25e354a7e702b55be7bcf8bf949eb4b5fa4776019e2/metadata + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/7ee8ce1d028718cc038ddca8930ed19b19f8aac4%3A5fd6ab8e4c7d54aae4276edb69e6ffd56d3a906b81a84bf3bb12e1ac75d3e4e3/metadata body: null headers: Accept: @@ -252,7 +252,7 @@ interactions: content-length: - '2168' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:42 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:17 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -355,7 +355,7 @@ interactions: name: Order Amount localIdentifier: dim_1 links: - executionResult: 4e372376a5bef9f8d64b3eec9022efea2e41c7d5:05407e0d701640fb410ed25e354a7e702b55be7bcf8bf949eb4b5fa4776019e2 + executionResult: 7ee8ce1d028718cc038ddca8930ed19b19f8aac4:5fd6ab8e4c7d54aae4276edb69e6ffd56d3a906b81a84bf3bb12e1ac75d3e4e3 resultSpec: dimensions: - localIdentifier: dim_0 @@ -372,7 +372,7 @@ interactions: resultSize: 4237 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/4e372376a5bef9f8d64b3eec9022efea2e41c7d5%3A05407e0d701640fb410ed25e354a7e702b55be7bcf8bf949eb4b5fa4776019e2?offset=0%2C0&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/7ee8ce1d028718cc038ddca8930ed19b19f8aac4%3A5fd6ab8e4c7d54aae4276edb69e6ffd56d3a906b81a84bf3bb12e1ac75d3e4e3?offset=0%2C0&limit=100%2C100 body: null headers: Accept: @@ -439,7 +439,7 @@ interactions: content-length: - '11295' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:42 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:17 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -1176,7 +1176,7 @@ interactions: - 8 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/4e372376a5bef9f8d64b3eec9022efea2e41c7d5%3A05407e0d701640fb410ed25e354a7e702b55be7bcf8bf949eb4b5fa4776019e2/metadata + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/7ee8ce1d028718cc038ddca8930ed19b19f8aac4%3A5fd6ab8e4c7d54aae4276edb69e6ffd56d3a906b81a84bf3bb12e1ac75d3e4e3/metadata body: null headers: Accept: @@ -1243,7 +1243,7 @@ interactions: content-length: - '2168' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:42 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:17 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -1346,7 +1346,7 @@ interactions: name: Order Amount localIdentifier: dim_1 links: - executionResult: 4e372376a5bef9f8d64b3eec9022efea2e41c7d5:05407e0d701640fb410ed25e354a7e702b55be7bcf8bf949eb4b5fa4776019e2 + executionResult: 7ee8ce1d028718cc038ddca8930ed19b19f8aac4:5fd6ab8e4c7d54aae4276edb69e6ffd56d3a906b81a84bf3bb12e1ac75d3e4e3 resultSpec: dimensions: - localIdentifier: dim_0 @@ -1363,7 +1363,7 @@ interactions: resultSize: 4237 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/4e372376a5bef9f8d64b3eec9022efea2e41c7d5%3A05407e0d701640fb410ed25e354a7e702b55be7bcf8bf949eb4b5fa4776019e2?offset=0%2C0&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/7ee8ce1d028718cc038ddca8930ed19b19f8aac4%3A5fd6ab8e4c7d54aae4276edb69e6ffd56d3a906b81a84bf3bb12e1ac75d3e4e3?offset=0%2C0&limit=100%2C100 body: null headers: Accept: @@ -1430,7 +1430,7 @@ interactions: content-length: - '11295' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:42 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:17 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -2167,7 +2167,7 @@ interactions: - 8 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/4e372376a5bef9f8d64b3eec9022efea2e41c7d5%3A05407e0d701640fb410ed25e354a7e702b55be7bcf8bf949eb4b5fa4776019e2/metadata + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/7ee8ce1d028718cc038ddca8930ed19b19f8aac4%3A5fd6ab8e4c7d54aae4276edb69e6ffd56d3a906b81a84bf3bb12e1ac75d3e4e3/metadata body: null headers: Accept: @@ -2234,7 +2234,7 @@ interactions: content-length: - '2168' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:42 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:17 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -2337,7 +2337,7 @@ interactions: name: Order Amount localIdentifier: dim_1 links: - executionResult: 4e372376a5bef9f8d64b3eec9022efea2e41c7d5:05407e0d701640fb410ed25e354a7e702b55be7bcf8bf949eb4b5fa4776019e2 + executionResult: 7ee8ce1d028718cc038ddca8930ed19b19f8aac4:5fd6ab8e4c7d54aae4276edb69e6ffd56d3a906b81a84bf3bb12e1ac75d3e4e3 resultSpec: dimensions: - localIdentifier: dim_0 @@ -2354,7 +2354,7 @@ interactions: resultSize: 4237 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/4e372376a5bef9f8d64b3eec9022efea2e41c7d5%3A05407e0d701640fb410ed25e354a7e702b55be7bcf8bf949eb4b5fa4776019e2?offset=0%2C0&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/7ee8ce1d028718cc038ddca8930ed19b19f8aac4%3A5fd6ab8e4c7d54aae4276edb69e6ffd56d3a906b81a84bf3bb12e1ac75d3e4e3?offset=0%2C0&limit=100%2C100 body: null headers: Accept: @@ -2421,7 +2421,7 @@ interactions: content-length: - '11295' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:42 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:17 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_two_dim2.yaml b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_two_dim2.yaml index 286e50bb..1f53df0e 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_two_dim2.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_two_dim2.yaml @@ -121,7 +121,7 @@ interactions: content-length: - '1219' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:43 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:18 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -182,10 +182,10 @@ interactions: name: Order Amount localIdentifier: dim_1 links: - executionResult: 171c7bcf3143f2dce92c8b87d291359ec6026044:509a2df3ef4453e189b7c6e3593d774c5e4f56a687053765fe08fd17a78d870e + executionResult: 0d16d2b14ce6837767a0e1366811dd3303e01a48:a656a728b3d6137c5156b5fa971c8ca0d15801bf35028c5238af1c30a10647ef - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/171c7bcf3143f2dce92c8b87d291359ec6026044%3A509a2df3ef4453e189b7c6e3593d774c5e4f56a687053765fe08fd17a78d870e/metadata + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/0d16d2b14ce6837767a0e1366811dd3303e01a48%3Aa656a728b3d6137c5156b5fa971c8ca0d15801bf35028c5238af1c30a10647ef/metadata body: null headers: Accept: @@ -252,7 +252,7 @@ interactions: content-length: - '2168' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:43 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:18 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -355,7 +355,7 @@ interactions: name: Order Amount localIdentifier: dim_1 links: - executionResult: 171c7bcf3143f2dce92c8b87d291359ec6026044:509a2df3ef4453e189b7c6e3593d774c5e4f56a687053765fe08fd17a78d870e + executionResult: 0d16d2b14ce6837767a0e1366811dd3303e01a48:a656a728b3d6137c5156b5fa971c8ca0d15801bf35028c5238af1c30a10647ef resultSpec: dimensions: - localIdentifier: dim_0 @@ -372,7 +372,7 @@ interactions: resultSize: 9257 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/171c7bcf3143f2dce92c8b87d291359ec6026044%3A509a2df3ef4453e189b7c6e3593d774c5e4f56a687053765fe08fd17a78d870e?offset=0%2C0&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/0d16d2b14ce6837767a0e1366811dd3303e01a48%3Aa656a728b3d6137c5156b5fa971c8ca0d15801bf35028c5238af1c30a10647ef?offset=0%2C0&limit=100%2C100 body: null headers: Accept: @@ -439,7 +439,7 @@ interactions: content-length: - '24936' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:43 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:18 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -1568,7 +1568,7 @@ interactions: - 2 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/171c7bcf3143f2dce92c8b87d291359ec6026044%3A509a2df3ef4453e189b7c6e3593d774c5e4f56a687053765fe08fd17a78d870e?offset=100%2C0&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/0d16d2b14ce6837767a0e1366811dd3303e01a48%3Aa656a728b3d6137c5156b5fa971c8ca0d15801bf35028c5238af1c30a10647ef?offset=100%2C0&limit=100%2C100 body: null headers: Accept: @@ -1635,7 +1635,7 @@ interactions: content-length: - '19988' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:43 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:18 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -2566,7 +2566,7 @@ interactions: - 2 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/171c7bcf3143f2dce92c8b87d291359ec6026044%3A509a2df3ef4453e189b7c6e3593d774c5e4f56a687053765fe08fd17a78d870e/metadata + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/0d16d2b14ce6837767a0e1366811dd3303e01a48%3Aa656a728b3d6137c5156b5fa971c8ca0d15801bf35028c5238af1c30a10647ef/metadata body: null headers: Accept: @@ -2633,7 +2633,7 @@ interactions: content-length: - '2168' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:43 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:18 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -2736,7 +2736,7 @@ interactions: name: Order Amount localIdentifier: dim_1 links: - executionResult: 171c7bcf3143f2dce92c8b87d291359ec6026044:509a2df3ef4453e189b7c6e3593d774c5e4f56a687053765fe08fd17a78d870e + executionResult: 0d16d2b14ce6837767a0e1366811dd3303e01a48:a656a728b3d6137c5156b5fa971c8ca0d15801bf35028c5238af1c30a10647ef resultSpec: dimensions: - localIdentifier: dim_0 @@ -2753,7 +2753,7 @@ interactions: resultSize: 9257 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/171c7bcf3143f2dce92c8b87d291359ec6026044%3A509a2df3ef4453e189b7c6e3593d774c5e4f56a687053765fe08fd17a78d870e?offset=0%2C0&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/0d16d2b14ce6837767a0e1366811dd3303e01a48%3Aa656a728b3d6137c5156b5fa971c8ca0d15801bf35028c5238af1c30a10647ef?offset=0%2C0&limit=100%2C100 body: null headers: Accept: @@ -2820,7 +2820,7 @@ interactions: content-length: - '24936' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:43 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:18 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -3949,7 +3949,7 @@ interactions: - 2 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/171c7bcf3143f2dce92c8b87d291359ec6026044%3A509a2df3ef4453e189b7c6e3593d774c5e4f56a687053765fe08fd17a78d870e?offset=100%2C0&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/0d16d2b14ce6837767a0e1366811dd3303e01a48%3Aa656a728b3d6137c5156b5fa971c8ca0d15801bf35028c5238af1c30a10647ef?offset=100%2C0&limit=100%2C100 body: null headers: Accept: @@ -4016,7 +4016,7 @@ interactions: content-length: - '19988' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:43 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:18 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_two_dim3.yaml b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_two_dim3.yaml index e81eb61e..c1f1996f 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_two_dim3.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_two_dim3.yaml @@ -121,7 +121,7 @@ interactions: content-length: - '1219' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:44 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:19 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -182,10 +182,10 @@ interactions: name: Order Amount localIdentifier: dim_1 links: - executionResult: 8d73978484270670708ee7e4a4164474cbafda82:79bfd75d28572686ae4abccd5514a85fe8c8f845b8943633e1a87e221e024e4c + executionResult: c0d3f99ac025ee852c254fa8266d36d330773e5b:d3cec2868b6c54aafe391424a1618c7247c4bcd0d9dfa7191069d0442a865ea8 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/8d73978484270670708ee7e4a4164474cbafda82%3A79bfd75d28572686ae4abccd5514a85fe8c8f845b8943633e1a87e221e024e4c/metadata + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/c0d3f99ac025ee852c254fa8266d36d330773e5b%3Ad3cec2868b6c54aafe391424a1618c7247c4bcd0d9dfa7191069d0442a865ea8/metadata body: null headers: Accept: @@ -252,7 +252,7 @@ interactions: content-length: - '2168' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:44 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:19 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -355,7 +355,7 @@ interactions: name: Order Amount localIdentifier: dim_1 links: - executionResult: 8d73978484270670708ee7e4a4164474cbafda82:79bfd75d28572686ae4abccd5514a85fe8c8f845b8943633e1a87e221e024e4c + executionResult: c0d3f99ac025ee852c254fa8266d36d330773e5b:d3cec2868b6c54aafe391424a1618c7247c4bcd0d9dfa7191069d0442a865ea8 resultSpec: dimensions: - localIdentifier: dim_0 @@ -372,7 +372,7 @@ interactions: resultSize: 3136 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/8d73978484270670708ee7e4a4164474cbafda82%3A79bfd75d28572686ae4abccd5514a85fe8c8f845b8943633e1a87e221e024e4c?offset=0%2C0&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/c0d3f99ac025ee852c254fa8266d36d330773e5b%3Ad3cec2868b6c54aafe391424a1618c7247c4bcd0d9dfa7191069d0442a865ea8?offset=0%2C0&limit=100%2C100 body: null headers: Accept: @@ -439,7 +439,7 @@ interactions: content-length: - '21409' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:44 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:19 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -1628,7 +1628,7 @@ interactions: - 96 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/8d73978484270670708ee7e4a4164474cbafda82%3A79bfd75d28572686ae4abccd5514a85fe8c8f845b8943633e1a87e221e024e4c/metadata + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/c0d3f99ac025ee852c254fa8266d36d330773e5b%3Ad3cec2868b6c54aafe391424a1618c7247c4bcd0d9dfa7191069d0442a865ea8/metadata body: null headers: Accept: @@ -1695,7 +1695,7 @@ interactions: content-length: - '2168' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:45 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:19 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -1798,7 +1798,7 @@ interactions: name: Order Amount localIdentifier: dim_1 links: - executionResult: 8d73978484270670708ee7e4a4164474cbafda82:79bfd75d28572686ae4abccd5514a85fe8c8f845b8943633e1a87e221e024e4c + executionResult: c0d3f99ac025ee852c254fa8266d36d330773e5b:d3cec2868b6c54aafe391424a1618c7247c4bcd0d9dfa7191069d0442a865ea8 resultSpec: dimensions: - localIdentifier: dim_0 @@ -1815,7 +1815,7 @@ interactions: resultSize: 3136 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/8d73978484270670708ee7e4a4164474cbafda82%3A79bfd75d28572686ae4abccd5514a85fe8c8f845b8943633e1a87e221e024e4c?offset=0%2C0&limit=100%2C100 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/c0d3f99ac025ee852c254fa8266d36d330773e5b%3Ad3cec2868b6c54aafe391424a1618c7247c4bcd0d9dfa7191069d0442a865ea8?offset=0%2C0&limit=100%2C100 body: null headers: Accept: @@ -1882,7 +1882,7 @@ interactions: content-length: - '21409' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:45 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:19 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_items.yaml b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_items.yaml index 267f2196..7b136647 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_items.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_items.yaml @@ -115,7 +115,7 @@ interactions: content-length: - '949' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:54 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:26 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -161,7 +161,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: fd6d38efa3c86ef99f70adcce306b5564c0a3179:f55b65a437c691d4617287e69f8962cecc174080ba84b1f125123b6657b21fa5 + executionResult: 961e64aeceb3a15ca6e8b65cef7b7e5c1b842bb1:117792301a7219271939521adf7b4085f0281208ecbf5c3f1eba9b32a28a3533 - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -189,7 +189,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -229,7 +229,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:54 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:26 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -615,6 +615,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -639,6 +687,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -687,14 +759,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -703,22 +775,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -727,15 +799,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -857,6 +1119,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -887,6 +1160,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -922,6 +1206,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -1032,6 +1327,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1068,11 +1385,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1098,10 +1426,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1175,1064 +1526,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:54 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:54 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/fd6d38efa3c86ef99f70adcce306b5564c0a3179%3Af55b65a437c691d4617287e69f8962cecc174080ba84b1f125123b6657b21fa5?offset=0%2C0&limit=2%2C1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/961e64aeceb3a15ca6e8b65cef7b7e5c1b842bb1%3A117792301a7219271939521adf7b4085f0281208ecbf5c3f1eba9b32a28a3533?offset=0%2C0&limit=2%2C1000 body: null headers: Accept: @@ -2299,7 +1593,7 @@ interactions: content-length: - '3098' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:54 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:26 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_items_no_index.yaml b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_items_no_index.yaml index 1b1a1307..7b136647 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_items_no_index.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_items_no_index.yaml @@ -115,7 +115,7 @@ interactions: content-length: - '949' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:55 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:26 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -161,7 +161,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: fd6d38efa3c86ef99f70adcce306b5564c0a3179:f55b65a437c691d4617287e69f8962cecc174080ba84b1f125123b6657b21fa5 + executionResult: 961e64aeceb3a15ca6e8b65cef7b7e5c1b842bb1:117792301a7219271939521adf7b4085f0281208ecbf5c3f1eba9b32a28a3533 - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -189,7 +189,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -229,7 +229,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:55 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:26 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -615,6 +615,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -639,6 +687,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -687,14 +759,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -703,22 +775,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -727,15 +799,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -857,6 +1119,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -887,6 +1160,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -922,6 +1206,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -1032,6 +1327,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1068,11 +1385,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1098,10 +1426,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1175,1064 +1526,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:55 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:55 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/fd6d38efa3c86ef99f70adcce306b5564c0a3179%3Af55b65a437c691d4617287e69f8962cecc174080ba84b1f125123b6657b21fa5?offset=0%2C0&limit=2%2C1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/961e64aeceb3a15ca6e8b65cef7b7e5c1b842bb1%3A117792301a7219271939521adf7b4085f0281208ecbf5c3f1eba9b32a28a3533?offset=0%2C0&limit=2%2C1000 body: null headers: Accept: @@ -2299,7 +1593,7 @@ interactions: content-length: - '3098' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:55 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:26 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_visualization.yaml b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_visualization.yaml index d8265a97..1f6bf3e4 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_visualization.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_visualization.yaml @@ -69,7 +69,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:52 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:25 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -172,7 +172,7 @@ interactions: direction: asc version: '2' visualizationUrl: local:table - createdAt: 2024-10-07 09:14 + createdAt: 2024-10-07 11:17 relationships: createdBy: data: @@ -219,7 +219,7 @@ interactions: attributes: title: Revenue description: '' - createdAt: 2024-10-07 09:14 + createdAt: 2024-10-07 11:17 content: format: $#,##0 maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} @@ -272,7 +272,7 @@ interactions: type: metric attributes: title: '% Revenue in Category' - createdAt: 2024-10-07 09:14 + createdAt: 2024-10-07 11:17 content: format: '#,##0.0%' maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, @@ -426,7 +426,7 @@ interactions: content-length: - '1235' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:52 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:25 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -476,7 +476,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: fc6841d2072ced4d1b63a351064ed4187dfdcf3a:d9d5ca3ec183ca6d8f2b663aee2a0022fa62608eadc38ad0763f27296333d1f2 + executionResult: d5a771e9906bd8b8fc71d3a673486178cf245b06:e6af04dc9d4af0da9630749aef24aa531c38d6b2030048d97979c4024d71ce48 - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -504,7 +504,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -544,7 +544,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:52 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:25 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -930,6 +930,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -954,6 +1002,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -1002,14 +1074,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -1018,22 +1090,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -1042,15 +1114,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -1172,6 +1434,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -1202,6 +1475,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -1237,6 +1521,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -1347,6 +1642,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1383,11 +1700,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1413,10 +1741,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1490,1064 +1841,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:52 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:53 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/fc6841d2072ced4d1b63a351064ed4187dfdcf3a%3Ad9d5ca3ec183ca6d8f2b663aee2a0022fa62608eadc38ad0763f27296333d1f2?offset=0%2C0&limit=4%2C1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/d5a771e9906bd8b8fc71d3a673486178cf245b06%3Ae6af04dc9d4af0da9630749aef24aa531c38d6b2030048d97979c4024d71ce48?offset=0%2C0&limit=4%2C1000 body: null headers: Accept: @@ -2614,7 +1908,7 @@ interactions: content-length: - '4024' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:53 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:25 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_visualization_date.yaml b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_visualization_date.yaml index f0514be6..af526824 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_visualization_date.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_visualization_date.yaml @@ -28,7 +28,7 @@ interactions: Connection: - keep-alive Content-Length: - - '3305' + - '3321' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -69,7 +69,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:51 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:25 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -121,9 +121,9 @@ interactions: identifier: id: date type: dataset - from: -12 + from: -11 granularity: GDC.time.month - to: -1 + to: 0 properties: controls: colorMapping: @@ -149,7 +149,7 @@ interactions: rotation: auto version: '2' visualizationUrl: local:combo2 - createdAt: 2024-10-07 09:14 + createdAt: 2024-10-07 11:17 relationships: createdBy: data: @@ -183,6 +183,7 @@ interactions: type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -192,7 +193,7 @@ interactions: type: metric attributes: title: '# of Active Customers' - createdAt: 2024-10-07 09:14 + createdAt: 2024-10-07 11:17 content: format: '#,##0' maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) @@ -202,7 +203,7 @@ interactions: type: metric attributes: title: Revenue per Customer - createdAt: 2024-10-07 09:14 + createdAt: 2024-10-07 11:17 content: format: $#,##0.0 maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) @@ -238,9 +239,9 @@ interactions: identifier: id: date type: dataset - from: -12 + from: -11 granularity: MONTH - to: -1 + to: 0 measures: - definition: measure: @@ -335,7 +336,7 @@ interactions: content-length: - '843' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:51 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:25 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -370,7 +371,7 @@ interactions: pattern: MMM y localIdentifier: dim_1 links: - executionResult: 914d3869110b7d7874b28ae280d2b94ee8841409:bd6ce6d7a3a7ebfaf7d31f233e94ecbda6605005d94424663dc4b298634dafa0 + executionResult: 48be312dac51028013470739733a59cd6cc8b7a1:8c946a32fa2fad5ca3549b80dfc23572927c1f643589e319175919fe9082254e - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -398,7 +399,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -438,7 +439,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:52 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:25 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -824,6 +825,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -848,6 +897,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -896,14 +969,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -912,22 +985,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -936,15 +1009,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -1066,6 +1329,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -1096,6 +1370,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -1131,6 +1416,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -1241,6 +1537,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1277,10 +1595,21 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id description: Order line id tags: - Order lines @@ -1307,10 +1636,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1384,11 +1736,11 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/48be312dac51028013470739733a59cd6cc8b7a1%3A8c946a32fa2fad5ca3549b80dfc23572927c1f643589e319175919fe9082254e?offset=0%2C0&limit=2%2C1000 body: null headers: Accept: - - application/vnd.gooddata.api+json + - application/json Accept-Encoding: - br, gzip, deflate X-GDC-VALIDATE-RELATIONS: @@ -1408,8 +1760,6 @@ interactions: - no-cache, no-store, max-age=0, must-revalidate Connection: - keep-alive - Content-Length: - - '12092' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -1423,7 +1773,7 @@ interactions: matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com *.wistia.net embedwistia-a.akamaihd.net' Content-Type: - - application/vnd.gooddata.api+json + - application/json DATE: *id001 Expires: - '0' @@ -1439,6 +1789,8 @@ interactions: - no-referrer Server: - nginx + Transfer-Encoding: + - chunked Vary: - Origin - Access-Control-Request-Method @@ -1448,1073 +1800,15 @@ interactions: X-GDC-TRACE-ID: *id001 X-XSS-Protection: - '0' + content-length: + - '1382' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:52 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:25 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:52 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/914d3869110b7d7874b28ae280d2b94ee8841409%3Abd6ce6d7a3a7ebfaf7d31f233e94ecbda6605005d94424663dc4b298634dafa0?offset=0%2C0&limit=2%2C1000 - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Transfer-Encoding: - - chunked - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - content-length: - - '1376' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:52 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - - 73 - - 56 + - - 56 - 88 - 65 - 66 @@ -2525,8 +1819,8 @@ interactions: - 76 - 99 - 107 - - - 177.2809375 - - 170.1824 + - 91 + - - 170.1824 - 178.174875 - 174.79036363636362 - 146.0419298245614 @@ -2537,6 +1831,7 @@ interactions: - 208.63134328358208 - 194.15443181818182 - 215.70928571428573 + - 152.4380487804878 dimensionHeaders: - headerGroups: - headers: @@ -2546,9 +1841,6 @@ interactions: measureIndex: 1 - headerGroups: - headers: - - attributeHeader: - labelValue: 2023-10 - primaryLabelValue: 2023-10 - attributeHeader: labelValue: 2023-11 primaryLabelValue: 2023-11 @@ -2582,6 +1874,9 @@ interactions: - attributeHeader: labelValue: 2024-09 primaryLabelValue: 2024-09 + - attributeHeader: + labelValue: 2024-10 + primaryLabelValue: 2024-10 grandTotals: [] paging: count: diff --git a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_visualization_no_index.yaml b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_visualization_no_index.yaml index a283be11..01113108 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_visualization_no_index.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/dataframe_for_visualization_no_index.yaml @@ -69,7 +69,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:53 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:26 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -172,7 +172,7 @@ interactions: direction: asc version: '2' visualizationUrl: local:table - createdAt: 2024-10-07 09:14 + createdAt: 2024-10-07 11:17 relationships: createdBy: data: @@ -219,7 +219,7 @@ interactions: attributes: title: Revenue description: '' - createdAt: 2024-10-07 09:14 + createdAt: 2024-10-07 11:17 content: format: $#,##0 maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} @@ -272,7 +272,7 @@ interactions: type: metric attributes: title: '% Revenue in Category' - createdAt: 2024-10-07 09:14 + createdAt: 2024-10-07 11:17 content: format: '#,##0.0%' maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, @@ -426,7 +426,7 @@ interactions: content-length: - '1235' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:53 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:26 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -476,7 +476,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: fc6841d2072ced4d1b63a351064ed4187dfdcf3a:d9d5ca3ec183ca6d8f2b663aee2a0022fa62608eadc38ad0763f27296333d1f2 + executionResult: d5a771e9906bd8b8fc71d3a673486178cf245b06:e6af04dc9d4af0da9630749aef24aa531c38d6b2030048d97979c4024d71ce48 - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -504,7 +504,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -544,7 +544,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:53 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:26 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -930,6 +930,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -954,6 +1002,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -1002,14 +1074,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -1018,22 +1090,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -1042,15 +1114,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -1172,6 +1434,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -1202,6 +1475,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -1237,6 +1521,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -1347,6 +1642,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1383,11 +1700,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1413,10 +1741,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1490,1064 +1841,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:53 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:53 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/fc6841d2072ced4d1b63a351064ed4187dfdcf3a%3Ad9d5ca3ec183ca6d8f2b663aee2a0022fa62608eadc38ad0763f27296333d1f2?offset=0%2C0&limit=4%2C1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/d5a771e9906bd8b8fc71d3a673486178cf245b06%3Ae6af04dc9d4af0da9630749aef24aa531c38d6b2030048d97979c4024d71ce48?offset=0%2C0&limit=4%2C1000 body: null headers: Accept: @@ -2614,7 +1908,7 @@ interactions: content-length: - '4024' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:53 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:26 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/empty_indexed_dataframe.yaml b/gooddata-pandas/tests/dataframe/fixtures/empty_indexed_dataframe.yaml index 29b6ffb5..d8e5cd62 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/empty_indexed_dataframe.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/empty_indexed_dataframe.yaml @@ -108,7 +108,7 @@ interactions: content-length: - '810' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:04 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:31 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -141,7 +141,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: aa1ce721a0cab0692da7b9b943c8af811cdbd3a1:df8cde15d7dd78d69c9e8b1f72edb067a5df0679727b66ca4f7cba3055acb88b + executionResult: 717ba473452905758c2c735a50fcf54ae183bc14:0f3a8ff1ff729b519d4666fd1faa894c07d235e846e7d2821707fdec41b96507 - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -169,7 +169,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -209,7 +209,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:04 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:31 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -595,6 +595,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -619,6 +667,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -667,14 +739,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -683,22 +755,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -707,15 +779,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -837,6 +1099,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -867,6 +1140,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -902,6 +1186,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -1012,6 +1307,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1048,11 +1365,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1078,10 +1406,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1155,1064 +1506,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:04 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:04 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/aa1ce721a0cab0692da7b9b943c8af811cdbd3a1%3Adf8cde15d7dd78d69c9e8b1f72edb067a5df0679727b66ca4f7cba3055acb88b?offset=0%2C0&limit=2%2C1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/717ba473452905758c2c735a50fcf54ae183bc14%3A0f3a8ff1ff729b519d4666fd1faa894c07d235e846e7d2821707fdec41b96507?offset=0%2C0&limit=2%2C1000 body: null headers: Accept: @@ -2279,7 +1573,7 @@ interactions: content-length: - '171' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:04 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:31 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/empty_not_indexed_dataframe.yaml b/gooddata-pandas/tests/dataframe/fixtures/empty_not_indexed_dataframe.yaml index b348557b..f0954ad2 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/empty_not_indexed_dataframe.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/empty_not_indexed_dataframe.yaml @@ -108,7 +108,7 @@ interactions: content-length: - '810' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:06 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:32 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -141,7 +141,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: aa1ce721a0cab0692da7b9b943c8af811cdbd3a1:df8cde15d7dd78d69c9e8b1f72edb067a5df0679727b66ca4f7cba3055acb88b + executionResult: 717ba473452905758c2c735a50fcf54ae183bc14:0f3a8ff1ff729b519d4666fd1faa894c07d235e846e7d2821707fdec41b96507 - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -169,7 +169,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -209,7 +209,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:06 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:32 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -595,6 +595,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -619,6 +667,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -667,14 +739,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -683,22 +755,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -707,15 +779,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -837,6 +1099,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -867,6 +1140,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -902,6 +1186,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -1012,6 +1307,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1048,11 +1365,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1078,10 +1406,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1155,1064 +1506,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:06 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:06 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/aa1ce721a0cab0692da7b9b943c8af811cdbd3a1%3Adf8cde15d7dd78d69c9e8b1f72edb067a5df0679727b66ca4f7cba3055acb88b?offset=0%2C0&limit=2%2C1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/717ba473452905758c2c735a50fcf54ae183bc14%3A0f3a8ff1ff729b519d4666fd1faa894c07d235e846e7d2821707fdec41b96507?offset=0%2C0&limit=2%2C1000 body: null headers: Accept: @@ -2279,7 +1573,7 @@ interactions: content-length: - '171' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:06 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:32 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/multi_index_filtered_metrics_and_label.yaml b/gooddata-pandas/tests/dataframe/fixtures/multi_index_filtered_metrics_and_label.yaml index 2ec23077..af76eef5 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/multi_index_filtered_metrics_and_label.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/multi_index_filtered_metrics_and_label.yaml @@ -133,7 +133,7 @@ interactions: content-length: - '1373' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:02 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:30 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -196,7 +196,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: 55195c93f1fcc9483bbdd601154607592e7c75a5:ca8c2b1f7a776801a23222b7c9ea22e8a2fa9c34d15b13e6d6639ff417cefe99 + executionResult: 6edcbfaf20f7e4a4297d3e50f95620b77b76b358:492afd3cb635bdbd41957c5ab8e3b42479b63e1ffee74120b754c0ab7e5bd28b - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -224,7 +224,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -264,7 +264,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:02 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:30 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -650,6 +650,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -674,6 +722,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -722,14 +794,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -738,22 +810,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -762,15 +834,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -892,6 +1154,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -922,6 +1195,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -957,6 +1241,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -1067,6 +1362,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1103,11 +1420,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1133,10 +1461,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1210,1064 +1561,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:03 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:03 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/55195c93f1fcc9483bbdd601154607592e7c75a5%3Aca8c2b1f7a776801a23222b7c9ea22e8a2fa9c34d15b13e6d6639ff417cefe99?offset=0%2C0&limit=2%2C1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/6edcbfaf20f7e4a4297d3e50f95620b77b76b358%3A492afd3cb635bdbd41957c5ab8e3b42479b63e1ffee74120b754c0ab7e5bd28b?offset=0%2C0&limit=2%2C1000 body: null headers: Accept: @@ -2334,7 +1628,7 @@ interactions: content-length: - '1005' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:03 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:30 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/multi_index_filtered_metrics_and_label_reuse.yaml b/gooddata-pandas/tests/dataframe/fixtures/multi_index_filtered_metrics_and_label_reuse.yaml index a1b32dcc..0eec4360 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/multi_index_filtered_metrics_and_label_reuse.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/multi_index_filtered_metrics_and_label_reuse.yaml @@ -122,7 +122,7 @@ interactions: content-length: - '1087' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:03 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:31 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -170,7 +170,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: 9b96afa616e30f9dbd2a5a0993c34b56664050eb:8b12b07fbcbd5d86d42e966fbc584aadb6cec5498561eeb7a421bdd5d055b6b6 + executionResult: a07bc098495882d8c62454424b95c961a3d04e37:d19bcec93359c38b906951a265d31b6742ad0f6af67c67751746462b676830fd - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -198,7 +198,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -238,7 +238,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:03 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:31 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -624,6 +624,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -648,6 +696,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -696,14 +768,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -712,22 +784,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -736,15 +808,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -866,6 +1128,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -896,6 +1169,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -931,6 +1215,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -1041,6 +1336,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1077,11 +1394,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1107,10 +1435,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1184,1064 +1535,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:03 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:04 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/9b96afa616e30f9dbd2a5a0993c34b56664050eb%3A8b12b07fbcbd5d86d42e966fbc584aadb6cec5498561eeb7a421bdd5d055b6b6?offset=0%2C0&limit=2%2C1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/a07bc098495882d8c62454424b95c961a3d04e37%3Ad19bcec93359c38b906951a265d31b6742ad0f6af67c67751746462b676830fd?offset=0%2C0&limit=2%2C1000 body: null headers: Accept: @@ -2308,7 +1602,7 @@ interactions: content-length: - '915' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:04 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:31 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/multi_index_metrics.yaml b/gooddata-pandas/tests/dataframe/fixtures/multi_index_metrics.yaml index 5feea65f..cba8c1a6 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/multi_index_metrics.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/multi_index_metrics.yaml @@ -114,7 +114,7 @@ interactions: content-length: - '1087' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:00 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:30 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -162,7 +162,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: 19ae81638464b2daf6cba130d37743784f15a48c:810a2d55934e32441bd4a55456d8c933f79095528d50029b9da50e1caf804211 + executionResult: b66ed01ad5fe02aedd6a5f83efc539e1d6d923d1:c8c2cf0c4f200a16e73796d947e32e8a2fa32fe6a2c92d5155c47781e3b0f512 - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -190,7 +190,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -230,7 +230,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:00 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:30 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -616,6 +616,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -640,6 +688,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -688,14 +760,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -704,22 +776,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -728,15 +800,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -858,6 +1120,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -888,6 +1161,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -923,6 +1207,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -1033,6 +1328,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1069,11 +1386,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1099,10 +1427,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1176,1064 +1527,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:00 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:00 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/19ae81638464b2daf6cba130d37743784f15a48c%3A810a2d55934e32441bd4a55456d8c933f79095528d50029b9da50e1caf804211?offset=0%2C0&limit=2%2C1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/b66ed01ad5fe02aedd6a5f83efc539e1d6d923d1%3Ac8c2cf0c4f200a16e73796d947e32e8a2fa32fe6a2c92d5155c47781e3b0f512?offset=0%2C0&limit=2%2C1000 body: null headers: Accept: @@ -2300,7 +1594,7 @@ interactions: content-length: - '3016' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:00 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:30 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/multi_index_metrics_and_label.yaml b/gooddata-pandas/tests/dataframe/fixtures/multi_index_metrics_and_label.yaml index 98fdd8ee..4cc7f32c 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/multi_index_metrics_and_label.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/multi_index_metrics_and_label.yaml @@ -120,7 +120,7 @@ interactions: content-length: - '1373' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:01 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:30 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -183,7 +183,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: e35d89a8a95798a50ed36d491b881c7d6bf5a24f:a10fc67cbba22a4cd87a84de0e4d0b25b183eba9ce754539a3241dc5490ff5bd + executionResult: 3d1143cddf62ed8902b807fa120e9e3cb2ce1b92:4239f8f0cc1914dd8b5bd2ecbe5cf612351e8a82db2e1aa28192dda60a76b273 - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -211,7 +211,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -251,7 +251,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:01 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:30 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -637,6 +637,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -661,6 +709,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -709,14 +781,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -725,22 +797,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -749,15 +821,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -879,6 +1141,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -909,6 +1182,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -944,6 +1228,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -1054,6 +1349,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1090,11 +1407,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1120,10 +1448,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1197,1064 +1548,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:01 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:01 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/e35d89a8a95798a50ed36d491b881c7d6bf5a24f%3Aa10fc67cbba22a4cd87a84de0e4d0b25b183eba9ce754539a3241dc5490ff5bd?offset=0%2C0&limit=2%2C1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/3d1143cddf62ed8902b807fa120e9e3cb2ce1b92%3A4239f8f0cc1914dd8b5bd2ecbe5cf612351e8a82db2e1aa28192dda60a76b273?offset=0%2C0&limit=2%2C1000 body: null headers: Accept: @@ -2321,7 +1615,7 @@ interactions: content-length: - '43407' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:01 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:30 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/not_indexed_filtered_metrics_and_labels.yaml b/gooddata-pandas/tests/dataframe/fixtures/not_indexed_filtered_metrics_and_labels.yaml index 8a727c0b..e13200c1 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/not_indexed_filtered_metrics_and_labels.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/not_indexed_filtered_metrics_and_labels.yaml @@ -116,7 +116,7 @@ interactions: content-length: - '759' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:06 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:32 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -149,7 +149,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: a59b1f439d281c8f4c92d1ca02ee4955e24d2bb5:6af97567e60c2b245f6749a8bf2de7db05109541e3e850aa8e1f0a0043ee1b97 + executionResult: 913ca53fb88eff1b9b7d01306b9dc24c30fb2941:06196704f20eb0c4004cc6001ee7993dc5f22f872d852d4379ef2bcd1add0159 - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -177,7 +177,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -217,7 +217,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:06 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:32 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -603,6 +603,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -627,6 +675,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -675,14 +747,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -691,22 +763,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -715,15 +787,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -845,6 +1107,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -875,6 +1148,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -910,6 +1194,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -1020,6 +1315,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1056,11 +1373,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1086,10 +1414,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1163,1064 +1514,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:06 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:06 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/a59b1f439d281c8f4c92d1ca02ee4955e24d2bb5%3A6af97567e60c2b245f6749a8bf2de7db05109541e3e850aa8e1f0a0043ee1b97?offset=0%2C0&limit=2%2C1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/913ca53fb88eff1b9b7d01306b9dc24c30fb2941%3A06196704f20eb0c4004cc6001ee7993dc5f22f872d852d4379ef2bcd1add0159?offset=0%2C0&limit=2%2C1000 body: null headers: Accept: @@ -2287,7 +1581,7 @@ interactions: content-length: - '333' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:06 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:32 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/not_indexed_metrics.yaml b/gooddata-pandas/tests/dataframe/fixtures/not_indexed_metrics.yaml index 52bcef36..3cb54176 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/not_indexed_metrics.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/not_indexed_metrics.yaml @@ -100,7 +100,7 @@ interactions: content-length: - '428' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:04 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:31 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -116,2078 +116,10 @@ interactions: name: '# of Orders' localIdentifier: dim_0 links: - executionResult: 19355bdaea0fdbb3429670442dbaf217d2c33b5e:76042d91ae1e8be9c18260379b4de5ad8ba7a91d8dbb50b393b7390a6ef6a2ab + executionResult: 1aa24ee53601d54297875e4f959a3759c70b3ca2:11776ff005998fadc91a24ad1d0ff75753a45a0fe72fe8a87ef504e3983030c0 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '19939' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:04 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - areRelationsValid: true - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: campaign_channels - type: dataset - labels: - data: - - id: campaign_channel_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - areRelationsValid: true - sourceColumn: category - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: campaign_channels - type: dataset - labels: - data: - - id: campaign_channels.category - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - meta: - origin: - originType: NATIVE - originId: demo - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - areRelationsValid: true - sourceColumn: type - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: campaign_channels - type: dataset - labels: - data: - - id: type - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - areRelationsValid: true - sourceColumn: campaign_id - sourceColumnDataType: INT - relationships: - dataset: - data: - id: campaigns - type: dataset - labels: - data: - - id: campaign_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - areRelationsValid: true - sourceColumn: campaign_name - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: campaigns - type: dataset - labels: - data: - - id: campaign_name - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - meta: - origin: - originType: NATIVE - originId: demo - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - areRelationsValid: true - sourceColumn: customer_id - sourceColumnDataType: INT - relationships: - dataset: - data: - id: customers - type: dataset - labels: - data: - - id: customer_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - meta: - origin: - originType: NATIVE - originId: demo - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - areRelationsValid: true - sourceColumn: customer_name - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: customers - type: dataset - labels: - data: - - id: customer_name - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - meta: - origin: - originType: NATIVE - originId: demo - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - areRelationsValid: true - sourceColumn: region - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: customers - type: dataset - labels: - data: - - id: region - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - meta: - origin: - originType: NATIVE - originId: demo - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - areRelationsValid: true - sourceColumn: state - sourceColumnDataType: STRING - relationships: - defaultView: - data: - id: state - type: label - dataset: - data: - id: customers - type: dataset - labels: - data: - - id: state - type: label - - id: geo__state__location - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - meta: - origin: - originType: NATIVE - originId: demo - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - areRelationsValid: true - sourceColumn: order_id - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: order_lines - type: dataset - labels: - data: - - id: order_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - meta: - origin: - originType: NATIVE - originId: demo - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - areRelationsValid: true - sourceColumn: order_line_id - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: order_lines - type: dataset - labels: - data: - - id: order_line_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - meta: - origin: - originType: NATIVE - originId: demo - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - areRelationsValid: true - sourceColumn: order_status - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: order_lines - type: dataset - labels: - data: - - id: order_status - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - meta: - origin: - originType: NATIVE - originId: demo - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - areRelationsValid: true - sourceColumn: product_id - sourceColumnDataType: INT - relationships: - dataset: - data: - id: products - type: dataset - labels: - data: - - id: product_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - meta: - origin: - originType: NATIVE - originId: demo - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - areRelationsValid: true - sourceColumn: product_name - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: products - type: dataset - labels: - data: - - id: product_name - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - meta: - origin: - originType: NATIVE - originId: demo - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - areRelationsValid: true - sourceColumn: category - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: products - type: dataset - labels: - data: - - id: products.category - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - meta: - origin: - originType: NATIVE - originId: demo - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - areRelationsValid: true - relationships: - dataset: - data: - id: date - type: dataset - labels: - data: - - id: date.day - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - meta: - origin: - originType: NATIVE - originId: demo - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - areRelationsValid: true - relationships: - dataset: - data: - id: date - type: dataset - labels: - data: - - id: date.month - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - meta: - origin: - originType: NATIVE - originId: demo - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - areRelationsValid: true - relationships: - dataset: - data: - id: date - type: dataset - labels: - data: - - id: date.quarter - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - meta: - origin: - originType: NATIVE - originId: demo - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - areRelationsValid: true - relationships: - dataset: - data: - id: date - type: dataset - labels: - data: - - id: date.week - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - meta: - origin: - originType: NATIVE - originId: demo - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - areRelationsValid: true - relationships: - dataset: - data: - id: date - type: dataset - labels: - data: - - id: date.year - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: product_name - type: label - attributes: - title: Product name - description: Product name - tags: - - Products - primary: true - sourceColumn: product_name - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_name - - id: order_status - type: label - attributes: - title: Order status - description: Order status - tags: - - Order lines - primary: true - sourceColumn: order_status - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/order_status - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - - id: campaign_name - type: label - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - primary: true - sourceColumn: campaign_name - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - type: NORMAL - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - - id: date.month - type: label - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - primary: true - sourceColumn: '' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.month - - id: date.quarter - type: label - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - primary: true - sourceColumn: '' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarter - - id: campaign_channel_id - type: label - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - primary: true - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id - - id: date.day - type: label - attributes: - title: Date - Date - description: Date - tags: - - Date - primary: true - sourceColumn: '' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.day - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - type: NORMAL - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - - id: order_id - type: label - attributes: - title: Order id - description: Order id - tags: - - Order lines - primary: true - sourceColumn: order_id - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/order_id - - id: customer_name - type: label - attributes: - title: Customer name - description: Customer name - tags: - - Customers - primary: true - sourceColumn: customer_name - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/customer_name - - id: type - type: label - attributes: - title: Type - description: Type - tags: - - Campaign channels - primary: true - sourceColumn: type - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/type - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - type: NORMAL - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - - id: region - type: label - attributes: - title: Region - description: Region - tags: - - Customers - primary: true - sourceColumn: region - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/region - - id: products.category - type: label - attributes: - title: Category - description: Category - tags: - - Products - primary: true - sourceColumn: category - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category - - id: date.week - type: label - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - primary: true - sourceColumn: '' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.week - - id: geo__state__location - type: label - attributes: - title: Location - description: Location - tags: - - Customers - primary: false - sourceColumn: geo__state__location - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/geo__state__location - - id: product_id - type: label - attributes: - title: Product id - description: Product id - tags: - - Products - primary: true - sourceColumn: product_id - sourceColumnDataType: INT - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id - type: label - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - primary: true - sourceColumn: order_line_id - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/order_line_id - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - type: NORMAL - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - type: DATE - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - - id: campaign_channels.category - type: label - attributes: - title: Category - description: Category - tags: - - Campaign channels - primary: true - sourceColumn: category - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channels.category - - id: customer_id - type: label - attributes: - title: Customer id - description: Customer id - tags: - - Customers - primary: true - sourceColumn: customer_id - sourceColumnDataType: INT - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/customer_id - - id: date.year - type: label - attributes: - title: Date - Year - description: Year - tags: - - Date - primary: true - sourceColumn: '' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.year - - id: state - type: label - attributes: - title: State - description: State - tags: - - Customers - primary: true - sourceColumn: state - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/state - - id: campaign_id - type: label - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - primary: true - sourceColumn: campaign_id - sourceColumnDataType: INT - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:04 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:05 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/19355bdaea0fdbb3429670442dbaf217d2c33b5e%3A76042d91ae1e8be9c18260379b4de5ad8ba7a91d8dbb50b393b7390a6ef6a2ab?offset=0&limit=2 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/1aa24ee53601d54297875e4f959a3759c70b3ca2%3A11776ff005998fadc91a24ad1d0ff75753a45a0fe72fe8a87ef504e3983030c0?offset=0&limit=2 body: null headers: Accept: @@ -2254,7 +186,7 @@ interactions: content-length: - '220' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:05 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:31 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/not_indexed_metrics_and_labels.yaml b/gooddata-pandas/tests/dataframe/fixtures/not_indexed_metrics_and_labels.yaml index 8d611814..75edbce4 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/not_indexed_metrics_and_labels.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/not_indexed_metrics_and_labels.yaml @@ -108,7 +108,7 @@ interactions: content-length: - '759' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:05 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:31 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -141,7 +141,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: 3df817329419d7bf529b9b28459d998d6f72decc:55cc07d1a544de968c67ca461388d51fc407d07477c5b040db9450fbc3c08f96 + executionResult: 3d1ee1f22e30fba4bfc8ef16d9a7e23e2bc0549b:c55c84a6e887fe620ae03a1043b865ea96f57e4dca89d83f8fb9abd60ad4de6f - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -169,7 +169,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -209,7 +209,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:05 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:31 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -595,6 +595,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -619,6 +667,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -667,14 +739,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -683,22 +755,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -707,15 +779,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -837,6 +1099,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -867,6 +1140,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -902,6 +1186,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -1012,6 +1307,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1048,11 +1365,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1078,10 +1406,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1155,1064 +1506,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:05 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:05 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/3df817329419d7bf529b9b28459d998d6f72decc%3A55cc07d1a544de968c67ca461388d51fc407d07477c5b040db9450fbc3c08f96?offset=0%2C0&limit=2%2C1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/3d1ee1f22e30fba4bfc8ef16d9a7e23e2bc0549b%3Ac55c84a6e887fe620ae03a1043b865ea96f57e4dca89d83f8fb9abd60ad4de6f?offset=0%2C0&limit=2%2C1000 body: null headers: Accept: @@ -2279,7 +1573,7 @@ interactions: content-length: - '676' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:05 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:31 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/simple_index_filtered_metrics_and_label.yaml b/gooddata-pandas/tests/dataframe/fixtures/simple_index_filtered_metrics_and_label.yaml index e001fc15..1276f557 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/simple_index_filtered_metrics_and_label.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/simple_index_filtered_metrics_and_label.yaml @@ -153,7 +153,7 @@ interactions: content-length: - '1009' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:00 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:29 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -197,7 +197,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: fe28843eb2b2e1379da995a84987e4ae47db4aa6:fdfc687ab8baa65c3068010ebcc51be78c48c0f373753b8034443fe961e6f4bf + executionResult: 4bee57ea4a81224f89db8fbb0dc307d01815205f:88272bec05e6cf98e0eda0a6c1b38bfb7be0e68e7b8751314bbe7df5b879eaec - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -225,7 +225,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -265,7 +265,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:00 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:29 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -651,6 +651,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -675,6 +723,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -723,14 +795,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -739,22 +811,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -763,15 +835,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -893,6 +1155,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -923,6 +1196,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -958,6 +1242,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -1068,6 +1363,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1104,11 +1421,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1134,10 +1462,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1211,1064 +1562,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:00 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:00 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/fe28843eb2b2e1379da995a84987e4ae47db4aa6%3Afdfc687ab8baa65c3068010ebcc51be78c48c0f373753b8034443fe961e6f4bf?offset=0%2C0&limit=2%2C1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/4bee57ea4a81224f89db8fbb0dc307d01815205f%3A88272bec05e6cf98e0eda0a6c1b38bfb7be0e68e7b8751314bbe7df5b879eaec?offset=0%2C0&limit=2%2C1000 body: null headers: Accept: @@ -2335,7 +1629,7 @@ interactions: content-length: - '426' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:00 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:29 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/simple_index_metrics.yaml b/gooddata-pandas/tests/dataframe/fixtures/simple_index_metrics.yaml index a779961a..c4eb035e 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/simple_index_metrics.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/simple_index_metrics.yaml @@ -106,7 +106,7 @@ interactions: content-length: - '954' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:55 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:27 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -149,7 +149,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: b8c4e024cef580c2047656684fcb6165793d15eb:64b59c167b140f1eb0a626ffd101b132940a8490ddd62034f1ac52478d757463 + executionResult: 5153d3e8011c3ca8da8a012e3e805e403100b336:02fda2c01736d163f73f2b6a3fea64d655b9472aba311ef361a3947eefb363d0 - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -177,7 +177,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -217,7 +217,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:55 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:27 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -603,6 +603,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -627,6 +675,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -675,14 +747,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -691,22 +763,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -715,15 +787,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -845,6 +1107,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -875,6 +1148,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -910,6 +1194,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -1020,6 +1315,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1056,11 +1373,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1086,10 +1414,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1163,1064 +1514,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:55 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:56 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/b8c4e024cef580c2047656684fcb6165793d15eb%3A64b59c167b140f1eb0a626ffd101b132940a8490ddd62034f1ac52478d757463?offset=0%2C0&limit=1%2C1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/5153d3e8011c3ca8da8a012e3e805e403100b336%3A02fda2c01736d163f73f2b6a3fea64d655b9472aba311ef361a3947eefb363d0?offset=0%2C0&limit=1%2C1000 body: null headers: Accept: @@ -2287,7 +1581,7 @@ interactions: content-length: - '2911' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:56 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:27 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/simple_index_metrics_and_label.yaml b/gooddata-pandas/tests/dataframe/fixtures/simple_index_metrics_and_label.yaml index f583a015..43ddcd73 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/simple_index_metrics_and_label.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/simple_index_metrics_and_label.yaml @@ -110,7 +110,7 @@ interactions: content-length: - '681' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:59 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:29 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -139,7 +139,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: 1269198907b9a263301cc1af45acd14ebe0315ff:da5ff740155829813522e99907abcf9dfac4085c987a250fd833954ab958b268 + executionResult: bfd897743feefaffccb384ac04f8c90d32c44d36:e1d4b0334496607fd9bd7ba02767fb9d2ed6583be33206d341ec054da9063bb6 - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -167,7 +167,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -207,7 +207,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:59 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:29 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -593,6 +593,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -617,6 +665,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -665,14 +737,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -681,22 +753,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -705,15 +777,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -835,6 +1097,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -865,6 +1138,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -900,6 +1184,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -1010,6 +1305,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1046,11 +1363,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1076,10 +1404,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1153,1064 +1504,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:59 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:59 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/1269198907b9a263301cc1af45acd14ebe0315ff%3Ada5ff740155829813522e99907abcf9dfac4085c987a250fd833954ab958b268?offset=0%2C0&limit=2%2C1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/bfd897743feefaffccb384ac04f8c90d32c44d36%3Ae1d4b0334496607fd9bd7ba02767fb9d2ed6583be33206d341ec054da9063bb6?offset=0%2C0&limit=2%2C1000 body: null headers: Accept: @@ -2277,7 +1571,7 @@ interactions: content-length: - '689' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:59 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:29 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/dataframe/fixtures/simple_index_metrics_no_duplicate.yaml b/gooddata-pandas/tests/dataframe/fixtures/simple_index_metrics_no_duplicate.yaml index dc4b5981..43ddcd73 100644 --- a/gooddata-pandas/tests/dataframe/fixtures/simple_index_metrics_no_duplicate.yaml +++ b/gooddata-pandas/tests/dataframe/fixtures/simple_index_metrics_no_duplicate.yaml @@ -110,7 +110,7 @@ interactions: content-length: - '681' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:58 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:29 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -139,7 +139,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: 1269198907b9a263301cc1af45acd14ebe0315ff:da5ff740155829813522e99907abcf9dfac4085c987a250fd833954ab958b268 + executionResult: bfd897743feefaffccb384ac04f8c90d32c44d36:e1d4b0334496607fd9bd7ba02767fb9d2ed6583be33206d341ec054da9063bb6 - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -167,7 +167,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -207,7 +207,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:59 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:29 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -593,6 +593,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -617,6 +665,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -665,14 +737,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -681,22 +753,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -705,15 +777,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -835,6 +1097,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -865,6 +1138,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -900,6 +1184,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -1010,6 +1305,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1046,11 +1363,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1076,10 +1404,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1153,1064 +1504,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:59 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:59 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/1269198907b9a263301cc1af45acd14ebe0315ff%3Ada5ff740155829813522e99907abcf9dfac4085c987a250fd833954ab958b268?offset=0%2C0&limit=2%2C1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/bfd897743feefaffccb384ac04f8c90d32c44d36%3Ae1d4b0334496607fd9bd7ba02767fb9d2ed6583be33206d341ec054da9063bb6?offset=0%2C0&limit=2%2C1000 body: null headers: Accept: @@ -2277,7 +1571,7 @@ interactions: content-length: - '689' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:16:59 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:29 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/series/fixtures/multi_index_filtered_series.yaml b/gooddata-pandas/tests/series/fixtures/multi_index_filtered_series.yaml index 8370c12e..cad59de3 100644 --- a/gooddata-pandas/tests/series/fixtures/multi_index_filtered_series.yaml +++ b/gooddata-pandas/tests/series/fixtures/multi_index_filtered_series.yaml @@ -114,7 +114,7 @@ interactions: content-length: - '954' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:09 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:34 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -157,7 +157,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: 4a824a2a4acadf7869fe9a152f0b8f4303a228dd:5d69d34f308a2b7103a93a2f06e685e87a1284f947678480995ceed3c87f15d8 + executionResult: e0564177fdd6784416e83de30de7df8ae913a009:477b5199aa4f82b8077b124e9bfe68fd53309381b4be2b44d533321cd5e0051b - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -185,7 +185,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -225,7 +225,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:09 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:34 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -611,6 +611,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -635,6 +683,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -683,14 +755,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -699,22 +771,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -723,15 +795,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -853,6 +1115,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -883,6 +1156,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -918,6 +1202,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -1028,6 +1323,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1064,11 +1381,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1094,10 +1422,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1171,1064 +1522,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:09 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:09 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/4a824a2a4acadf7869fe9a152f0b8f4303a228dd%3A5d69d34f308a2b7103a93a2f06e685e87a1284f947678480995ceed3c87f15d8?offset=0%2C0&limit=1%2C1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/e0564177fdd6784416e83de30de7df8ae913a009%3A477b5199aa4f82b8077b124e9bfe68fd53309381b4be2b44d533321cd5e0051b?offset=0%2C0&limit=1%2C1000 body: null headers: Accept: @@ -2295,7 +1589,7 @@ interactions: content-length: - '1014' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:09 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:34 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/series/fixtures/multi_index_metric_series.yaml b/gooddata-pandas/tests/series/fixtures/multi_index_metric_series.yaml index e5e13603..1c2a82a0 100644 --- a/gooddata-pandas/tests/series/fixtures/multi_index_metric_series.yaml +++ b/gooddata-pandas/tests/series/fixtures/multi_index_metric_series.yaml @@ -106,7 +106,7 @@ interactions: content-length: - '954' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:08 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:33 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -149,7 +149,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: b8c4e024cef580c2047656684fcb6165793d15eb:64b59c167b140f1eb0a626ffd101b132940a8490ddd62034f1ac52478d757463 + executionResult: 5153d3e8011c3ca8da8a012e3e805e403100b336:02fda2c01736d163f73f2b6a3fea64d655b9472aba311ef361a3947eefb363d0 - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -177,7 +177,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -217,7 +217,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:08 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:34 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -603,6 +603,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -627,6 +675,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -675,14 +747,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -691,22 +763,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -715,15 +787,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -845,6 +1107,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -875,6 +1148,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -910,6 +1194,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -1020,6 +1315,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1056,11 +1373,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1086,10 +1414,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1163,1064 +1514,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:08 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:08 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/b8c4e024cef580c2047656684fcb6165793d15eb%3A64b59c167b140f1eb0a626ffd101b132940a8490ddd62034f1ac52478d757463?offset=0%2C0&limit=1%2C1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/5153d3e8011c3ca8da8a012e3e805e403100b336%3A02fda2c01736d163f73f2b6a3fea64d655b9472aba311ef361a3947eefb363d0?offset=0%2C0&limit=1%2C1000 body: null headers: Accept: @@ -2287,7 +1581,7 @@ interactions: content-length: - '2911' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:08 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:34 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/series/fixtures/not_indexed_filtered_metric_series.yaml b/gooddata-pandas/tests/series/fixtures/not_indexed_filtered_metric_series.yaml index 1e90afd7..db6c7daa 100644 --- a/gooddata-pandas/tests/series/fixtures/not_indexed_filtered_metric_series.yaml +++ b/gooddata-pandas/tests/series/fixtures/not_indexed_filtered_metric_series.yaml @@ -92,7 +92,7 @@ interactions: content-length: - '295' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:11 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:36 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -103,2078 +103,10 @@ interactions: - localIdentifier: 27c4b665b9d047b1a66a149714f1c596 localIdentifier: dim_0 links: - executionResult: 194a3dc02e32003ac0014bd476d852ca58e18301:889ccca113f8f1486e64ebb0ba41af2cc6260ee27f9b4ec7c0c4a35ddcd76033 + executionResult: 4c19c1fbbdff3c214a199d55b4ddd2913f2c58d1:a8ee46bf65ff3070bc3662170a83246a5f4f75077d4a5dc47c8d25f5637afafc - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '19939' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:11 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - areRelationsValid: true - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: campaign_channels - type: dataset - labels: - data: - - id: campaign_channel_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - areRelationsValid: true - sourceColumn: category - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: campaign_channels - type: dataset - labels: - data: - - id: campaign_channels.category - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - meta: - origin: - originType: NATIVE - originId: demo - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - areRelationsValid: true - sourceColumn: type - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: campaign_channels - type: dataset - labels: - data: - - id: type - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - areRelationsValid: true - sourceColumn: campaign_id - sourceColumnDataType: INT - relationships: - dataset: - data: - id: campaigns - type: dataset - labels: - data: - - id: campaign_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - areRelationsValid: true - sourceColumn: campaign_name - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: campaigns - type: dataset - labels: - data: - - id: campaign_name - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - meta: - origin: - originType: NATIVE - originId: demo - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - areRelationsValid: true - sourceColumn: customer_id - sourceColumnDataType: INT - relationships: - dataset: - data: - id: customers - type: dataset - labels: - data: - - id: customer_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - meta: - origin: - originType: NATIVE - originId: demo - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - areRelationsValid: true - sourceColumn: customer_name - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: customers - type: dataset - labels: - data: - - id: customer_name - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - meta: - origin: - originType: NATIVE - originId: demo - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - areRelationsValid: true - sourceColumn: region - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: customers - type: dataset - labels: - data: - - id: region - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - meta: - origin: - originType: NATIVE - originId: demo - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - areRelationsValid: true - sourceColumn: state - sourceColumnDataType: STRING - relationships: - defaultView: - data: - id: state - type: label - dataset: - data: - id: customers - type: dataset - labels: - data: - - id: state - type: label - - id: geo__state__location - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - meta: - origin: - originType: NATIVE - originId: demo - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - areRelationsValid: true - sourceColumn: order_id - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: order_lines - type: dataset - labels: - data: - - id: order_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - meta: - origin: - originType: NATIVE - originId: demo - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - areRelationsValid: true - sourceColumn: order_line_id - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: order_lines - type: dataset - labels: - data: - - id: order_line_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - meta: - origin: - originType: NATIVE - originId: demo - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - areRelationsValid: true - sourceColumn: order_status - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: order_lines - type: dataset - labels: - data: - - id: order_status - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - meta: - origin: - originType: NATIVE - originId: demo - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - areRelationsValid: true - sourceColumn: product_id - sourceColumnDataType: INT - relationships: - dataset: - data: - id: products - type: dataset - labels: - data: - - id: product_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - meta: - origin: - originType: NATIVE - originId: demo - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - areRelationsValid: true - sourceColumn: product_name - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: products - type: dataset - labels: - data: - - id: product_name - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - meta: - origin: - originType: NATIVE - originId: demo - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - areRelationsValid: true - sourceColumn: category - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: products - type: dataset - labels: - data: - - id: products.category - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - meta: - origin: - originType: NATIVE - originId: demo - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - areRelationsValid: true - relationships: - dataset: - data: - id: date - type: dataset - labels: - data: - - id: date.day - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - meta: - origin: - originType: NATIVE - originId: demo - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - areRelationsValid: true - relationships: - dataset: - data: - id: date - type: dataset - labels: - data: - - id: date.month - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - meta: - origin: - originType: NATIVE - originId: demo - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - areRelationsValid: true - relationships: - dataset: - data: - id: date - type: dataset - labels: - data: - - id: date.quarter - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - meta: - origin: - originType: NATIVE - originId: demo - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - areRelationsValid: true - relationships: - dataset: - data: - id: date - type: dataset - labels: - data: - - id: date.week - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - meta: - origin: - originType: NATIVE - originId: demo - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - areRelationsValid: true - relationships: - dataset: - data: - id: date - type: dataset - labels: - data: - - id: date.year - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: product_name - type: label - attributes: - title: Product name - description: Product name - tags: - - Products - primary: true - sourceColumn: product_name - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_name - - id: order_status - type: label - attributes: - title: Order status - description: Order status - tags: - - Order lines - primary: true - sourceColumn: order_status - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/order_status - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - - id: campaign_name - type: label - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - primary: true - sourceColumn: campaign_name - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - type: NORMAL - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - - id: date.month - type: label - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - primary: true - sourceColumn: '' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.month - - id: date.quarter - type: label - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - primary: true - sourceColumn: '' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarter - - id: campaign_channel_id - type: label - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - primary: true - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id - - id: date.day - type: label - attributes: - title: Date - Date - description: Date - tags: - - Date - primary: true - sourceColumn: '' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.day - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - type: NORMAL - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - - id: order_id - type: label - attributes: - title: Order id - description: Order id - tags: - - Order lines - primary: true - sourceColumn: order_id - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/order_id - - id: customer_name - type: label - attributes: - title: Customer name - description: Customer name - tags: - - Customers - primary: true - sourceColumn: customer_name - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/customer_name - - id: type - type: label - attributes: - title: Type - description: Type - tags: - - Campaign channels - primary: true - sourceColumn: type - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/type - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - type: NORMAL - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - - id: region - type: label - attributes: - title: Region - description: Region - tags: - - Customers - primary: true - sourceColumn: region - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/region - - id: products.category - type: label - attributes: - title: Category - description: Category - tags: - - Products - primary: true - sourceColumn: category - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category - - id: date.week - type: label - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - primary: true - sourceColumn: '' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.week - - id: geo__state__location - type: label - attributes: - title: Location - description: Location - tags: - - Customers - primary: false - sourceColumn: geo__state__location - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/geo__state__location - - id: product_id - type: label - attributes: - title: Product id - description: Product id - tags: - - Products - primary: true - sourceColumn: product_id - sourceColumnDataType: INT - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id - type: label - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - primary: true - sourceColumn: order_line_id - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/order_line_id - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - type: NORMAL - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - type: DATE - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - - id: campaign_channels.category - type: label - attributes: - title: Category - description: Category - tags: - - Campaign channels - primary: true - sourceColumn: category - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channels.category - - id: customer_id - type: label - attributes: - title: Customer id - description: Customer id - tags: - - Customers - primary: true - sourceColumn: customer_id - sourceColumnDataType: INT - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/customer_id - - id: date.year - type: label - attributes: - title: Date - Year - description: Year - tags: - - Date - primary: true - sourceColumn: '' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.year - - id: state - type: label - attributes: - title: State - description: State - tags: - - Customers - primary: true - sourceColumn: state - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/state - - id: campaign_id - type: label - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - primary: true - sourceColumn: campaign_id - sourceColumnDataType: INT - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:11 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:11 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/194a3dc02e32003ac0014bd476d852ca58e18301%3A889ccca113f8f1486e64ebb0ba41af2cc6260ee27f9b4ec7c0c4a35ddcd76033?offset=0&limit=1 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/4c19c1fbbdff3c214a199d55b4ddd2913f2c58d1%3Aa8ee46bf65ff3070bc3662170a83246a5f4f75077d4a5dc47c8d25f5637afafc?offset=0&limit=1 body: null headers: Accept: @@ -2241,7 +173,7 @@ interactions: content-length: - '176' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:11 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:36 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -2358,7 +290,7 @@ interactions: content-length: - '295' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:11 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:36 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -2369,2078 +301,10 @@ interactions: - localIdentifier: 27c4b665b9d047b1a66a149714f1c596 localIdentifier: dim_0 links: - executionResult: 4563365220becb65dcf1ff59ffa0b41e8226ddb0:d7e381fd3ef7005ce4a3e9fb2ba4279d2c9bf617ed0cffa238a3b20a26df3199 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '19939' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:11 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - areRelationsValid: true - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: campaign_channels - type: dataset - labels: - data: - - id: campaign_channel_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - areRelationsValid: true - sourceColumn: category - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: campaign_channels - type: dataset - labels: - data: - - id: campaign_channels.category - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - meta: - origin: - originType: NATIVE - originId: demo - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - areRelationsValid: true - sourceColumn: type - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: campaign_channels - type: dataset - labels: - data: - - id: type - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - areRelationsValid: true - sourceColumn: campaign_id - sourceColumnDataType: INT - relationships: - dataset: - data: - id: campaigns - type: dataset - labels: - data: - - id: campaign_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - areRelationsValid: true - sourceColumn: campaign_name - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: campaigns - type: dataset - labels: - data: - - id: campaign_name - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - meta: - origin: - originType: NATIVE - originId: demo - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - areRelationsValid: true - sourceColumn: customer_id - sourceColumnDataType: INT - relationships: - dataset: - data: - id: customers - type: dataset - labels: - data: - - id: customer_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - meta: - origin: - originType: NATIVE - originId: demo - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - areRelationsValid: true - sourceColumn: customer_name - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: customers - type: dataset - labels: - data: - - id: customer_name - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - meta: - origin: - originType: NATIVE - originId: demo - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - areRelationsValid: true - sourceColumn: region - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: customers - type: dataset - labels: - data: - - id: region - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - meta: - origin: - originType: NATIVE - originId: demo - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - areRelationsValid: true - sourceColumn: state - sourceColumnDataType: STRING - relationships: - defaultView: - data: - id: state - type: label - dataset: - data: - id: customers - type: dataset - labels: - data: - - id: state - type: label - - id: geo__state__location - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - meta: - origin: - originType: NATIVE - originId: demo - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - areRelationsValid: true - sourceColumn: order_id - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: order_lines - type: dataset - labels: - data: - - id: order_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - meta: - origin: - originType: NATIVE - originId: demo - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - areRelationsValid: true - sourceColumn: order_line_id - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: order_lines - type: dataset - labels: - data: - - id: order_line_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - meta: - origin: - originType: NATIVE - originId: demo - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - areRelationsValid: true - sourceColumn: order_status - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: order_lines - type: dataset - labels: - data: - - id: order_status - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - meta: - origin: - originType: NATIVE - originId: demo - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - areRelationsValid: true - sourceColumn: product_id - sourceColumnDataType: INT - relationships: - dataset: - data: - id: products - type: dataset - labels: - data: - - id: product_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - meta: - origin: - originType: NATIVE - originId: demo - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - areRelationsValid: true - sourceColumn: product_name - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: products - type: dataset - labels: - data: - - id: product_name - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - meta: - origin: - originType: NATIVE - originId: demo - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - areRelationsValid: true - sourceColumn: category - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: products - type: dataset - labels: - data: - - id: products.category - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - meta: - origin: - originType: NATIVE - originId: demo - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - areRelationsValid: true - relationships: - dataset: - data: - id: date - type: dataset - labels: - data: - - id: date.day - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - meta: - origin: - originType: NATIVE - originId: demo - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - areRelationsValid: true - relationships: - dataset: - data: - id: date - type: dataset - labels: - data: - - id: date.month - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - meta: - origin: - originType: NATIVE - originId: demo - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - areRelationsValid: true - relationships: - dataset: - data: - id: date - type: dataset - labels: - data: - - id: date.quarter - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - meta: - origin: - originType: NATIVE - originId: demo - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - areRelationsValid: true - relationships: - dataset: - data: - id: date - type: dataset - labels: - data: - - id: date.week - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - meta: - origin: - originType: NATIVE - originId: demo - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - areRelationsValid: true - relationships: - dataset: - data: - id: date - type: dataset - labels: - data: - - id: date.year - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: product_name - type: label - attributes: - title: Product name - description: Product name - tags: - - Products - primary: true - sourceColumn: product_name - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_name - - id: order_status - type: label - attributes: - title: Order status - description: Order status - tags: - - Order lines - primary: true - sourceColumn: order_status - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/order_status - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - - id: campaign_name - type: label - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - primary: true - sourceColumn: campaign_name - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - type: NORMAL - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - - id: date.month - type: label - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - primary: true - sourceColumn: '' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.month - - id: date.quarter - type: label - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - primary: true - sourceColumn: '' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarter - - id: campaign_channel_id - type: label - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - primary: true - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id - - id: date.day - type: label - attributes: - title: Date - Date - description: Date - tags: - - Date - primary: true - sourceColumn: '' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.day - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - type: NORMAL - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - - id: order_id - type: label - attributes: - title: Order id - description: Order id - tags: - - Order lines - primary: true - sourceColumn: order_id - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/order_id - - id: customer_name - type: label - attributes: - title: Customer name - description: Customer name - tags: - - Customers - primary: true - sourceColumn: customer_name - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/customer_name - - id: type - type: label - attributes: - title: Type - description: Type - tags: - - Campaign channels - primary: true - sourceColumn: type - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/type - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - type: NORMAL - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - - id: region - type: label - attributes: - title: Region - description: Region - tags: - - Customers - primary: true - sourceColumn: region - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/region - - id: products.category - type: label - attributes: - title: Category - description: Category - tags: - - Products - primary: true - sourceColumn: category - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category - - id: date.week - type: label - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - primary: true - sourceColumn: '' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.week - - id: geo__state__location - type: label - attributes: - title: Location - description: Location - tags: - - Customers - primary: false - sourceColumn: geo__state__location - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/geo__state__location - - id: product_id - type: label - attributes: - title: Product id - description: Product id - tags: - - Products - primary: true - sourceColumn: product_id - sourceColumnDataType: INT - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id - type: label - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - primary: true - sourceColumn: order_line_id - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/order_line_id - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - type: NORMAL - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - type: DATE - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - - id: campaign_channels.category - type: label - attributes: - title: Category - description: Category - tags: - - Campaign channels - primary: true - sourceColumn: category - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channels.category - - id: customer_id - type: label - attributes: - title: Customer id - description: Customer id - tags: - - Customers - primary: true - sourceColumn: customer_id - sourceColumnDataType: INT - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/customer_id - - id: date.year - type: label - attributes: - title: Date - Year - description: Year - tags: - - Date - primary: true - sourceColumn: '' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.year - - id: state - type: label - attributes: - title: State - description: State - tags: - - Customers - primary: true - sourceColumn: state - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/state - - id: campaign_id - type: label - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - primary: true - sourceColumn: campaign_id - sourceColumnDataType: INT - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:11 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:12 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 + executionResult: 94a750146f7e059007cac5005d1495fa8619f617:19d04b70963346dc0133068bb414fe96b1726dc9752eae59dbccecb39fe4e134 - request: method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/4563365220becb65dcf1ff59ffa0b41e8226ddb0%3Ad7e381fd3ef7005ce4a3e9fb2ba4279d2c9bf617ed0cffa238a3b20a26df3199?offset=0&limit=1 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/94a750146f7e059007cac5005d1495fa8619f617%3A19d04b70963346dc0133068bb414fe96b1726dc9752eae59dbccecb39fe4e134?offset=0&limit=1 body: null headers: Accept: @@ -4507,7 +371,7 @@ interactions: content-length: - '171' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:12 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:36 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/series/fixtures/not_indexed_label_series.yaml b/gooddata-pandas/tests/series/fixtures/not_indexed_label_series.yaml index 402e2d03..2c4bbfa4 100644 --- a/gooddata-pandas/tests/series/fixtures/not_indexed_label_series.yaml +++ b/gooddata-pandas/tests/series/fixtures/not_indexed_label_series.yaml @@ -87,7 +87,7 @@ interactions: content-length: - '505' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:10 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:34 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -111,7 +111,7 @@ interactions: valueType: TEXT localIdentifier: dim_0 links: - executionResult: b01dd1dcd1902e33855cab87910ad0c45d1aed5b:8e31f63830b9ee0e71ff0ca7a94f10348da0254d7b5ca40d5d3e73bf496ebc18 + executionResult: 16786950740ff9f1adbc10d6c1c4bd15cef8b947:ddca77502fcbac6b0d5a33188a45f0140d10ceaa4537a19a127d702c0edae00e - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -139,7 +139,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -179,7 +179,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:10 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:35 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -565,6 +565,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -589,6 +637,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -637,14 +709,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -653,22 +725,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -677,15 +749,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -807,6 +1069,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -837,6 +1110,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -872,6 +1156,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -982,6 +1277,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1018,11 +1335,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1048,10 +1376,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1125,1064 +1476,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:10 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:10 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/b01dd1dcd1902e33855cab87910ad0c45d1aed5b%3A8e31f63830b9ee0e71ff0ca7a94f10348da0254d7b5ca40d5d3e73bf496ebc18?offset=0&limit=1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/16786950740ff9f1adbc10d6c1c4bd15cef8b947%3Addca77502fcbac6b0d5a33188a45f0140d10ceaa4537a19a127d702c0edae00e?offset=0&limit=1000 body: null headers: Accept: @@ -2249,7 +1543,7 @@ interactions: content-length: - '499' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:10 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:35 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/series/fixtures/not_indexed_label_series_with_granularity.yaml b/gooddata-pandas/tests/series/fixtures/not_indexed_label_series_with_granularity.yaml index 2661d96a..c362df8d 100644 --- a/gooddata-pandas/tests/series/fixtures/not_indexed_label_series_with_granularity.yaml +++ b/gooddata-pandas/tests/series/fixtures/not_indexed_label_series_with_granularity.yaml @@ -93,7 +93,7 @@ interactions: content-length: - '833' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:11 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:35 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -132,7 +132,7 @@ interactions: valueType: TEXT localIdentifier: dim_0 links: - executionResult: f797a962e0e6f3bcb45b1fefa3dc69d882e74b4d:c75fe25205874b8c4145affafa334ad96dfee71e12c4555de656bcc44529296d + executionResult: 92a480e7a5f1adf8fec2444f8c1133c759eb16e7:5a2b198a2c84532cee4c28709b7a5b2cc0a679811d72078913eb38ee977762e7 - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -160,7 +160,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -200,7 +200,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:11 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:35 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -586,6 +586,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -610,6 +658,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -658,14 +730,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -674,22 +746,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -698,15 +770,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -828,6 +1090,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -858,6 +1131,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -893,6 +1177,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -1003,6 +1298,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1039,11 +1356,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1069,10 +1397,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1146,1064 +1497,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:11 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:11 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/f797a962e0e6f3bcb45b1fefa3dc69d882e74b4d%3Ac75fe25205874b8c4145affafa334ad96dfee71e12c4555de656bcc44529296d?offset=0&limit=1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/92a480e7a5f1adf8fec2444f8c1133c759eb16e7%3A5a2b198a2c84532cee4c28709b7a5b2cc0a679811d72078913eb38ee977762e7?offset=0&limit=1000 body: null headers: Accept: @@ -2270,7 +1564,7 @@ interactions: content-length: - '2690' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:11 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:35 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/series/fixtures/not_indexed_metric_series.yaml b/gooddata-pandas/tests/series/fixtures/not_indexed_metric_series.yaml index ba1f8d29..d6979c1d 100644 --- a/gooddata-pandas/tests/series/fixtures/not_indexed_metric_series.yaml +++ b/gooddata-pandas/tests/series/fixtures/not_indexed_metric_series.yaml @@ -92,7 +92,7 @@ interactions: content-length: - '295' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:09 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:34 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -103,2078 +103,10 @@ interactions: - localIdentifier: 27c4b665b9d047b1a66a149714f1c596 localIdentifier: dim_0 links: - executionResult: 194a3dc02e32003ac0014bd476d852ca58e18301:889ccca113f8f1486e64ebb0ba41af2cc6260ee27f9b4ec7c0c4a35ddcd76033 + executionResult: 4c19c1fbbdff3c214a199d55b4ddd2913f2c58d1:a8ee46bf65ff3070bc3662170a83246a5f4f75077d4a5dc47c8d25f5637afafc - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '19939' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:09 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - areRelationsValid: true - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: campaign_channels - type: dataset - labels: - data: - - id: campaign_channel_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - areRelationsValid: true - sourceColumn: category - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: campaign_channels - type: dataset - labels: - data: - - id: campaign_channels.category - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - meta: - origin: - originType: NATIVE - originId: demo - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - areRelationsValid: true - sourceColumn: type - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: campaign_channels - type: dataset - labels: - data: - - id: type - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - areRelationsValid: true - sourceColumn: campaign_id - sourceColumnDataType: INT - relationships: - dataset: - data: - id: campaigns - type: dataset - labels: - data: - - id: campaign_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - areRelationsValid: true - sourceColumn: campaign_name - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: campaigns - type: dataset - labels: - data: - - id: campaign_name - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - meta: - origin: - originType: NATIVE - originId: demo - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - areRelationsValid: true - sourceColumn: customer_id - sourceColumnDataType: INT - relationships: - dataset: - data: - id: customers - type: dataset - labels: - data: - - id: customer_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - meta: - origin: - originType: NATIVE - originId: demo - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - areRelationsValid: true - sourceColumn: customer_name - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: customers - type: dataset - labels: - data: - - id: customer_name - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - meta: - origin: - originType: NATIVE - originId: demo - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - areRelationsValid: true - sourceColumn: region - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: customers - type: dataset - labels: - data: - - id: region - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - meta: - origin: - originType: NATIVE - originId: demo - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - areRelationsValid: true - sourceColumn: state - sourceColumnDataType: STRING - relationships: - defaultView: - data: - id: state - type: label - dataset: - data: - id: customers - type: dataset - labels: - data: - - id: state - type: label - - id: geo__state__location - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - meta: - origin: - originType: NATIVE - originId: demo - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - areRelationsValid: true - sourceColumn: order_id - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: order_lines - type: dataset - labels: - data: - - id: order_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - meta: - origin: - originType: NATIVE - originId: demo - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - areRelationsValid: true - sourceColumn: order_line_id - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: order_lines - type: dataset - labels: - data: - - id: order_line_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - meta: - origin: - originType: NATIVE - originId: demo - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - areRelationsValid: true - sourceColumn: order_status - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: order_lines - type: dataset - labels: - data: - - id: order_status - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - meta: - origin: - originType: NATIVE - originId: demo - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - areRelationsValid: true - sourceColumn: product_id - sourceColumnDataType: INT - relationships: - dataset: - data: - id: products - type: dataset - labels: - data: - - id: product_id - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - meta: - origin: - originType: NATIVE - originId: demo - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - areRelationsValid: true - sourceColumn: product_name - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: products - type: dataset - labels: - data: - - id: product_name - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - meta: - origin: - originType: NATIVE - originId: demo - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - areRelationsValid: true - sourceColumn: category - sourceColumnDataType: STRING - relationships: - dataset: - data: - id: products - type: dataset - labels: - data: - - id: products.category - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - meta: - origin: - originType: NATIVE - originId: demo - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - areRelationsValid: true - relationships: - dataset: - data: - id: date - type: dataset - labels: - data: - - id: date.day - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - meta: - origin: - originType: NATIVE - originId: demo - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - areRelationsValid: true - relationships: - dataset: - data: - id: date - type: dataset - labels: - data: - - id: date.month - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - meta: - origin: - originType: NATIVE - originId: demo - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - areRelationsValid: true - relationships: - dataset: - data: - id: date - type: dataset - labels: - data: - - id: date.quarter - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - meta: - origin: - originType: NATIVE - originId: demo - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - areRelationsValid: true - relationships: - dataset: - data: - id: date - type: dataset - labels: - data: - - id: date.week - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - meta: - origin: - originType: NATIVE - originId: demo - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - areRelationsValid: true - relationships: - dataset: - data: - id: date - type: dataset - labels: - data: - - id: date.year - type: label - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: product_name - type: label - attributes: - title: Product name - description: Product name - tags: - - Products - primary: true - sourceColumn: product_name - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_name - - id: order_status - type: label - attributes: - title: Order status - description: Order status - tags: - - Order lines - primary: true - sourceColumn: order_status - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/order_status - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - - id: campaign_name - type: label - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - primary: true - sourceColumn: campaign_name - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - type: NORMAL - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - - id: date.month - type: label - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - primary: true - sourceColumn: '' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.month - - id: date.quarter - type: label - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - primary: true - sourceColumn: '' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarter - - id: campaign_channel_id - type: label - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - primary: true - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id - - id: date.day - type: label - attributes: - title: Date - Date - description: Date - tags: - - Date - primary: true - sourceColumn: '' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.day - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - type: NORMAL - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - - id: order_id - type: label - attributes: - title: Order id - description: Order id - tags: - - Order lines - primary: true - sourceColumn: order_id - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/order_id - - id: customer_name - type: label - attributes: - title: Customer name - description: Customer name - tags: - - Customers - primary: true - sourceColumn: customer_name - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/customer_name - - id: type - type: label - attributes: - title: Type - description: Type - tags: - - Campaign channels - primary: true - sourceColumn: type - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/type - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - type: NORMAL - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - - id: region - type: label - attributes: - title: Region - description: Region - tags: - - Customers - primary: true - sourceColumn: region - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/region - - id: products.category - type: label - attributes: - title: Category - description: Category - tags: - - Products - primary: true - sourceColumn: category - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category - - id: date.week - type: label - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - primary: true - sourceColumn: '' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.week - - id: geo__state__location - type: label - attributes: - title: Location - description: Location - tags: - - Customers - primary: false - sourceColumn: geo__state__location - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/geo__state__location - - id: product_id - type: label - attributes: - title: Product id - description: Product id - tags: - - Products - primary: true - sourceColumn: product_id - sourceColumnDataType: INT - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id - type: label - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - primary: true - sourceColumn: order_line_id - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/order_line_id - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - type: NORMAL - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - type: DATE - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - - id: campaign_channels.category - type: label - attributes: - title: Category - description: Category - tags: - - Campaign channels - primary: true - sourceColumn: category - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channels.category - - id: customer_id - type: label - attributes: - title: Customer id - description: Customer id - tags: - - Customers - primary: true - sourceColumn: customer_id - sourceColumnDataType: INT - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/customer_id - - id: date.year - type: label - attributes: - title: Date - Year - description: Year - tags: - - Date - primary: true - sourceColumn: '' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.year - - id: state - type: label - attributes: - title: State - description: State - tags: - - Customers - primary: true - sourceColumn: state - sourceColumnDataType: STRING - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/state - - id: campaign_id - type: label - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - primary: true - sourceColumn: campaign_id - sourceColumnDataType: INT - valueType: TEXT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:09 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:09 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/194a3dc02e32003ac0014bd476d852ca58e18301%3A889ccca113f8f1486e64ebb0ba41af2cc6260ee27f9b4ec7c0c4a35ddcd76033?offset=0&limit=1 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/4c19c1fbbdff3c214a199d55b4ddd2913f2c58d1%3Aa8ee46bf65ff3070bc3662170a83246a5f4f75077d4a5dc47c8d25f5637afafc?offset=0&limit=1 body: null headers: Accept: @@ -2241,7 +173,7 @@ interactions: content-length: - '176' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:09 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:34 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/series/fixtures/not_indexed_metric_series_with_granularity.yaml b/gooddata-pandas/tests/series/fixtures/not_indexed_metric_series_with_granularity.yaml index 153bb8bd..30dbc801 100644 --- a/gooddata-pandas/tests/series/fixtures/not_indexed_metric_series_with_granularity.yaml +++ b/gooddata-pandas/tests/series/fixtures/not_indexed_metric_series_with_granularity.yaml @@ -100,7 +100,7 @@ interactions: content-length: - '626' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:10 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:35 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -128,7 +128,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: 7c65767e80f082bb36a613613e4a3e391e233097:7d5c3a6219c18bd4222c10cfdf184febccc7ae3c583943208904af3856cc4f08 + executionResult: eeb2e7d57c6440483b1546b445e19b7ab49891de:4d66e9c28dfb60253522eac141729cbccf551ce926cd3e7e0dc6c7ba666f8081 - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -156,7 +156,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -196,7 +196,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:10 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:35 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -582,6 +582,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -606,6 +654,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -654,14 +726,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -670,22 +742,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -694,15 +766,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -824,6 +1086,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -854,6 +1127,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -889,6 +1173,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -999,6 +1294,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1035,11 +1352,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1065,10 +1393,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1142,1064 +1493,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:10 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:10 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/7c65767e80f082bb36a613613e4a3e391e233097%3A7d5c3a6219c18bd4222c10cfdf184febccc7ae3c583943208904af3856cc4f08?offset=0%2C0&limit=1%2C1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/eeb2e7d57c6440483b1546b445e19b7ab49891de%3A4d66e9c28dfb60253522eac141729cbccf551ce926cd3e7e0dc6c7ba666f8081?offset=0%2C0&limit=1%2C1000 body: null headers: Accept: @@ -2266,7 +1560,7 @@ interactions: content-length: - '619' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:10 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:35 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/series/fixtures/simple_index_filtered_series.yaml b/gooddata-pandas/tests/series/fixtures/simple_index_filtered_series.yaml index db91b6ca..46c80f26 100644 --- a/gooddata-pandas/tests/series/fixtures/simple_index_filtered_series.yaml +++ b/gooddata-pandas/tests/series/fixtures/simple_index_filtered_series.yaml @@ -109,7 +109,7 @@ interactions: content-length: - '833' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:08 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:33 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -148,7 +148,7 @@ interactions: valueType: TEXT localIdentifier: dim_0 links: - executionResult: 90b21ba73d5e81ae7b7b870d4e62953c44f8c40a:4e1bdf21a08582bc86563c8387f3b3d0a1fdb012da877f99a72b8fe6f3c45d8a + executionResult: f516f4a07b53fc0b7f63eebacb00d161c47d8d09:8ead221c210723946a80eca2685f32b1a212189e0810228f0718f7f7bc053b58 - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -176,7 +176,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -216,7 +216,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:08 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:33 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -602,6 +602,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -626,6 +674,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -674,14 +746,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -690,22 +762,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -714,15 +786,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -844,6 +1106,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -874,6 +1147,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -909,6 +1193,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -1019,6 +1314,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1055,11 +1372,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1085,10 +1413,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1162,1064 +1513,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:08 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:08 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/90b21ba73d5e81ae7b7b870d4e62953c44f8c40a%3A4e1bdf21a08582bc86563c8387f3b3d0a1fdb012da877f99a72b8fe6f3c45d8a?offset=0&limit=1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/f516f4a07b53fc0b7f63eebacb00d161c47d8d09%3A8ead221c210723946a80eca2685f32b1a212189e0810228f0718f7f7bc053b58?offset=0&limit=1000 body: null headers: Accept: @@ -2286,7 +1580,7 @@ interactions: content-length: - '296' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:08 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:33 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/series/fixtures/simple_index_label_series.yaml b/gooddata-pandas/tests/series/fixtures/simple_index_label_series.yaml index d402e3de..8e95a72a 100644 --- a/gooddata-pandas/tests/series/fixtures/simple_index_label_series.yaml +++ b/gooddata-pandas/tests/series/fixtures/simple_index_label_series.yaml @@ -87,7 +87,7 @@ interactions: content-length: - '505' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:07 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:33 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -111,7 +111,7 @@ interactions: valueType: TEXT localIdentifier: dim_0 links: - executionResult: b01dd1dcd1902e33855cab87910ad0c45d1aed5b:8e31f63830b9ee0e71ff0ca7a94f10348da0254d7b5ca40d5d3e73bf496ebc18 + executionResult: 16786950740ff9f1adbc10d6c1c4bd15cef8b947:ddca77502fcbac6b0d5a33188a45f0140d10ceaa4537a19a127d702c0edae00e - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -139,7 +139,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -179,7 +179,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:07 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:33 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -565,6 +565,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -589,6 +637,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -637,14 +709,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -653,22 +725,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -677,15 +749,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -807,6 +1069,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -837,6 +1110,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -872,6 +1156,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -982,6 +1277,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1018,11 +1335,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1048,10 +1376,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1125,1064 +1476,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:07 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:08 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/b01dd1dcd1902e33855cab87910ad0c45d1aed5b%3A8e31f63830b9ee0e71ff0ca7a94f10348da0254d7b5ca40d5d3e73bf496ebc18?offset=0&limit=1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/16786950740ff9f1adbc10d6c1c4bd15cef8b947%3Addca77502fcbac6b0d5a33188a45f0140d10ceaa4537a19a127d702c0edae00e?offset=0&limit=1000 body: null headers: Accept: @@ -2249,7 +1543,7 @@ interactions: content-length: - '499' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:08 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:33 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-pandas/tests/series/fixtures/simple_index_metric_series.yaml b/gooddata-pandas/tests/series/fixtures/simple_index_metric_series.yaml index de81f506..660e7bec 100644 --- a/gooddata-pandas/tests/series/fixtures/simple_index_metric_series.yaml +++ b/gooddata-pandas/tests/series/fixtures/simple_index_metric_series.yaml @@ -100,7 +100,7 @@ interactions: content-length: - '626' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:07 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:32 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -128,7 +128,7 @@ interactions: valueType: TEXT localIdentifier: dim_1 links: - executionResult: 7c65767e80f082bb36a613613e4a3e391e233097:7d5c3a6219c18bd4222c10cfdf184febccc7ae3c583943208904af3856cc4f08 + executionResult: eeb2e7d57c6440483b1546b445e19b7ab49891de:4d66e9c28dfb60253522eac141729cbccf551ce926cd3e7e0dc6c7ba666f8081 - request: method: GET uri: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=0&size=500 @@ -156,7 +156,7 @@ interactions: Connection: - keep-alive Content-Length: - - '19939' + - '27478' Content-Security-Policy: - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com @@ -196,7 +196,7 @@ interactions: X-XSS-Protection: - '0' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:07 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:32 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: @@ -582,6 +582,54 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.minute + type: attribute + attributes: + title: Date - Minute + description: Minute + tags: + - Date + granularity: MINUTE + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.minute + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minute + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hour + type: attribute + attributes: + title: Date - Hour + description: Hour + tags: + - Date + granularity: HOUR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hour + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hour + meta: + origin: + originType: NATIVE + originId: demo - id: date.day type: attribute attributes: @@ -606,6 +654,30 @@ interactions: origin: originType: NATIVE originId: demo + - id: date.week + type: attribute + attributes: + title: Date - Week/Year + description: Week and Year (W52/2020) + tags: + - Date + granularity: WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.week + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + meta: + origin: + originType: NATIVE + originId: demo - id: date.month type: attribute attributes: @@ -654,14 +726,14 @@ interactions: origin: originType: NATIVE originId: demo - - id: date.week + - id: date.year type: attribute attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) + title: Date - Year + description: Year tags: - Date - granularity: WEEK + granularity: YEAR areRelationsValid: true relationships: dataset: @@ -670,22 +742,22 @@ interactions: type: dataset labels: data: - - id: date.week + - id: date.year type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year meta: origin: originType: NATIVE originId: demo - - id: date.year + - id: date.minuteOfHour type: attribute attributes: - title: Date - Year - description: Year + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) tags: - Date - granularity: YEAR + granularity: MINUTE_OF_HOUR areRelationsValid: true relationships: dataset: @@ -694,15 +766,205 @@ interactions: type: dataset labels: data: - - id: date.year + - id: date.minuteOfHour type: label links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.minuteOfHour + meta: + origin: + originType: NATIVE + originId: demo + - id: date.hourOfDay + type: attribute + attributes: + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + granularity: HOUR_OF_DAY + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.hourOfDay + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.hourOfDay + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfWeek + type: attribute + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + granularity: DAY_OF_WEEK + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfWeek + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfWeek + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfMonth + type: attribute + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + granularity: DAY_OF_MONTH + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfMonth + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfMonth + meta: + origin: + originType: NATIVE + originId: demo + - id: date.dayOfYear + type: attribute + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + granularity: DAY_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.dayOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.dayOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.weekOfYear + type: attribute + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + granularity: WEEK_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.weekOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.weekOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.monthOfYear + type: attribute + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + granularity: MONTH_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.monthOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.monthOfYear + meta: + origin: + originType: NATIVE + originId: demo + - id: date.quarterOfYear + type: attribute + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + granularity: QUARTER_OF_YEAR + areRelationsValid: true + relationships: + dataset: + data: + id: date + type: dataset + labels: + data: + - id: date.quarterOfYear + type: label + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarterOfYear meta: origin: originType: NATIVE originId: demo included: + - id: date.minuteOfHour + type: label + attributes: + title: Date - Minute of Hour + description: Generic Minute of the Hour(MI1-MI60) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minuteOfHour + - id: date.minute + type: label + attributes: + title: Date - Minute + description: Minute + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.minute - id: product_name type: label attributes: @@ -824,6 +1086,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_name + - id: date.dayOfMonth + type: label + attributes: + title: Date - Day of Month + description: Generic Day of the Month (D1-D31) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfMonth - id: campaign_channels type: dataset attributes: @@ -854,6 +1127,17 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels + - id: date.dayOfYear + type: label + attributes: + title: Date - Day of Year + description: Generic Day of the Year (D1-D366) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfYear - id: date.month type: label attributes: @@ -889,6 +1173,17 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/campaign_channel_id + - id: date.quarterOfYear + type: label + attributes: + title: Date - Quarter of Year + description: Generic Quarter (Q1-Q4) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.quarterOfYear - id: date.day type: label attributes: @@ -999,6 +1294,28 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/products.category + - id: date.monthOfYear + type: label + attributes: + title: Date - Month of Year + description: Generic Month (M1-M12) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.monthOfYear + - id: date.weekOfYear + type: label + attributes: + title: Date - Week of Year + description: Generic Week (W1-W53) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.weekOfYear - id: date.week type: label attributes: @@ -1035,11 +1352,22 @@ interactions: valueType: TEXT links: self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/product_id - - id: order_line_id + - id: date.hourOfDay type: label attributes: - title: Order line id - description: Order line id + title: Date - Hour of Day + description: Generic Hour of the Day(H1-H24) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hourOfDay + - id: order_line_id + type: label + attributes: + title: Order line id + description: Order line id tags: - Order lines primary: true @@ -1065,10 +1393,33 @@ interactions: type: NORMAL links: self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products + - id: date.dayOfWeek + type: label + attributes: + title: Date - Day of Week + description: Generic Day of the Week (D1-D7) + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.dayOfWeek + - id: date.hour + type: label + attributes: + title: Date - Hour + description: Hour + tags: + - Date + primary: true + sourceColumn: '' + links: + self: http://localhost:3000/api/v1/entities/workspaces/demo/labels/date.hour - id: date type: dataset attributes: title: Date + description: '' tags: - Date type: DATE @@ -1142,1064 +1493,7 @@ interactions: next: http://localhost:3000/api/v1/entities/workspaces/demo/attributes?include=labels%2Cdatasets&page=1&size=500 - request: method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '12092' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:07 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: campaign_channels - type: dataset - attributes: - title: Campaign channels - description: Campaign channels - tags: - - Campaign channels - grain: - - id: campaign_channel_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:campaign_channels - dataSourceTablePath: - - demo - - campaign_channels - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_channels.category - type: attribute - - id: type - type: attribute - - id: campaign_channel_id - type: attribute - facts: - data: - - id: budget - type: fact - - id: spend - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaign_channels - meta: - origin: - originType: NATIVE - originId: demo - - id: campaigns - type: dataset - attributes: - title: Campaigns - description: Campaigns - tags: - - Campaigns - grain: - - id: campaign_id - type: attribute - dataSourceTableId: demo-test-ds:campaigns - dataSourceTablePath: - - demo - - campaigns - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: campaign_id - type: attribute - - id: campaign_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/campaigns - meta: - origin: - originType: NATIVE - originId: demo - - id: customers - type: dataset - attributes: - title: Customers - description: Customers - tags: - - Customers - grain: - - id: customer_id - type: attribute - dataSourceTableId: demo-test-ds:customers - dataSourceTablePath: - - demo - - customers - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: customer_id - type: attribute - - id: region - type: attribute - - id: state - type: attribute - - id: customer_name - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/customers - meta: - origin: - originType: NATIVE - originId: demo - - id: order_lines - type: dataset - attributes: - title: Order lines - description: Order lines - tags: - - Order lines - grain: - - id: order_line_id - type: attribute - referenceProperties: - - identifier: - id: campaigns - type: dataset - multivalue: false - sources: - - column: campaign_id - dataType: INT - target: - id: campaign_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: products - type: dataset - multivalue: false - sources: - - column: product_id - dataType: INT - target: - id: product_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: date - type: dataset - multivalue: false - sources: - - column: date - dataType: DATE - target: - id: date - type: date - sourceColumns: null - sourceColumnDataTypes: null - - identifier: - id: customers - type: dataset - multivalue: false - sources: - - column: customer_id - dataType: INT - target: - id: customer_id - type: attribute - sourceColumns: null - sourceColumnDataTypes: null - dataSourceTableId: demo-test-ds:order_lines - dataSourceTablePath: - - demo - - order_lines - areRelationsValid: true - workspaceDataFilterColumns: - - name: wdf__region - dataType: STRING - - name: wdf__state - dataType: STRING - workspaceDataFilterReferences: - - filterId: - id: wdf__region - type: workspaceDataFilter - filterColumn: wdf__region - filterColumnDataType: STRING - - filterId: - id: wdf__state - type: workspaceDataFilter - filterColumn: wdf__state - filterColumnDataType: STRING - type: NORMAL - relationships: - attributes: - data: - - id: order_line_id - type: attribute - - id: order_status - type: attribute - - id: order_id - type: attribute - facts: - data: - - id: quantity - type: fact - - id: price - type: fact - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/order_lines - meta: - origin: - originType: NATIVE - originId: demo - - id: products - type: dataset - attributes: - title: Products - description: Products - tags: - - Products - grain: - - id: product_id - type: attribute - dataSourceTableId: demo-test-ds:products - dataSourceTablePath: - - demo - - products - areRelationsValid: true - type: NORMAL - relationships: - attributes: - data: - - id: product_name - type: attribute - - id: products.category - type: attribute - - id: product_id - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/products - meta: - origin: - originType: NATIVE - originId: demo - - id: date - type: dataset - attributes: - title: Date - tags: - - Date - areRelationsValid: true - type: DATE - relationships: - attributes: - data: - - id: date.quarter - type: attribute - - id: date.month - type: attribute - - id: date.year - type: attribute - - id: date.week - type: attribute - - id: date.day - type: attribute - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets/date - meta: - origin: - originType: NATIVE - originId: demo - included: - - id: campaign_name - type: attribute - attributes: - title: Campaign name - description: Campaign name - tags: - - Campaigns - sourceColumn: campaign_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_name - - id: product_id - type: attribute - attributes: - title: Product id - description: Product id - tags: - - Products - sourceColumn: product_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_id - - id: price - type: fact - attributes: - title: Price - description: Price - tags: - - Order lines - sourceColumn: price - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/price - - id: budget - type: fact - attributes: - title: Budget - description: Budget - tags: - - Campaign channels - sourceColumn: budget - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/budget - - id: date.year - type: attribute - attributes: - title: Date - Year - description: Year - tags: - - Date - granularity: YEAR - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.year - - id: date.day - type: attribute - attributes: - title: Date - Date - description: Date - tags: - - Date - granularity: DAY - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.day - - id: region - type: attribute - attributes: - title: Region - description: Region - tags: - - Customers - sourceColumn: region - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/region - - id: campaign_channel_id - type: attribute - attributes: - title: Campaign channel id - description: Campaign channel id - tags: - - Campaign channels - sourceColumn: campaign_channel_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channel_id - - id: product_name - type: attribute - attributes: - title: Product name - description: Product name - tags: - - Products - sourceColumn: product_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/product_name - - id: date.month - type: attribute - attributes: - title: Date - Month/Year - description: Month and Year (12/2020) - tags: - - Date - granularity: MONTH - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.month - - id: products.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Products - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/products.category - - id: customer_id - type: attribute - attributes: - title: Customer id - description: Customer id - tags: - - Customers - sourceColumn: customer_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_id - - id: quantity - type: fact - attributes: - title: Quantity - description: Quantity - tags: - - Order lines - sourceColumn: quantity - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/quantity - - id: campaign_id - type: attribute - attributes: - title: Campaign id - description: Campaign id - tags: - - Campaigns - sourceColumn: campaign_id - sourceColumnDataType: INT - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_id - - id: type - type: attribute - attributes: - title: Type - description: Type - tags: - - Campaign channels - sourceColumn: type - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/type - - id: date.quarter - type: attribute - attributes: - title: Date - Quarter/Year - description: Quarter and Year (Q1/2020) - tags: - - Date - granularity: QUARTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.quarter - - id: spend - type: fact - attributes: - title: Spend - description: Spend - tags: - - Campaign channels - sourceColumn: spend - sourceColumnDataType: NUMERIC - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/facts/spend - - id: campaign_channels.category - type: attribute - attributes: - title: Category - description: Category - tags: - - Campaign channels - sourceColumn: category - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/campaign_channels.category - - id: state - type: attribute - attributes: - title: State - description: State - tags: - - Customers - sourceColumn: state - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/state - - id: date.week - type: attribute - attributes: - title: Date - Week/Year - description: Week and Year (W52/2020) - tags: - - Date - granularity: WEEK - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/date.week - - id: order_status - type: attribute - attributes: - title: Order status - description: Order status - tags: - - Order lines - sourceColumn: order_status - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_status - - id: order_id - type: attribute - attributes: - title: Order id - description: Order id - tags: - - Order lines - sourceColumn: order_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_id - - id: customer_name - type: attribute - attributes: - title: Customer name - description: Customer name - tags: - - Customers - sourceColumn: customer_name - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/customer_name - - id: order_line_id - type: attribute - attributes: - title: Order line id - description: Order line id - tags: - - Order lines - sourceColumn: order_line_id - sourceColumnDataType: STRING - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/attributes/order_line_id - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/datasets?include=attributes%2Cfacts&page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - body: null - headers: - Accept: - - application/vnd.gooddata.api+json - Accept-Encoding: - - br, gzip, deflate - X-GDC-VALIDATE-RELATIONS: - - 'true' - X-Requested-With: - - XMLHttpRequest - response: - status: - code: 200 - message: OK - headers: - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Expose-Headers: - - Content-Disposition, Content-Length, Content-Range, Set-Cookie - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Connection: - - keep-alive - Content-Length: - - '10543' - Content-Security-Policy: - - 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' - ''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com - src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; - img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com - cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com - *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src - ''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src - ''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com - *.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net - matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com - *.wistia.net embedwistia-a.akamaihd.net' - Content-Type: - - application/vnd.gooddata.api+json - DATE: *id001 - Expires: - - '0' - GoodData-Deployment: - - aio - Permission-Policy: - - geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera - 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment - 'none'; - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Server: - - nginx - Vary: - - Origin - - Access-Control-Request-Method - - Access-Control-Request-Headers - X-Content-Type-Options: - - nosniff - X-GDC-TRACE-ID: *id001 - X-XSS-Protection: - - '0' - set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:07 GMT; - Path=/; HTTPOnly; SameSite=Lax - body: - string: - data: - - id: amount_of_active_customers - type: metric - attributes: - title: '# of Active Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/customer_id},{attribute/order_line_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_active_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_orders - type: metric - attributes: - title: '# of Orders' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: SELECT COUNT({attribute/order_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_top_customers - type: metric - attributes: - title: '# of Top Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0' - maql: 'SELECT {metric/amount_of_active_customers} WHERE (SELECT - {metric/revenue} BY {attribute/customer_id}) > 10000 ' - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_top_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: amount_of_valid_orders - type: metric - attributes: - title: '# of Valid Orders' - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.00' - maql: SELECT {metric/amount_of_orders} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/amount_of_valid_orders - meta: - origin: - originType: NATIVE - originId: demo - - id: campaign_spend - type: metric - attributes: - title: Campaign Spend - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/spend}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/campaign_spend - meta: - origin: - originType: NATIVE - originId: demo - - id: order_amount - type: metric - attributes: - title: Order Amount - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT SUM({fact/price}*{fact/quantity}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/order_amount - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue - type: metric - attributes: - title: '% Revenue' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / {metric/total_revenue} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_customers - type: metric - attributes: - title: '% Revenue from Top 10 Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_customers - type: metric - attributes: - title: '% Revenue from Top 10% Customers' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/customer_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_customers - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_percent_products - type: metric - attributes: - title: '% Revenue from Top 10% Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10_percent}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_percent_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_from_top_10_products - type: metric - attributes: - title: '% Revenue from Top 10 Products' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: "SELECT\n (SELECT {metric/revenue} WHERE (SELECT {metric/revenue_top_10}\ - \ BY {attribute/product_id}) > 0)\n /\n {metric/revenue}" - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_from_top_10_products - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_in_category - type: metric - attributes: - title: '% Revenue in Category' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category}, - ALL OTHER) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_in_category - meta: - origin: - originType: NATIVE - originId: demo - - id: percent_revenue_per_product - type: metric - attributes: - title: '% Revenue per Product' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: '#,##0.0%' - maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY ALL - {attribute/product_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/percent_revenue_per_product - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue - type: metric - attributes: - title: Revenue - description: '' - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status} - IN ("Returned", "Canceled")) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-clothing - type: metric - attributes: - title: Revenue (Clothing) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Clothing") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-clothing - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-electronic - type: metric - attributes: - title: Revenue (Electronic) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ( "Electronics") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-electronic - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-home - type: metric - attributes: - title: Revenue (Home) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Home") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-home - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue-outdoor - type: metric - attributes: - title: Revenue (Outdoor) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE {label/products.category} IN - ("Outdoor") - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue-outdoor - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_customer - type: metric - attributes: - title: Revenue per Customer - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT AVG(SELECT {metric/revenue} BY {attribute/customer_id}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_customer - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_per_dollar_spent - type: metric - attributes: - title: Revenue per Dollar Spent - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0.0 - maql: SELECT {metric/revenue} / {metric/campaign_spend} - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_per_dollar_spent - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10 - type: metric - attributes: - title: Revenue / Top 10 - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10 - meta: - origin: - originType: NATIVE - originId: demo - - id: revenue_top_10_percent - type: metric - attributes: - title: Revenue / Top 10% - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue}) - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/revenue_top_10_percent - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue - type: metric - attributes: - title: Total Revenue - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/revenue} BY ALL OTHER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue - meta: - origin: - originType: NATIVE - originId: demo - - id: total_revenue-no_filters - type: metric - attributes: - title: Total Revenue (No Filters) - areRelationsValid: true - createdAt: 2024-10-07 09:14 - content: - format: $#,##0 - maql: SELECT {metric/total_revenue} WITHOUT PARENT FILTER - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics/total_revenue-no_filters - meta: - origin: - originType: NATIVE - originId: demo - links: - self: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=0&size=500 - next: http://localhost:3000/api/v1/entities/workspaces/demo/metrics?page=1&size=500 - - request: - method: GET - uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/7c65767e80f082bb36a613613e4a3e391e233097%3A7d5c3a6219c18bd4222c10cfdf184febccc7ae3c583943208904af3856cc4f08?offset=0%2C0&limit=1%2C1000 + uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/eeb2e7d57c6440483b1546b445e19b7ab49891de%3A4d66e9c28dfb60253522eac141729cbccf551ce926cd3e7e0dc6c7ba666f8081?offset=0%2C0&limit=1%2C1000 body: null headers: Accept: @@ -2266,7 +1560,7 @@ interactions: content-length: - '619' set-cookie: - - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 09:17:07 GMT; + - SPRING_REDIRECT_URI=; Max-Age=0; Expires=Mon, 07 Oct 2024 14:26:32 GMT; Path=/; HTTPOnly; SameSite=Lax body: string: diff --git a/gooddata-sdk/gooddata_sdk/catalog/workspace/content_service.py b/gooddata-sdk/gooddata_sdk/catalog/workspace/content_service.py index 06077085..f0f5b566 100644 --- a/gooddata-sdk/gooddata_sdk/catalog/workspace/content_service.py +++ b/gooddata-sdk/gooddata_sdk/catalog/workspace/content_service.py @@ -103,21 +103,28 @@ def get_full_catalog(self, workspace_id: str, inject_valid_objects_func: bool = return CatalogWorkspaceContent.create_workspace_content_catalog(valid_obj_fun, datasets, attributes, metrics) - def get_attributes_catalog(self, workspace_id: str) -> list[CatalogAttribute]: + def get_attributes_catalog(self, workspace_id: str, include: Optional[list[str]] = None) -> list[CatalogAttribute]: """Retrieve all attributes in a given workspace. Args: workspace_id (str): Workspace identification string e.g. "demo" + include (list[str]): + Entities to include. + Available: datasets, labels, attributeHierarchies, dataset, defaultView, ALL Returns: list[CatalogAttribute]: List of all attributes in a given workspace. """ + available_includes = {"datasets", "labels", "attributeHierarchies", "dataset", "defaultView", "ALL"} + include = include if include is not None else ["labels"] + if not set(include).issubset(available_includes): + raise ValueError(f"Invalid include parameter. Available values: {available_includes}, got: {include}") get_attributes = functools.partial( self._entities_api.get_all_entities_attributes, workspace_id, - include=["labels"], + include=include, _check_return_type=False, ) attributes = load_all_entities(get_attributes)