Skip to content

fix(security): delete deprecated permissions left over after upgrades - #44142

Merged
rusackas merged 17 commits into
apache:masterfrom
Ujjwaljain16:fix/deprecated-permissions-cleanup-33272
Sep 23, 2026
Merged

rusackas merged 17 commits into
apache:masterfrom
Ujjwaljain16:fix/deprecated-permissions-cleanup-33272

Conversation

@Ujjwaljain16

@Ujjwaljain16 Ujjwaljain16 commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

SUMMARY

Deprecated permissions are never cleaned up after an upgrade (#33272). superset init → sync_role_definitions creates missing permissions and runs clean_perms, but clean_perms only ever deletes PermissionView rows whose Permission/ViewMenu foreign keys are NULL — it never removes well-formed PVMs whose underlying endpoint/method has since been deleted from the codebase. can_select_star (the reporter's example) is one of many such permissions that silently accumulate on every upgraded install while never appearing on a fresh one.

The maintainer thread on the issue correctly flagged the risk here: a naive "delete everything not in a hardcoded current-permissions allow-list" approach could delete permissions a custom role or an installed extension still legitimately needs, since Superset has no built-in way to distinguish "genuinely dead" from "just not used by a built-in role." This PR deliberately avoids that failure mode:

  • No generic sweep, no allow-list. Both migrations target an explicit, individually-verified list of (view_menu, permission) pairs. There is no "find by permission name" logic anywhere, so the per-object database_access/datasource_access/schema_access/catalog_access permissions — which are legitimately reused across many view menus (one per Database/SqlaTable/schema/catalog) — are structurally unreachable by this code, not just excluded by convention.
  • Every candidate was individually verified, not inferred from "absent from a live DB." Each of the 25 pure-deletion candidates was cross-checked against current superset/views/API code, the entire superset/migrations/ history (to rule out double-handling), and UPDATING.md's actual PR history for the underlying feature removal. Anything without affirmative "removed, not renamed" evidence was left out, even when it looked plausible.
  • Renames preserve role assignments. 12 permissions were deprecated by being consolidated onto a permission that already exists on current master (mostly the ModelRestApi migration of the old monolithic Superset view — e.g. can_explore_json → can_read on Chart). These use the existing migrate_roles() machinery unmodified, so a role holding the old permission is moved onto the verified live successor rather than just losing it. Two of these mappings also correct an actual inaccuracy in UPDATING.md itself (can_sql_json/can_results's stated successors don't exist in a live DB; the real ones, confirmed by querying ab_permission/ab_permission_view, are can_execute_sql_query/can_get_results on SQLLab).

Implementation-wise, migrate_roles() can't express a pure deletion with no successor (an empty replacement tuple is silently never processed — confirmed by reading the function), so this adds one small new helper, delete_pvms(), to the existing superset/migrations/shared/security_converge.py module. It reuses _delete_old_permissions()'s existing orphan-safe deletion logic (delete the PermissionView, then the Permission/ViewMenu only if no other PVM still references them) rather than duplicating it, and does its own role-unassignment pass first. migrate_roles(), clean_perms(), and FAB's security_cleanup() are all untouched.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Not applicable — this is a backend/migration-only change with no UI impact.

TESTING INSTRUCTIONS

  • pytest tests/unit_tests/migrations/shared/security_converge_test.py — 7 tests covering delete_pvms() directly: removal + role-association cleanup, orphan deletion, shared-permission preservation, idempotency (running twice is a safe no-op), and that a dynamic/object-style permission is left untouched because it's simply never in the explicit input list.
  • pytest tests/unit_tests/migrations/test_deprecated_permissions_33272.py — 4 tests that import the two actual migration modules and exercise their real PVM_LIST/PVM_MAP (not hand-copied subsets), so editing either list in the future automatically re-exercises the updated data.
  • pytest tests/unit_tests/migrations/ — full suite, 154 passed, no regressions.
  • Manually verified end-to-end on a disposable database: superset db upgrade from a fresh install runs both migrations cleanly and lands on a single new head with no branching; superset db downgrade back past both migrations also completes without error (both downgrade()s are intentionally documented no-ops, since there's nothing meaningful to restore for a pure deletion, and reversing the renames would strip active permissions from roles).
  • ruff format --check / ruff check clean on all changed files.

ADDITIONAL INFORMATION

  • Has associated issue: Fixes Deprecated permissions are not deleted after upgrade #33272
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • 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

Runtime/downtime note: both migrations only touch ab_permission/ab_view_menu/ab_permission_view/ab_permission_view_role rows for a fixed, small (37 total) set of named permissions — not a table scan — so runtime is negligible regardless of instance size, and no downtime is expected.

superset init -> sync_role_definitions creates missing permissions and
runs clean_perms, but clean_perms only ever deletes PermissionView rows
whose Permission/ViewMenu foreign keys are NULL. It never removes
well-formed PVMs whose underlying endpoint/method has since been
removed from the codebase, so permissions deprecated over many past
releases (can_select_star being the reported example) silently persist
forever across upgrades.

This adds a new delete_pvms() helper to the existing, actively-used
security_converge.py shared module (previously only migrate_roles()
existed, which cannot express a pure deletion with no successor - an
empty replacement tuple is silently never processed), plus two chained
migrations:

- One pure-deletion migration for 25 permissions individually
  confirmed to have no successor (endpoint/method deleted outright,
  not renamed), verified against current code, the full migrations
  history, and UPDATING.md.
- One rename migration, using the existing unmodified migrate_roles(),
  for 12 permissions that were consolidated onto a verified live
  successor (e.g. can_explore_json -> can_read on Chart), so role
  assignments are preserved rather than dropped.

Both migrations target explicit (view_menu, permission) pairs only,
never a name-based sweep, so the per-object database_access /
datasource_access / schema_access / catalog_access permissions -
reused across many view menus - are structurally unreachable by
either migration.

Fixes apache#33272
@bito-code-review

bito-code-review Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #33fffa

Actionable Suggestions - 0
Additional Suggestions - 1
  • superset/migrations/versions/2026-09-10_00-00_1f5f4fb8bfc1_delete_deprecated_permissions_33272.py - 1
    • Stale permission reference · Line 87-87
      This migration deletes the ("Superset", "can_test_conn") PVM, but `security/manager.py:1894` still lists ("can_test_conn", "Superset") in `SQLLAB_ONLY_PERMISSIONS`, consumed by `_is_sql_lab_only`. That entry is now dead data contradicting the migration's cleanup intent. Consider removing it in the same change.
Review Details
  • Files reviewed - 5 · Commit Range: 119195e..119195e
    • superset/migrations/shared/security_converge.py
    • superset/migrations/versions/2026-09-10_00-00_1f5f4fb8bfc1_delete_deprecated_permissions_33272.py
    • superset/migrations/versions/2026-09-10_00-01_3ce9a4572f8a_rename_deprecated_permissions_33272.py
    • tests/unit_tests/migrations/shared/security_converge_test.py
    • tests/unit_tests/migrations/test_deprecated_permissions_33272.py
  • Files skipped - 0
  • Tools
    • MyPy (Static Code Analysis) - ✔︎ Successful
    • Astral Ruff (Static Code Analysis) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers an incremental AI Review.

  • /review full - Manually triggers a full AI Review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@github-actions github-actions Bot added the risk:db-migration PRs that require a DB migration label Sep 10, 2026
@netlify

netlify Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit d1bbb6d
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6ab2e95831c1e800087dca0e
😎 Deploy Preview https://deploy-preview-44142--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 81.25000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.90%. Comparing base (7024401) to head (77e3942).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
superset/migrations/shared/security_converge.py 81.25% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master   #44142   +/-   ##
=======================================
  Coverage   80.90%   80.90%           
=======================================
  Files        2948     2948           
  Lines      177121   177137   +16     
  Branches    41054    41060    +6     
=======================================
+ Hits       143304   143317   +13     
- Misses      31118    31119    +1     
- Partials     2699     2701    +2     
Flag Coverage Δ
hive 36.95% <12.50%> (-0.01%) ⬇️
mysql 56.19% <12.50%> (-0.01%) ⬇️
postgres 56.19% <12.50%> (-0.02%) ⬇️
presto 38.89% <12.50%> (-0.01%) ⬇️
python 85.20% <81.25%> (-0.01%) ⬇️
sqlite 55.91% <12.50%> (-0.01%) ⬇️
unit 77.41% <81.25%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@rusackas

Copy link
Copy Markdown
Member

@Ujjwaljain16 nice work tracking down the actual removed/renamed permissions here, the migration docstrings are thorough.

Pre-commit's failing for real though: security_converge_test.py:202 passes a dict[Pvm, tuple[Pvm]] where migrate_roles expects dict[Pvm, tuple[Pvm, ...]], dicts are invariant so mypy rejects it. Once that's fixed I think this is good to go. I'll see about making that touchup...

migrate_roles() expects dict[Pvm, tuple[Pvm, ...]], but the inline dict
literal in test_migrate_roles_renames_permission_and_migrates_role was
inferred as dict[Pvm, tuple[Pvm]] -- a fixed-length one-tuple type, not
the variadic form -- since dict is invariant in its value type, mypy
correctly rejects passing the narrower inferred type where the wider
one is expected.

Annotating the local with the existing PvmMigrationMapType alias (used
elsewhere in security_converge.py for exactly this purpose) resolves
it with no behavior change.

Confirmed via: mypy --check-untyped-defs on the file reports no issues.
…SSIONS

("can_test_conn", "Superset") has been marked "Deprecated permission
remove on 3.0.0" in this set literal since before 3.0.0, but was never
actually removed. This PR's deletion migration removes the underlying
PVM from the database, so leaving the entry here would contradict the
cleanup by keeping dead data in the one place that already knew about
it. _is_sql_lab_only() only checks set membership against PVMs that
still exist, so removing an entry whose PVM is gone changes nothing at
runtime.

Flagged by automated review on apache#44142.
@Ujjwaljain16

Copy link
Copy Markdown
Contributor Author

@rusackas
ci is green
thanks for the review

@bito-code-review

bito-code-review Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #0d2e2f

Actionable Suggestions - 0
Review Details
  • Files reviewed - 2 · Commit Range: 119195e..12c35a4
    • tests/unit_tests/migrations/shared/security_converge_test.py
    • superset/security/manager.py
  • Files skipped - 0
  • Tools
    • MyPy (Static Code Analysis) - ✔︎ Successful
    • Astral Ruff (Static Code Analysis) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers an incremental AI Review.

  • /review full - Manually triggers a full AI Review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@rebenitez1802

Copy link
Copy Markdown
Contributor

Request changes: genuinely high-quality migration — helper logic is sound, the security model is intact (no privilege escalation/loss in any of the 12 renames), the alembic chain is clean (single head, chains correctly), and every one of the 25 deletions I could confirm dead is dead. But two entries carry the wrong permission name and silently no-op, and one of those loses a custom-role grant it was meant to preserve. Note: despite the fix(security) title, none of these are security-boundary issues — the worst real impact is incomplete cleanup + one dropped grant.

🟡 Medium — can_sqllab_table_viz is deleted, but the rename that should preserve it targets a phantom name
In the delete migration, Pvm("Superset", "can_sqllab_table_viz") (line ~107) is treated as a no-successor deletion. But that permission was generated by def sqllab_table_viz (route /get_or_create_table/), which was @deprecated(new_target="api/v1/dataset/get_or_create/") — its capability moved to the live ("Dataset","can_get_or_create_dataset"), it didn't disappear. Meanwhile the rename migration maps ("Superset","can_get_or_create_table") → ("Dataset","can_get_or_create_dataset"), but no method named get_or_create_table ever existed (the method was always sqllab_table_viz), so can_get_or_create_table was never a real PVM and that rename is a no-op on every real DB. Net effect: custom roles granted can_sqllab_table_viz silently lose it instead of being migrated to can_get_or_create_dataset. Fix: remove can_sqllab_table_viz from PVM_LIST and replace the phantom can_get_or_create_table rename entry with Pvm("Superset","can_sqllab_table_viz"): (Pvm("Dataset","can_get_or_create_dataset"),).

🟡 Medium — can_test_conn deletion is a phantom; the real leftover permission is can_testconn
PVM_LIST deletes Pvm("Superset", "can_test_conn") (line ~87), but the old method was def testconn (route /testconn, @deprecated, no @permission_name override — verified across history; def test_conn never existed), so FAB generated ("Superset","can_testconn"), without the underscore. The can_test_conn spelling only ever lived as a hardcoded string in SQLLAB_ONLY_PERMISSIONS (which this PR correctly removes) and appears never to have matched a real PVM. So on upgraded DBs this entry deletes nothing while the genuinely-dead can_testconn — the exact kind of leftover #33272 is about — survives. Fix: change the entry to Pvm("Superset", "can_testconn"). More broadly, these two phantoms suggest some names were derived from route paths / the manager.py string rather than the actual FAB method names — worth re-deriving PVM_LIST/PVM_MAP against a real pre-3.0 ab_permission dump.

🟢 Low — Cleanup is incomplete; docstring over-claims an exhaustive sweep
Four other permissions from @expose'd methods on the same monolithic Superset view, removed in the same 3.0-era API-ification, are in neither list and will persist exactly like the targeted ones: can_override_role_permissions and can_theme (pure deletes — theme is superseded by the live Theme view menu), and can_annotation_json and can_fave_dashboards_by_username (renames paralleling the already-handled can_slice_json and can_fave_dashboards/favorite_status → can_read). The delete migration's docstring claims each entry was confirmed "by cross-checking current views/API code, the full migrations history, and UPDATING.md," implying completeness. Fix: add these four (or, at minimum, soften the docstring so it doesn't assert an exhaustive sweep).

🟢 Low — Stale MCP doc reference to a removed permission
superset/mcp_service/SECURITY.md:405 documents execute_sql as requiring can_sql_json, which this PR renames to can_execute_sql_query. The file isn't touched by the PR (and the row was already partly wrong — it says view menu "Database"), but after this migration the reference is fully dangling; the code already gates on execute_sql_query/SQLLab. Fix: update the row to can_execute_sql_query on SQLLab.

🟢 Low — Missing regression guard for the PVM_LIST / PVM_MAP disjointness invariant
The whole two-migration design relies on the 25 deleted pairs and 12 rename keys being disjoint (an overlap would be order-dependent and could permanently drop grants). It currently holds, and both constants are already imported side-by-side in test_deprecated_permissions_33272.py, so the guard is one line. Fix: add assert set(PVM_LIST).isdisjoint(PVM_MAP.keys()) (and optionally that no PVM_LIST entry is a NEW_PVMS successor).

🟢 Low — No test that a role keeps its other permissions after a delete/rename
delete_pvms/migrate_roles do a targeted role.permissions.remove(old_pvm), but every role-bearing test seeds the role with only the single targeted PVM, so assert role.permissions == [] can't distinguish "removed the target" from "cleared everything." Fix: add a case seeding a role with [targeted_pvm, untargeted_pvm] and assert the untargeted one survives (and, for rename, that the successor was added alongside it).

🟢 Low — Test polish (nits)
Two symmetry gaps, both cheap: no end-to-end test runs both chained migrations on one DB (each test exercises one migration in isolation — the migrations are provably non-interacting, so this is completeness only), and rename-path idempotency is untested while the delete path has an explicit twice-run test. Fix: add a chained-run test and a rename idempotency test mirroring test_delete_migration_is_idempotent_with_real_pvm_list.

…in review

A contributor review on this PR found that two PVM_LIST entries were
phantom permission names (can_get_or_create_table never existed;
can_test_conn should have been can_testconn) that would silently no-op
instead of preserving the roles that held them. Chasing that down
further, two independent audit passes -- checking every candidate
against its actual removal PR diff, @deprecated(new_target=...)
decorators, and FAB's MODEL_API_RW_METHOD_PERMISSION_MAP resolution to
a live REST endpoint, rather than trusting the earlier "no successor"
classification -- found the same defect in 17 more of the original
25 PVM_LIST entries: they have a real, verifiable live successor and
were only ever deletions by mistake.

PVM_LIST now holds exactly 6 entries independently confirmed to have
no successor at all (endpoint/method deleted outright, no
@deprecated(new_target=...) or equivalent). PVM_MAP grew from 12 to 34
entries: the 11 originally-correct renames, the corrected
can_sqllab_table_viz key (replacing the phantom can_get_or_create_table),
19 reclassified entries, and 2 permissions (can_annotation_json,
can_fave_dashboards_by_username) that were missing from both lists
entirely. NEW_PVMS is expanded to match, including three new view
menus (AvailableDomains, SecurityRestApi, SavedQuery).

A final targeted verification pass on the four weakest-evidence
mappings caught one more real gap before commit: can_my_queries's
successor was correct but incomplete -- SavedQuery.can_list only gates
the page shell, while the actual data comes from a separate
SavedQuery.can_read-gated API call, so a migrated role would have
landed on a blank page. Fixed to grant both, mirroring the existing
can_favstar dual-target pattern. The other three mappings checked in
that pass (can_import_dashboards, can_favstar, and the SECURITY.md doc
fix) were independently confirmed correct against live endpoint code.

Also fixes a dangling permission reference in
superset/mcp_service/SECURITY.md (can_sql_json, which this PR renames,
was documented against the wrong view menu besides).

Tests: added a PVM_LIST/PVM_MAP disjointness assertion, strengthened
two existing tests to confirm a role's other permissions survive a
delete/rename untouched, and added chained-migration and
rename-idempotency regression tests.
@Ujjwaljain16

Copy link
Copy Markdown
Contributor Author

@rebenitez1802 really appreciate the deep dive here both of your Medium findings checked out, and pulling that thread turned out to matter a lot more than i expected

can_sqllab_table_viz/can_get_or_create_table was exactly as you described can_get_or_create_table was never a real permission turns out UPDATING.md itself has the wrong name, which is probably where it got picked up from. Moved it into the rename migration under the right key

can_test_conn needed more than the spelling fix, though
once i went and looked at the actual PR that removed testconn() (#24354), it had a real successor all along Database.can_write so instead of just renaming the string i moved it out of the delete list entirely

the bigger surprise was yr "incomplete cleanup" note i went and actually checked PR #24400's diff for the six permissions you called out as a minor doc nit, and every single one of them has a real @deprecated(new_target=...) pointing at a live endpoint that's not a doc problem, that's the same silent-drop bug you found just hiding in six more places so i stopped trusting the original "no successor" labels entirely and re-checked all 25 the same way actual PR diffs, actual deprecation decorators, tracing each one to a real live endpoint
19 of the 25 had a real successor the delete list is down to 6 now the rename list is up to 34

also added can_annotation_json and can_fave_dashboards_by_username, which were genuinely missing from both lists didn't add can_theme though checked its whole history and it never had any access decorator on it, so it was never a real permission to begin with, would've just been a third phantom entry.

fixed the SECURITY.md line, and added tests for the disjointness check, for roles keeping their other permissions, and for running both migrations back to back

one more thing came up on a final pass i did over the shakier mappings before merging: can_my_queries needed to go to both SavedQuery.can_list and SavedQuery.can_read, not just can_list that permission alone only unlocks the page itself, the actual query list comes from a separately-gated API call would've left people staring at a blank page otherwise

two mappings (can_my_queries and can_import_dashboards) don't have a formal deprecation decorator backing them like the rest do have called that out directly in the migration's docstring rather than papering over it

tests went from 154 to 157

@bito-code-review

bito-code-review Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #2a077b

Actionable Suggestions - 0
Additional Suggestions - 2
  • tests/unit_tests/migrations/test_deprecated_permissions_33272.py - 2
    • Vacuous test assertion · Line 111-111
      This assertion is vacuously true: every `PVM_LIST` entry has view `"Superset"`, which is not a key in `NEW_PVMS`, so `NEW_PVMS.get(pvm.view, ())` always returns `()` and the check never inspects any permission name. It cannot catch the miscategorized-deletion bug the docstring describes. Flatten all `NEW_PVMS` successor permissions and assert no `PVM_LIST` permission collides with any of them.
    • Fragile idempotency assertion · Line 296-302
      The idempotency test picks `next(iter(PVM_MAP))` and asserts no `PermissionView` with `old_key.permission` remains. This only holds when the chosen key's successor has a different permission name. `PVM_MAP` contains keys whose successor shares the name (`can_recent_activity` -> `Log/can_recent_activity`, `can_estimate_query_cost` -> `SQLLab/can_estimate_query_cost`). If the first key ever changes to one of these, the assertion spuriously fails despite correct migration, contradicting the test's robustness goal. Filter on both `old_key.view` and `old_key.permission`.
Review Details
  • Files reviewed - 3 · Commit Range: 12c35a4..64dc4bb
    • superset/migrations/versions/2026-09-10_00-00_1f5f4fb8bfc1_delete_deprecated_permissions_33272.py
    • superset/migrations/versions/2026-09-10_00-01_3ce9a4572f8a_rename_deprecated_permissions_33272.py
    • tests/unit_tests/migrations/test_deprecated_permissions_33272.py
  • Files skipped - 1
    • superset/mcp_service/SECURITY.md - Reason: Filter setting
  • Tools
    • MyPy (Static Code Analysis) - ✔︎ Successful
    • Astral Ruff (Static Code Analysis) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers an incremental AI Review.

  • /review full - Manually triggers a full AI Review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@gabotorresruiz gabotorresruiz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Ujjwaljain16, thanks for the thorough work here. This is one of the most carefully evidenced migration PRs I have reviewed, and the split into pure deletions vs role-preserving renames is exactly the right shape for #33272.

I verified it empirically on this branch rather than just reading the diff:

  • pytest tests/unit_tests/migrations passes (161 tests) and pytest tests/unit_tests/security passes (345 tests).
  • On a fresh sqlite metastore upgraded to 7e2c9a4f1b83, I seeded a custom role holding can_profile, can_approve, can_sql_json, can_select_star and can_testconn, plus an operator-custom PVM and an object-spec database_access PVM, then ran superset db upgrade. The deprecated PVMs are deleted, the role lands on exactly the verified successors, and both the custom and object-spec PVMs survive untouched. Downgrade past both migrations and a second upgrade also run clean.
  • I reproduced your migrate_roles claim: an empty successor tuple really is a silent no-op, so delete_pvms is genuinely needed.
  • Spot-checked the history: every PVM_MAP key existed as a real view method at 1.5.0/2.1.0, save_dash was removed with a bare @deprecated() in #24353, sqllab_table_viz was the real permission behind /get_or_create_table/, and UPDATING.md's stated can execute/can results successors indeed do not exist in a live DB. Good catches on all three corrections.

One blocking item, and it is mechanical: the branch currently resolves to 3 Alembic heads (c7f53d184ea2, 88a01c781622, 3ce9a4572f8a) because two other migrations landed on master with the same down_revision = "7e2c9a4f1b83" this branch was cut from. Every red CI job I checked (enforce-single-migration-head, test-postgres, docker-build, cypress-matrix) fails on the same Multiple head revisions error during superset db upgrade, so rebasing 1f5f4fb8bfc1 onto the current head (or adding the no-op merge revision the CI error suggests) should turn everything green in one shot.

Not a blocker: since this migration changes role grants on upgraded installs, an UPDATING.md entry describing what moves where would help operators with custom roles.

Happy to approve once the heads are sorted and CI is green.

…oadening

A second review round found three more issues, all fixed here:

Master had grown two new migrations sharing this branch's original
down_revision, so the branch resolved to 3 Alembic heads and every CI
job failed on "Multiple head revisions" during superset db upgrade.
Adds a no-op merge migration reconciling all three heads, following
this repo's own established pattern for exactly this situation.

A reviewer verified empirically that three PVM_MAP renames resurrect
long-dead permissions as a live, strictly broader capability instead
of the narrow one they used to gate: can_testconn (a role holding only
this dead permission has no live capability today) would come out of
the migration holding Database.can_write, which covers creating,
editing and deleting any database connection, not just testing one.
Chasing this further, the same defect exists in can_sqllab_viz
(-> Dataset.can_write) and can_import_dashboards (-> Dashboard.can_write,
which also turns out to have no UPDATING.md guidance for this removal
at all), plus a fourth entry the reviewer didn't flag: can_add_slices
(-> Chart.can_write), which on top of the broadening issue looks
mapped to the wrong resource entirely -- the old action mutated a
dashboard's chart membership, not chart records themselves. All four
move from the rename migration to the delete migration; NEW_PVMS is
trimmed of the now-unused can_write grants on Chart/Database/Dataset.
can_copy_dash keeps its Dashboard.can_write rename, since Superset's
current copy_dash REST endpoint is still gated by that exact
permission today -- a genuine like-for-like match, not broadening.

Also: trimmed both migration docstrings, which had been narrating this
PR's own draft history (an earlier 25-entry list, an 11-entry map) that
never shipped and would send a future reader looking for something
that doesn't exist -- the per-entry inline comments already carry the
needed context. Added an UPDATING.md entry explaining the delete-vs-
rename split to operators with custom roles.

Finally, an automated review caught two real bugs in the migration
tests added for the previous round. The PVM_LIST/PVM_MAP disjointness
test's second assertion checked NEW_PVMS.get(pvm.view, ()), but every
PVM_LIST entry's view is "Superset", which is never a NEW_PVMS key --
the lookup always returned () and the assertion passed regardless of
content. Fixed to flatten every NEW_PVMS successor permission across
all views and check for a collision against that full set. Separately,
the rename-migration idempotency test's "old PVM is gone" assertion
filtered on permission name alone; PVM_MAP contains same-name,
different-view pairs (can_recent_activity -> Log/can_recent_activity),
so it would have spuriously failed had the dict's iteration order ever
put one of those first. Fixed to filter on both view and permission
name. No production migration logic changed for either fix.
…rmissions-cleanup-33272

# Conflicts:
#	UPDATING.md
@Ujjwaljain16

Ujjwaljain16 commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor Author

@gabotorresruiz thanks for both passes on this the head-conflict catch and the write-permission question in particular were exactly the kind of thing worth slowing down for
here's everything that's landed since:

The Alembic head conflict fixed with a merge migration reconciling all three heads, like you suggested. Then master moved again and brought in its own fix for the same underlying split (a different merge migration resolving the same two heads), which made mine redundant and would've quietly created a new two-way split underneath it. Caught that by actually computing the head graph from all the migration files rather than trusting git status, dropped my old merge migration, and added a smaller one reconciling just master's current head with ours. Single head confirmed end to end with a real superset db upgrade run each time, not just eyeballing the chain.

On the write-permission question you were right, and chasing it further turned up more of the same. can_testconn, can_sqllab_viz, and can_import_dashboards all move to the delete migration now instead of resurrecting a broader live permission, exactly as you flagged. While I was in there I found a fourth one you hadn't mentioned, can_add_slices → Chart.can_write, with the same problem plus what looks like a wrong-resource mapping on top (the old action mutated a dashboard's chart list, not chart records themselves) — moved that too. can_copy_dash is the one I kept as a rename, since Superset's actual copy_dash endpoint today is still gated by that exact permission — a real like-for-like match rather than accidental broadening, not just the same pattern as the others.

Also trimmed both migration docstrings per your nit they don't narrate the earlier 25-entry/11-entry draft history anymore, just the final evidence. And added the UPDATING.md entry you suggested, explaining the delete-vs-rename split for anyone with custom roles.

One more thing came out of an automated review pass afterward, which I checked by hand before touching anything: two real bugs in the tests from the previous round. The PVM_LIST/PVM_MAP disjointness check was comparing against a dict key ("Superset") that never actually exists in NEW_PVMS, so it passed no matter what was in the list fixed to flatten every successor permission across all views and check against that instead. And the idempotency test's "is it really gone" check only matched on permission name, which would've spuriously failed if the dict's first entry ever happened to be one of the few same-name-different-view pairs already in the map (can_recent_activity on Superset vs. Log, for instance) now it filters on both. Neither touched any production migration logic.

Tests are at 161 passing, ruff's clean, and i re-ran the full chain fresh after every change rather than assuming it still worked

@bito-code-review

bito-code-review Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #dfda57

Actionable Suggestions - 0
Additional Suggestions - 1
  • superset/migrations/versions/2026-09-10_00-00_1f5f4fb8bfc1_delete_deprecated_permissions_33272.py - 1
    • Comment successor order mismatch · Line 84-84
      The 'respectively' successor list (Database/Dataset/Chart/Dashboard) doesn't match the action descriptions below: `can_import_dashboards` maps to importing a dashboard (Dashboard.can_write) and `can_add_slices` to appending charts (Chart.can_write). Swap the last two entries so the ordering is consistent.
Review Details
  • Files reviewed - 4 · Commit Range: 64dc4bb..dc234b1
    • superset/migrations/versions/2026-09-10_00-00_1f5f4fb8bfc1_delete_deprecated_permissions_33272.py
    • superset/migrations/versions/2026-09-10_00-01_3ce9a4572f8a_rename_deprecated_permissions_33272.py
    • superset/migrations/versions/2026-09-16_00-00_aa5aa836f85c_merge_deprecated_permissions_with_purge_audit_and_username_index.py
    • tests/unit_tests/migrations/test_deprecated_permissions_33272.py
  • Files skipped - 1
    • UPDATING.md - Reason: Filter setting
  • Tools
    • MyPy (Static Code Analysis) - ✔︎ Successful
    • Astral Ruff (Static Code Analysis) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers an incremental AI Review.

  • /review full - Manually triggers a full AI Review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@rebenitez1802 rebenitez1802 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve: the latest revision resolves every blocking finding from the prior review rounds — the four broadening can_write renames (can_testconn, can_sqllab_viz, can_import_dashboards, can_add_slices) are now pure deletes, the 3-head Alembic conflict is merged to a single head, the disjointness test's vacuous assertion is fixed, and UPDATING.md now documents the delete-vs-rename split for operators. I re-verified on the latest commit: PVM_LIST (10) ∩ PVM_MAP (29) = ∅, NEW_PVMS is exactly its 16 successors (no dangling, no extra), and both origin/master and this branch resolve to a single Alembic head. Only minor, non-blocking notes remain.

🟢 Low — can_copy_dash → Dashboard.can_write is the one remaining broadening
rename…33272.py:132. This is a conscious, documented exception: the live copy_dash REST endpoint is gated by exactly Dashboard.can_write, so it's argued as a 1:1 action match. Strictly, Dashboard.can_write is still broader than the old copy-only action (it also grants edit/delete of all dashboards), so a custom role that held only the dead can_copy_dash gains full dashboard write. It's Gamma-tier (built-in Gamma already holds it; only an unusual custom role is affected) and copy has no narrower successor, so keeping it is defensible — just noting it's the same broadening shape as the four deletes, one tier down. Your call.

🟢 Low — Database.can_read consolidation of four dead read perms
can_select_star/can_validate_sql_json/can_schemas_access_for_file_upload/can_extra_table_metadata all fold into the full Database.can_read surface. Bounded (scoped by DatabaseFilter to already-accessible databases, metadata-only, secrets stay write-gated/masked), so informational rather than a boundary issue.

🟢 Nit — stale removal-PR citation
The delete migration's docstring cites can_override_role_permissions removal as PR #23714; that PR only added the @deprecated decorator — the actual removal was #24266.

@gabotorresruiz gabotorresruiz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The write successor concern is resolved, and I confirmed it end to end on dc234b16 rather than reading the diff.

  • Seeded a custom role holding can_testconn, can_sqllab_viz, can_import_dashboards, can_add_slices and can_save_dash on a metastore at 7e2c9a4f1b83, plus an object level database_access PVM and an operator custom PVM, then ran superset db upgrade: the role loses all five and gains nothing, so no dead grant comes back as a live write. Identical before/after sets on SQLite and on PostgreSQL 17.
  • can_copy_dash staying a rename checks out: copy_dash in superset/dashboards/api.py:2694 carries @permission_name("write"), so Dashboard.can_write is genuinely the gate on the live route.
  • Downgrade past both migrations runs clean and restores nothing, matching the documented no-op, and a second superset db upgrade lands on identical state, so the pass is idempotent.
  • Against a fresh superset init (231 PVMs): none of the 10 PVM_LIST entries or 29 PVM_MAP keys exist, every successor does, and NEW_PVMS is exactly the successor closure. The Superset view menu keeps 16 live PVMs, so it is never orphan deleted.
  • superset db heads resolves to 2ce579e91ae6 alone, and tests/unit_tests/migrations (161) plus tests/unit_tests/security and tests/unit_tests/initialization_test.py (397) all pass.

Not a blocker: nothing in the suite pins the policy this round landed. I put Pvm("Superset", "can_testconn"): (Pvm("Database", "can_write"),) back into PVM_MAP locally and all 161 tests still passed, so a later edit could quietly re-broaden a dead permission again. One assertion in tests/unit_tests/migrations/test_deprecated_permissions_33272.py would pin it:

def test_can_copy_dash_is_the_only_write_level_rename() -> None:
    write_renames = {
        old_pvm
        for old_pvm, successors in PVM_MAP.items()
        if any(successor.permission == "can_write" for successor in successors)
    }
    assert write_renames == {Pvm("Superset", "can_copy_dash")}

It fails on that re-broadened map and passes as written on this head.

@github-actions

Copy link
Copy Markdown
Contributor

🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️❗ @Ujjwaljain16 Your base branch master has also updated superset/migrations.

Please consider rebasing your branch and resolving potential db migration conflicts.

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️❗ @Ujjwaljain16 Your base branch master has also updated superset/migrations.

Please consider rebasing your branch and resolving potential db migration conflicts.

Two small fixes from rebenitez1802's approval review:

- The delete migration's docstring cited PR apache#23714 as the removal of
  can_override_role_permissions. Verified against the actual PR: apache#23714
  only added the @deprecated() decorator; the endpoint itself (the
  method, its @expose, and its tests) was deleted later, in PR apache#24266.
  Docstring now cites both correctly.

- Added the regression test gabotorresruiz proposed, pinning that
  can_copy_dash is the only write-level rename in PVM_MAP. They showed
  this by hand -- reintroducing can_testconn -> Database.can_write
  locally still passed all 161 existing tests, meaning nothing would
  catch that exact regression recurring. Verified the same way before
  adding it: constructed the regression in an isolated script (never
  touching the tracked file) and confirmed the new assertion fails
  against it while passing against the current PVM_MAP.

Also merges another master-side Alembic head split that landed since
the last push: master resolved its own theme-editors/purge-audit head
conflict with a new merge migration, which doesn't chain from ours,
so the branch was back to 2 heads. Added one more small merge migration
reconciling the two. Verified via master's own new
tests/unit_tests/migrations/test_single_migration_head.py (added in
this same master pull) rather than just this branch's own head-counting
script.
can_testconn, can_sqllab_viz, can_import_dashboards, and can_add_slices
were moved to the delete migration because their proposed successor
represented a substantially different, broader capability than the
dead permission ever granted. can_copy_dash looks like the same shape
(Dashboard.can_write is also broader than the historical action) but
is materially different: the live copy_dash endpoint is itself
authorized by exactly Dashboard.can_write today, so migrating it
preserves access to the modern implementation of the same feature
rather than resurrecting a dead, unrelated grant. Without this, a
future contributor comparing the four deletes against this one rename
could reasonably wonder why it wasn't treated the same way.
@bito-code-review

bito-code-review Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #cf483b

Actionable Suggestions - 0
Review Details
  • Files reviewed - 3 · Commit Range: dc234b1..df6dfcc
    • superset/migrations/versions/2026-09-10_00-00_1f5f4fb8bfc1_delete_deprecated_permissions_33272.py
    • superset/migrations/versions/2026-09-17_00-00_53a7abc31422_merge_deprecated_permissions_with_master_v2.py
    • tests/unit_tests/migrations/test_deprecated_permissions_33272.py
  • Files skipped - 1
    • UPDATING.md - Reason: Filter setting
  • Tools
    • MyPy (Static Code Analysis) - ✔︎ Successful
    • Astral Ruff (Static Code Analysis) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers an incremental AI Review.

  • /review full - Manually triggers a full AI Review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@github-actions

Copy link
Copy Markdown
Contributor

🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️❗ @Ujjwaljain16 Your base branch master has also updated superset/migrations.

Please consider rebasing your branch and resolving potential db migration conflicts.

@sadpandajoe

Copy link
Copy Markdown
Member

@Ujjwaljain16 this looks good to go, can you just check if your migrations have conflicts, if it doesn't I can merge your pr.

@gabotorresruiz gabotorresruiz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, re-verified on df6dfccb.

The chain is the part worth confirming given how much master has moved: I combined this branch's superset/migrations/versions with current master (a7dab4a5) and the union resolves to exactly one head, 53a7abc31422. On a seeded metastore the round trip still behaves on both SQLite and PostgreSQL 17: the same 39 dead PVMs removed and 9 successors added as on the previous head, superset db downgrade past both migrations restores nothing, and a second superset db upgrade is a no-op. tests/unit_tests/migrations 167 passed.

Thanks for adding the write-level rename guard. I confirmed it earns its place: putting Pvm("Superset", "can_testconn"): (Pvm("Database", "can_write"),) back into PVM_MAP makes test_can_copy_dash_is_the_only_write_level_rename fail at tests/unit_tests/migrations/test_deprecated_permissions_33272.py:139, which is exactly the regression it needs to catch.

@Ujjwaljain16

Copy link
Copy Markdown
Contributor Author

@sadpandajoe no conflicts
CI is also green

@github-actions

Copy link
Copy Markdown
Contributor

🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️❗ @Ujjwaljain16 Your base branch master has also updated superset/migrations.

Please consider rebasing your branch and resolving potential db migration conflicts.

rusackas and others added 3 commits September 22, 2026 10:29
…xecution ownership)

Master landed superset/migrations/versions/2026-09-16_00-00_93d1b4a76c02_add_report_execution_ownership.py
as its own single head, but it never got folded into this branch's
merge-migration chain, so after the last few "Update branch" syncs
the branch had two heads: 93d1b4a76c02 (master's real head) and
53a7abc31422 (this branch's prior merge tip).

Verified independently, outside the blocked Codespace, by cloning
apache/superset:master and this branch fresh and computing the
Alembic head graph directly from the migration files: master's own
head is genuinely 93d1b4a76c02, and this branch had exactly the two
heads above before this commit. Also cross-checked against the
enforce-single-migration-head CI job's own log, which reports the
identical two heads. The docker-build (dev) job's failure is the same
root cause: its docker-compose sanity check hits the same
flask_migrate "Multiple head revisions" error.

Adds one more no-op merge migration joining the two heads, same
pattern as the three prior rounds of this. No production migration
logic changes.
@Ujjwaljain16

Ujjwaljain16 commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor Author

@rusackas
CI was red because of another Alembic head split not a problem with the permission-cleanup logic itself

Root cause:
master landed 2026-09-16_00-00_93d1b4a76c02_add_report_execution_ownership.py as its own head, but it never got joined into this branch's merge chain, so after the last few branch syncs there were two heads: 93d1b4a76c02 (master's real head) and 53a7abc31422 (this branch's prior merge tip)
that's exactly what enforce-single-migration-head reported and it's also what took down docker-build (dev) its sanity check hits the same flask_migrate "Multiple head revisions" error during db upgrade.
the rest of the failing jobs (cypress, playwright, mysql/postgres/sqlite) are downstream of the same startup failure

fixed by adding one more no-op merge migration joining the two heads
no changes to the actual permission delete/rename logic in this commit

CI is green now

@bito-code-review

bito-code-review Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #23e6d2

Actionable Suggestions - 0
Additional Suggestions - 2
  • superset/migrations/versions/2026-09-23_00-00_95d8a99c822e_merge_deprecated_permissions_with_master_v3.py - 2
    • Missing return type annotations · Line 30-30
      New migration functions `upgrade()`/`downgrade()` lack explicit `-> None` return annotations, which BITO.md rule 12696 requires for all new functions including migration functions. Add `def upgrade() -> None:` and `def downgrade() -> None:`.
    • Missing function docstrings · Line 34-34
      New functions `upgrade()`/`downgrade()` have no docstrings. BITO.md rule 12147 requires an inline docstring on every newly introduced Python function. Add a short docstring to each (e.g. noting this is a merge point with no schema changes).
Review Details
  • Files reviewed - 1 · Commit Range: df6dfcc..77e3942
    • superset/migrations/versions/2026-09-23_00-00_95d8a99c822e_merge_deprecated_permissions_with_master_v3.py
  • Files skipped - 0
  • Tools
    • MyPy (Static Code Analysis) - ✔︎ Successful
    • Astral Ruff (Static Code Analysis) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers an incremental AI Review.

  • /review full - Manually triggers a full AI Review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@rusackas rusackas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This got an unusually thorough pass already, real DB round-trips on SQLite and Postgres, seeded custom roles, idempotency checks, the write-level broadening question actually traced through to the live route. I re-verified the head myself since the last full review: 77e39422 only adds one more no-op Alembic merge stub on top of df6dfccb, same shape as the ones already reviewed, nothing substantive changed. CI's green, single migration head, merging.

@rusackas
rusackas merged commit 350dd0d into apache:master Sep 23, 2026
77 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:db-migration PRs that require a DB migration size/XXL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecated permissions are not deleted after upgrade

5 participants