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/20 15:50:33 UTC
[PR] fix(soft-delete): show Recently Archived in the menu to everyone who can open it [superset]
mikebridge opened a new pull request, #45523:
URL: https://github.com/apache/superset/pull/45523
### SUMMARY
**What users saw.** Owners who could open Recently Archived sometimes had no entry for it in Settings. Without a menu entry, they had to find a direct link again when they wanted to recover something later.
**Why, in plain terms.** The page and the menu use different rules. Reading an archived item can be allowed even when the user cannot see the Manage section or its Recently Archived entry.
**What this changes.** Users who can open the page get a Recently Archived entry under Settings → User when it is missing from the existing Settings menu. Users who already have it under Manage keep that entry without a duplicate. Page and object permissions remain unchanged.
### IMPLEMENTATION DETAILS
The page and a new boolean in the existing navbar bootstrap payload share the same admission predicate: the archive feature is enabled, the viewer is authenticated, and the viewer can read charts, dashboards or datasets. The Settings dropdown uses that boolean and checks the stable server menu-item name before adding its fallback. The link respects the configured application root.
No FAB menu permissions, role definitions, security-manager overrides, or endpoints change. Existing direct links remain available.
### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before: readers without the Manage menu or archive menu entry had no persistent Settings link.
After: those readers get the link in the User section; readers with the existing entry keep it under Manage. Automated DOM tests cover presence and duplicate prevention; no browser screenshots captured.
### TESTING INSTRUCTIONS
1. Enable `SOFT_DELETE`. As an authenticated user who can read at least one archived type but lacks Manage or Recently Archived menu access, open Settings and verify one Recently Archived link under User.
2. As a user with both menu permissions, verify the existing Manage entry remains and there is no User duplicate. Repeat with translated labels.
3. Verify no fallback is shown with the feature disabled, with no readable archived type, or for anonymous users.
4. Repeat under an application URL prefix and verify the fallback opens the archive page.
5. Verify the page retains its flag-off 404, anonymous login redirect, and 403 for users without read permission. Recover/purge and object access retain their existing checks.
Validation: 74 focused backend tests and 81 frontend tests (plus two snapshots) pass. Changed-file hooks include MyPy and frontend type checking. The existing translation catalog matches a fresh extraction.
### ADDITIONAL INFORMATION
- [ ] Has associated issue:
- [x] Required feature flags: `SOFT_DELETE`
- [x] Changes UI
- [ ] Includes DB Migration
- [ ] Introduces new feature or API
- [ ] Removes existing feature or API
Reuses the existing Recently Archived translation string. Documentation describes both menu placements.
--
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): show Recently Archived in the menu to everyone who can open it [superset]
Posted by "aminghadersohi (via GitHub)" <gi...@apache.org>.
aminghadersohi merged PR #45523:
URL: https://github.com/apache/superset/pull/45523
--
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): show Recently Archived in the menu to everyone who can open it [superset]
Posted by "netlify[bot] (via GitHub)" <gi...@apache.org>.
netlify[bot] commented on PR #45523:
URL: https://github.com/apache/superset/pull/45523#issuecomment-6295049481
### <span aria-hidden="true">✅</span> Deploy Preview for *superset-docs-preview* ready!
| Name | Link |
|:-:|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | d1781ff5dc4cf08e98a7078dfd7fe6960017fa9d |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/projects/superset-docs-preview/deploys/6ad78dc872568485643ced8d |
|<span aria-hidden="true">😎</span> Deploy Preview | [https://deploy-preview-45523--superset-docs-preview.netlify.app](https://deploy-preview-45523--superset-docs-preview.netlify.app) |
|<span aria-hidden="true">📱</span> Preview on mobile | <details><summary> Toggle QR Code... </summary><br /><br /><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#DcpLCoAgEADQu8w6F1nq0A06hs0MGOQHrSCiu-fuLd4LpeZYTlgABtiqTxS6G6lRox1R-Uphv4VVlHQpTySt9clSjvys3K_17JAJnTYWZzR2nkgYGb4f) |
---
<!-- [superset-docs-preview Preview](https://deploy-preview-45523--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): show Recently Archived in the menu to everyone who can open it [superset]
Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on PR #45523:
URL: https://github.com/apache/superset/pull/45523#issuecomment-6297435039
## CodeAnt PR Risk: Low Risk
- The PR appears safe to merge; the fallback link uses the same feature, authentication, and read-permission checks as the archive page.
- The added tests cover archive access conditions, translated existing links, and application-root URL handling.
**Assessed commit:** `c45ec151839a`
--
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): show Recently Archived in the menu to everyone who can open it [superset]
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #45523:
URL: https://github.com/apache/superset/pull/45523#issuecomment-6295606588
## [Codecov](https://app.codecov.io/gh/apache/superset/pull/45523?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 64.92%. Comparing base ([`0a17a75`](https://app.codecov.io/gh/apache/superset/commit/0a17a75f9a87fd689b59010d506e122b156c35bf?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`d1781ff`](https://app.codecov.io/gh/apache/superset/commit/d1781ff5dc4cf08e98a7078dfd7fe6960017fa9d?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 3 commits behind head on master.
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## master #45523 +/- ##
==========================================
- Coverage 65.15% 64.92% -0.23%
==========================================
Files 3053 3053
Lines 200640 200648 +8
Branches 46820 46822 +2
==========================================
- Hits 130719 130268 -451
- Misses 66981 67436 +455
- Partials 2940 2944 +4
```
| [Flag](https://app.codecov.io/gh/apache/superset/pull/45523/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
|---|---|---|
| [hive](https://app.codecov.io/gh/apache/superset/pull/45523/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `34.91% <75.00%> (+<0.01%)` | :arrow_up: |
| [javascript](https://app.codecov.io/gh/apache/superset/pull/45523/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `79.36% <100.00%> (+<0.01%)` | :arrow_up: |
| [mysql](https://app.codecov.io/gh/apache/superset/pull/45523/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [postgres](https://app.codecov.io/gh/apache/superset/pull/45523/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [presto](https://app.codecov.io/gh/apache/superset/pull/45523/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `36.66% <75.00%> (+<0.01%)` | :arrow_up: |
| [python](https://app.codecov.io/gh/apache/superset/pull/45523/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `52.75% <100.00%> (-0.41%)` | :arrow_down: |
| [sqlite](https://app.codecov.io/gh/apache/superset/pull/45523/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `52.64% <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/45523?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