GitHub user dosubot[bot] added a comment to the discussion: What happens if i
enable FEATURE FLAG , DASHBOARD_RBAC and VERSIONED_EXPORT =True
<!-- Answer -->
Dashboard role associations (like alpha, gamma) are not included in the
exported YAML, even with DASHBOARD_RBAC and VERSIONED_EXPORT enabled. Here’s a
sample of what the exported dashboard YAML looks like:
```yaml
dashboard_title: "Video Game Sales"
description: null
css: ""
slug: null
uuid: "c7bc10f4-6a2d-7569-caae-bbc91864ee11"
position: { ... } # layout and chart metadata
metadata: { ... } # refresh settings, color schemes, etc.
version: "1.0.0"
```
You won’t see any roles listed in the YAML. Roles are stored in the database
(dashboard_roles table) and managed separately from the export/import process
[reference](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/commands/dashboard/export.py).
If you export and then re-import a dashboard, the role associations will not be
preserved. You’ll need to manually re-assign roles to the dashboard after
import
[reference](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/commands/dashboard/importers/v1/__init__.py).
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do?
[Good](https://app.dosu.dev/response-feedback/910f4816-c1fd-43ef-8bf7-3235e77dc529?feedback_type=great_response)
|
[Irrelevant](https://app.dosu.dev/response-feedback/910f4816-c1fd-43ef-8bf7-3235e77dc529?feedback_type=irrelevant_answer)
|
[Incorrect](https://app.dosu.dev/response-feedback/910f4816-c1fd-43ef-8bf7-3235e77dc529?feedback_type=incorrect_sources)
|
[Verbose](https://app.dosu.dev/response-feedback/910f4816-c1fd-43ef-8bf7-3235e77dc529?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/910f4816-c1fd-43ef-8bf7-3235e77dc529?feedback_type=hallucination)
| [Report
🐛](https://app.dosu.dev/response-feedback/910f4816-c1fd-43ef-8bf7-3235e77dc529?feedback_type=bug_report)
|
[Other](https://app.dosu.dev/response-feedback/910f4816-c1fd-43ef-8bf7-3235e77dc529?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34628)
GitHub link:
https://github.com/apache/superset/discussions/34628#discussioncomment-14054856
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]