You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "fvazquez-sgs (via GitHub)" <gi...@apache.org> on 2025/10/23 16:01:50 UTC
[I] Delete dashboard in main page doesnt reload interface [superset]
fvazquez-sgs opened a new issue, #35819:
URL: https://github.com/apache/superset/issues/35819
### Bug description
On the main page, there is an option to delete a Dashboard:
<img width="853" height="271" alt="Image" src="https://github.com/user-attachments/assets/69221157-b397-4f27-ad06-14867bf302dd" />
Clicking "Delete" creates an AJAX connection that removes the panel from the database and works correctly:
<img width="883" height="434" alt="Image" src="https://github.com/user-attachments/assets/72009b03-46d7-4ec8-9973-6f445e784d53" />
The object is deleted from the database, but the HTML element is not. It's still there:
<img width="820" height="238" alt="Image" src="https://github.com/user-attachments/assets/ed1794f9-5bc4-4803-9473-17b85fc32e72" />
No JavaScript errors are reported in the console:
<img width="688" height="351" alt="Image" src="https://github.com/user-attachments/assets/6f94c8fe-7613-4f53-8250-3fa84a491e93" />
### Screenshots/recordings
_No response_
### Superset version
master / latest-dev
### Python version
3.9
### Node version
16
### Browser
Chrome
### Additional context
_No response_
### Checklist
- [ ] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [ ] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
--
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
Re: [I] Delete dashboard in main page doesnt reload interface [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #35819:
URL: https://github.com/apache/superset/issues/35819#issuecomment-3457572517
We're very open to a PR here, as we at Preset don't actually use this PR so people won't prioritize it from our side. Others might, but contributions are always welcome/encouraged.
--
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] Delete dashboard in main page doesnt reload interface [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #35819:
URL: https://github.com/apache/superset/issues/35819#issuecomment-3437866068
<!-- Answer -->
The backend deletion works, but the dashboard card stays visible because the frontend isn't refreshing its state after the delete. Superset relies on the `handleDashboardDelete` function to make the DELETE request and then refresh the dashboard list in the UI. If the UI doesn't update, it's likely due to a missing state refresh, cache/memoization issue, or a bug in the dashboard list component. Ensuring that the dashboard list is re-fetched or the local state is updated after a successful delete should resolve this. You can check the implementation of `handleDashboardDelete` and the dashboard list component for proper state management and cache invalidation logic. More details on this pattern are discussed [here](https://github.com/apache/superset/issues/32533#issuecomment-2704731182).
<!-- 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/15cb3c50-28c1-45ca-aed2-d41b89739a66?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/15cb3c50-28c1-45ca-aed2-d41b89739a66?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/15cb3c50-28c1-45ca-aed2-d41b89739a66?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/15cb3c50-28c1-45ca-aed2-d41b89739a66?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/15cb3c50-28c1-45ca-aed2-d41b89739a66?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/15cb3c50-28c1-45ca-aed2-d41b89739a66?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/15cb3c50-28c1-45ca-aed2-d41b89739a66?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu
b) [](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/issues/35819)
--
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] Delete dashboard in main page doesnt reload interface [superset]
Posted by "fvazquez-sgs (via GitHub)" <gi...@apache.org>.
fvazquez-sgs commented on issue #35819:
URL: https://github.com/apache/superset/issues/35819#issuecomment-3441322299
Yes, the delete action works perfectly. The error is that the graphical interface doesn't refresh.
If I reload the page, the deleted card doesn't appear in the panel.
--
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] Delete dashboard in main page doesnt reload interface [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #35819: Delete dashboard in main page doesnt reload interface
URL: https://github.com/apache/superset/issues/35819
--
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