Otília Porubiaková
05/16/2024, 3:28 PMJoseph Heun
05/16/2024, 3:36 PMOtília Porubiaková
05/16/2024, 3:39 PMJoseph Heun
05/16/2024, 6:08 PMJoseph Heun
05/16/2024, 6:23 PMOtília Porubiaková
05/16/2024, 6:35 PMJakub Vajda
05/17/2024, 11:17 AM<https://i.ibb.co/5rgD8wc/Fravebot-logo-grey-bez-napisu.png>
this means, that if you would like to embed it from here, you need to allow img-src
CSP directive for above address.
Can you give that a try?Otília Porubiaková
05/17/2024, 11:22 AMJakub Vajda
05/17/2024, 11:35 AMOtília Porubiaková
05/17/2024, 12:30 PMOtília Porubiaková
06/10/2024, 3:40 PMJakub Vajda
06/10/2024, 3:42 PMOtília Porubiaková
06/10/2024, 3:43 PMJakub Vajda
06/10/2024, 3:43 PMOtília Porubiaková
06/10/2024, 3:44 PMOtília Porubiaková
06/10/2024, 3:47 PMJakub Vajda
06/10/2024, 3:49 PMNetwork
tab. Is there any item signed in red font color?Otília Porubiaková
06/10/2024, 3:50 PMJakub Vajda
06/10/2024, 3:52 PMOtília Porubiaková
06/10/2024, 3:52 PMJakub Vajda
06/10/2024, 3:58 PMOtília Porubiaková
06/10/2024, 4:00 PMOtília Porubiaková
07/16/2024, 9:24 AMJakub Vajda
07/16/2024, 10:52 AMWorkspaces
(whether to view or edit content inside), for the Dashboard, you need to go one by one inside that particular workspace, upper right corner a button to share each of them.
As for the data filters is a bit different story, all of them need to be set up via API interface:
• I presume you are after user filtering. This one is set up again per each workspace, sending a POST request as below (I will try to rewrite as much customised for your case as possible - I do not know the workspace id)
• Please be aware you need to use MAQL for the actual filtering - you refer to current attribute value (more details here)
### Create new User Data Filter
POST {{host}}/api/v1/entities/workspaces/{{workspace_id}}/userDataFilters
Content-Type: application/vnd.gooddata.api+json
Authorization: Bearer {{token}}
{
"data": {
"type": "userDataFilter",
"id": "filter_dominik",
"attributes": {
"maql": "{label/your_category} = \"Somevalue\"",
"title": "Status filter"
},
"relationships": {
"user": {
"data": {
"id": "dominik.konicek.673...",
"type": "user"
}
}
}
}
}
Otília Porubiaková
07/16/2024, 2:36 PMJakub Vajda
07/16/2024, 6:10 PMOtília Porubiaková
07/17/2024, 5:40 AMJakub Vajda
07/17/2024, 7:46 AMpip3 install gooddata-sdk
from gooddata_sdk import GoodDataSdk, CatalogDeclarativeUserDataFilters, CatalogDeclarativeUserDataFilter
from gooddata_sdk.catalog.identifier import CatalogUserIdentifier
sdk = GoodDataSdk.create(host_url, api_token)
filter_list = [
{"entity_id": "john.doe", "entity_type": "user", "filter_field": "city", "filter_value": "Alabama"},
#{"entity_id": "", "entity_type": "user", "filter_field": "", "filter_value": ""},
#{"entity_id": "", "entity_type": "user", "filter_field": "", "filter_value": ""},
]
udf_prepare = []
for fl in filter_list:
udf_prepare.append(
CatalogDeclarativeUserDataFilter(
id=f'filter-{fl["entity_id"]}',
title="Programatically created UDF",
maql=f'{{label/{fl["filter_field"]}}} = "{fl["filter_value"]}"',
user=CatalogUserIdentifier(
id=fl["entity_id"],
type=fl["entity_type"]
)
)
)
sdk.catalog_workspace.put_declarative_user_data_filters(
workspace_id=workspace_id,
user_data_filters=CatalogDeclarativeUserDataFilters(
user_data_filters=udf_prepare
)
)