You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/11/15 14:54:13 UTC

[GitHub] [superset] cleslie opened a new issue, #22127: Import dashboard/assets with overwrite flag does not replace dashboards

cleslie opened a new issue, #22127:
URL: https://github.com/apache/superset/issues/22127

   When importing a dashboard via `/api/v1/dashboard/import/` with the ovewrite flag set to true, the charts within the dashboard are merged with existing charts. I would expect if passing the overwrite flag that whatever you upload would **replace** the existing dashboard. This is useful for a version control where you want the .yml in the repository to exactly reflect what is in the superset database. This is also the same for the `/api/v1/assets/import/` API although this doesn't take an overwrite parameter.
   
   #### How to reproduce the bug
   
   1. Export dashboard with chartA and chartB
   2. Unzip exported file
   3. Edit yml to remove /charts/chartB.yml and remove references to it in /dashboards/dashboard.yml
   4. Zip up files and upload with overwrite flag
   5. Dashboard is updated but still contains both charts
   
   ### Expected results
   
   Expect that dashboards should be replaced when imported and the overwrite flag is passed.
   
   ### Actual results
   
   Imported dashboards seem to be merged with what is already in the database.
   
   #### Screenshots
   
   N/A
   
   ### Environment
   
   (please complete the following information):
   
   - browser type and version: firefox 106.0.5 but this is also the behaviour in the api 
   - superset version: [2.0.1rc2](https://github.com/apache/superset/releases/tag/2.0.1rc2)
   - python version: 3.9.7
   - node.js version: 16.14.2
   - any feature flags active: 
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [ ] I have checked the superset logs for python stacktraces and included it here as text if there are any.
   - [ ] I have reproduced the issue with at least the latest released version of superset.
   - [ ] I have checked the issue tracker for the same issue and I haven't found one similar.
   
   ### Additional context
   
   Slack discussion: https://apache-superset.slack.com/archives/C015WAZL0KH/p1667918679617939


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] ey3ball commented on issue #22127: Import dashboard/assets with overwrite flag does not replace dashboards

Posted by GitBox <gi...@apache.org>.
ey3ball commented on issue #22127:
URL: https://github.com/apache/superset/issues/22127#issuecomment-1316840505

   I'm running into this as well (superset 2.0.0) by using the import / export feature from the UI.
   
   The example given by @cleslie is about removing a chart, but the same things happens for updates : 
   1. Export Dashboard through the UI with chartA, datasetA
   2. Modify dashboard, chartA, datasetA
   3. Import back dashboard file obtained in step 1, OVERWRITE is specified in the UI
   4. Dashboard configuration is rolled back, chartA and datasetA are left in their state after (2)
   
   Manually extracting datasets / charts from the archive, and importing them through the dedicated dataset / chart import tools applies updates as expected
   
   I would add it may be interesting to give the user a chance to select what actually gets updated. For my specific use case I would like charts / datasets to be updated as dependencies of the dashboard, but I need databases to remain untouched (dashboards are moved between staging / production environements which use different source databases)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] musicmuthu commented on issue #22127: Import dashboard/assets with overwrite flag does not replace dashboards

Posted by GitBox <gi...@apache.org>.
musicmuthu commented on issue #22127:
URL: https://github.com/apache/superset/issues/22127#issuecomment-1346559624

   any solution for this issue.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Import dashboard/assets with overwrite flag does not replace dashboards [superset]

Posted by "ashayargal (via GitHub)" <gi...@apache.org>.
ashayargal commented on issue #22127:
URL: https://github.com/apache/superset/issues/22127#issuecomment-1767259255

   Still have this issue
   Will the above PR be reviewed anytime soon?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Import dashboard/assets with overwrite flag does not replace dashboards [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #22127:
URL: https://github.com/apache/superset/issues/22127#issuecomment-1936564901

   https://github.com/apache/superset/pull/23489 aims to fix this, but needs a rebase, a PR description, and some reviews. If anyone wants to review that code, test the solution, or open a rebased PR based on it, please go for it! Thanks in advance :D 
   
   CC @betodealmeida for awareness of import/export issues, as usual :D 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org