Is it possible to create a child workspace but wit...
# gooddata-cloud
f
Is it possible to create a child workspace but without workspace filters? I want to create a workspace for internal users, but I don't want them to have any workspace data filters (like other children have).
j
Hi Filip, Definitely, there is nothing which would prevent you from creating child workspaces without any data permissions. Whether you implement them or not is completely up to you.
f
but the workspace data filter exists on the parent - so it passes down to its children automatically no?
j
workspace data filters are created on parent workspace, but set on child workspaces, so if you don’t create the data filter setting in child workspace, no filters will be applied.
unless we are talking about some deeper hierarchy with multiple levels?
f
its just one level. I created a child workspace via UI - don't see any filters applied, but it still crashes
j
I think this might be some different error, probably not related to data filters
do you have some traceID from the console?
f
Copy code
{
  "title": "Bad Request",
  "status": 400,
  "detail": "Workspace data filter values for workspace='zentist-main' are empty and the current workspace='50810b0923ce4518a0b13ce2e7de8bbc' does not match the WDF workspace. This check is in place to prevent you from forgetting to filter values in a new child workspace. Either remove the workspace data filter or add some filtered values.",
  "traceId": "5f05cda0839921b88333428fc1e11390"
}
j
Ah yes, my bad! Just tested it on my end. If you already create filters in parent workspace, you will need to define some filter setting in its child workspaces.
maybe a workaround would be to define the filter setting for all the possible attributes.
1
In case you would like to submit this as product feedback, please let me know. Although I believe the current setting makes sense. But we can always consider any suggestions.
f
I've never applied more than 1 value - is this right? it crashes
👀 1
or does it need to belike
["1"],["2"],["3"],
etc?
j
no, that is not the correct syntax, I’ll get back to you shortly.
sry, back now. The syntax should look like this
Copy code
"filterValues": [
        "\"Iowa\"", "\"Kansas\""
      ]
f
but my values are just integers, they don't have
"
in them. Current working filter works like this:
Copy code
"filterValues": [
        "43"
      ]
j
with single value yes, but with multiple values, you need to use
\"
1
To include a literal double quote inside the string (which is already quoted), you need to escape it with a backslash (
\
).