Replies: 2 comments 2 replies
-
Hey @ampil! 👋 I'm here to help you with any questions or issues you have. I can assist with bugs, answer your questions, and even guide you on becoming a contributor. Let's tackle this together! The best practices for storing Superset dashboards in Git for version control include:
Here is a more efficient way to handle this process:
Example code snippet to export dashboards: from superset.commands.dashboard.export import ExportDashboardsCommand
# Export a specific dashboard by its ID
dashboard_id = 1 # Replace with the actual dashboard ID
export_command = ExportDashboardsCommand([dashboard_id])
for file_name, file_content_callable in export_command.run():
file_content = file_content_callable()
with open(file_name, 'w') as file:
file.write(file_content) This approach leverages the existing |
Beta Was this translation helpful? Give feedback.
-
Our team explored two competing approaches for organizing dashboard configuration files. Approach 1: Centralized Directory StructureIn this approach, all dashboard YAML files were stored in a common folder hierarchy, as follows:
Approach 2: Individual Dashboard FoldersThis approach involved creating a separate folder for each dashboard, organizing data as follows:
DecisionWe opted for the second approach. It offers several significant advantages over the first:
Hope it helps other Superset fellows :) |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I'm exploring the best practices for storing Superset dashboards in Git for version control purposes.
I haven’t come across many articles or discussions on this topic, so I wanted to reach out to the community for guidance.
Currently, my team and I follow this approach:
Legal_Information_40.yaml
becomesLegal_Information.yaml
)As a result, each folder has a bunch of YAML-files. We don't store zip-archives.
Does this workflow align with best practices, or is there a more efficient way to handle version control for Superset dashboards? Any feedback, suggestions, or resources would be greatly appreciated!
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions