You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "mikebridge (via GitHub)" <gi...@apache.org> on 2026/10/16 17:40:08 UTC

[PR] fix(soft-delete): use archive wording on card views and remaining delete prompts [superset]

mikebridge opened a new pull request, #45388:
URL: https://github.com/apache/superset/pull/45388

   ### SUMMARY
   
   **TL;DR:** The chart, dashboard, and dataset delete controls now say “Archive” when soft delete makes the action recoverable. **Background:** Superset already uses archive wording in the main list confirmations. **Problem:** Several card actions, dashboard card confirmations, and disabled permission hints still described that same action as permanent deletion. **What this changes:**
   
   - Uses the existing Archive/Delete action-label helper on dashboard cards.
   - Gives dashboard card dialogs the existing archive title, recoverability explanation, and confirmation mode when soft delete is enabled.
   - Uses archive wording in disabled chart, dashboard, and dataset permission hints.
   - Preserves Delete wording and the type-DELETE confirmation when soft delete is disabled. Semantic views remain permanently deleted and retain Delete wording.
   
   The detailed design follows: these are frontend copy and confirmation settings for existing delete requests; no API or persistence behavior changes.
   
   | Surface | Soft delete enabled, before | Soft delete enabled, after | Soft delete disabled |
   | --- | --- | --- | --- |
   | Dashboard card action | Delete | Archive | Delete |
   | Dashboard card confirmation | “Please confirm” and type DELETE | “Archive <dashboard>?” and recoverability explanation; no typing gate | Unchanged “Please confirm” and type DELETE |
   | Disabled chart/dashboard/dataset action | “in order to delete” | “in order to archive” | Unchanged “in order to delete” |
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   
   Text-only changes are summarized in the table above.
   
   ### TESTING INSTRUCTIONS
   
   1. Enable `SOFT_DELETE`. Open a dashboard card’s action menu from Home and the dashboard list card view. Confirm the action says **Archive**, the dialog names the dashboard, explains Recently Archived recovery, and does not require typing DELETE.
   2. With `SOFT_DELETE` disabled, repeat those flows. Confirm they say **Delete** and still require typing DELETE.
   3. With write permission but without editorship, hover disabled chart, dashboard, and dataset delete controls in card/list views. Confirm the hint says **archive** with the flag on and **delete** with it off.
   4. Automated verification: 7 focused Jest suites passed (104 tests). Changed-file pre-commit passed, including targeted TypeScript checking.
   
   ### ADDITIONAL INFORMATION
   
   - [ ] Has associated issue:
   - [x] Required feature flags: `SOFT_DELETE`
   - [x] Changes UI
   - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   


-- 
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: [PR] fix(soft-delete): use archive wording on card views and remaining delete prompts [superset]

Posted by "mikebridge (via GitHub)" <gi...@apache.org>.
mikebridge closed pull request #45388: fix(soft-delete): use archive wording on card views and remaining delete prompts
URL: https://github.com/apache/superset/pull/45388


-- 
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: [PR] fix(soft-delete): use archive wording on card views and remaining delete prompts [superset]

Posted by "netlify[bot] (via GitHub)" <gi...@apache.org>.
netlify[bot] commented on PR #45388:
URL: https://github.com/apache/superset/pull/45388#issuecomment-6222187581

   ### <span aria-hidden="true">✅</span> Deploy Preview for *superset-docs-preview* ready!
   
   
   |  Name | Link |
   |:-:|------------------------|
   |<span aria-hidden="true">🔨</span> Latest commit | f4bea151bbfcc29d80c7ddbf29604a05461079c8 |
   |<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/projects/superset-docs-preview/deploys/6ad26d7ab340e83d22315fef |
   |<span aria-hidden="true">😎</span> Deploy Preview | [https://deploy-preview-45388--superset-docs-preview.netlify.app](https://deploy-preview-45388--superset-docs-preview.netlify.app) |
   |<span aria-hidden="true">📱</span> Preview on mobile | <details><summary> Toggle QR Code... </summary><br /><br />![QR Code](https://app.netlify.com/qr-code/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1cmwiOiJodHRwczovL2RlcGxveS1wcmV2aWV3LTQ1Mzg4LS1zdXBlcnNldC1kb2NzLXByZXZpZXcubmV0bGlmeS5hcHAifQ.nrXoDh0AFUHYSPBsMR5K5BtWYanuMtgvfE3VUouc6YA)<br /><br />_Use your smartphone camera to open QR code link._</details> |
   |<span aria-hidden="true">🤖</span> Make changes | [Run an agent on this branch](https://app.netlify.com/projects/superset-docs-preview/agent-runs#DcpBCoAgEEDRu8w6IbVUukHHGJ0Rg0qxCCS6e-7-h_dCqfkoNywAA_iKZ0i9ryCksnpyIuTKAmtI28N9SuuMuOy5rdShQVKGLHo9jew0KaXlHDnC9wM) |
   ---
   <!-- [superset-docs-preview Preview](https://deploy-preview-45388--superset-docs-preview.netlify.app) -->
   _To edit notification comments on pull requests, go to your [Netlify project configuration](https://app.netlify.com/projects/superset-docs-preview/configuration/notifications#deploy-notifications)._


-- 
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: [PR] fix(soft-delete): use archive wording on card views and remaining delete prompts [superset]

Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #45388:
URL: https://github.com/apache/superset/pull/45388#issuecomment-6221748963

   ## [Codecov](https://app.codecov.io/gh/apache/superset/pull/45388?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :white_check_mark: All modified and coverable lines are covered by tests.
   :white_check_mark: Project coverage is 83.50%. Comparing base ([`19bb094`](https://app.codecov.io/gh/apache/superset/commit/19bb09461dc3e612a27191b0e55baeb495a680da?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`3ba12b3`](https://app.codecov.io/gh/apache/superset/commit/3ba12b34451472c20404a87ee05ff6fdbda0546c?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   :warning: Report is 1 commits behind head on master.
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   ```diff
   @@           Coverage Diff           @@
   ##           master   #45388   +/-   ##
   =======================================
     Coverage   83.49%   83.50%           
   =======================================
     Files        3047     3047           
     Lines      199523   199543   +20     
     Branches    46554    46572   +18     
   =======================================
   + Hits       166597   166630   +33     
   + Misses      29699    29686   -13     
     Partials     3227     3227           
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/superset/pull/45388/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [javascript](https://app.codecov.io/gh/apache/superset/pull/45388/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `79.24% <100.00%> (+0.01%)` | :arrow_up: |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
   </details>
   
   [:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/superset/pull/45388?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


-- 
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: [PR] fix(soft-delete): use archive wording on card views and remaining delete prompts [superset]

Posted by "mikebridge (via GitHub)" <gi...@apache.org>.
mikebridge commented on PR #45388:
URL: https://github.com/apache/superset/pull/45388#issuecomment-6223386389

   Closing in favor of #45302, which now includes these changes (the disabled-button hover text for charts, dashboards and datasets, plus the regenerated translation template). The dialog changes here duplicated what #45302 already had.


-- 
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