Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track dashboard's “draft/published” status in CLI import/export #17662

Closed
EBoisseauSierra opened this issue Dec 6, 2021 · 2 comments
Closed
Labels
enhancement:request Enhancement request submitted by anyone from the community

Comments

@EBoisseauSierra
Copy link
Contributor

Problem

I build dashboards on a “dev” instance, export them, and import the archive on the “prod” one; all via CLI.
On dev, I change the status of some of the dashboards from draft to published.

However, the dashboard's YAML file in the export does not include any mention of the dashboard “draft/published” status.

So I then need to manually publish the imported dashboards on prod again.

Wished solution

I would like that the imported dashboards have the same “draft/published” status as their exported counterpart.

Practically, this means that I would like to:

  • be able to track the “draft/published” status of a dashboard in its YAML file in the export,
  • be able to set the “draft/published” status of an imported dashboard, based on the imported YAML file data.

Alternative

Manual work… but I'm afraid I'm lazy 😉

Additional context

Both dev and prod are running Superset 1.3.2, alongside the following feature flags:

FEATURE_FLAGS = {
    "VERSIONED_EXPORT": True,
}
@EBoisseauSierra
Copy link
Contributor Author

I understand that this may not always be wanted (e.g. to proof review imported dashboards prior to publication on prod)… so this feature could be activated as an optional flag in the export and/or import CLI.

@srinify
Copy link
Contributor

srinify commented Dec 12, 2021

FWIW @EBoisseauSierra it looks like the Superset API will return the published status for the GET /dashboard/ route for example:

https://superset.apache.org/docs/rest-api

@geido geido added the enhancement:request Enhancement request submitted by anyone from the community label Jan 25, 2022
@apache apache locked and limited conversation to collaborators Feb 2, 2022
@geido geido converted this issue into discussion #18534 Feb 2, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
enhancement:request Enhancement request submitted by anyone from the community
Projects
None yet
Development

No branches or pull requests

3 participants