Skip to content

chore(api v1): Deprecate superset/override_role_permissions endpoint - #23714

Merged
eschutho merged 1 commit into
apache:masterfrom
preset-io:jack/deprecate-override-role-permissions-endpoint
Apr 18, 2023
Merged

eschutho merged 1 commit into
apache:masterfrom
preset-io:jack/deprecate-override-role-permissions-endpoint

Conversation

@jfrag1

@jfrag1 jfrag1 commented Apr 17, 2023

Copy link
Copy Markdown
Member

SUMMARY

This endpoint is not called from client side code at all, so this endpoint should be able to be safely deprecated and removed in 3.0.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • 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

@jfrag1 jfrag1 changed the title chore: Deprecate override_role_permissions endpoint chore(api v1): Deprecate superset/override_role_permissions endpoint Apr 17, 2023
}

ADMIN_ONLY_PERMISSIONS = {
"can_override_role_permissions",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Only removing since I noticed it was duplicated a couple lines below

@codecov

codecov Bot commented Apr 17, 2023 •

Copy link
Copy Markdown

Codecov Report

Merging #23714 (437eae5) into master (810f52b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 437eae5 differs from pull request most recent head 10b0d59. Consider uploading reports for the commit 10b0d59 to get more accurate results

@@           Coverage Diff           @@
##           master   #23714   +/-   ##
=======================================
  Coverage   68.09%   68.10%           
=======================================
  Files        1922     1922           
  Lines       74046    74047    +1     
  Branches     8104     8104           
=======================================
+ Hits        50420    50427    +7     
+ Misses      21552    21545    -7     
- Partials     2074     2075    +1     
Flag Coverage Δ
hive 53.18% <100.00%> (+<0.01%) ⬆️
mysql 79.21% <100.00%> (+<0.01%) ⬆️
postgres 79.29% <100.00%> (+<0.01%) ⬆️
presto 53.09% <100.00%> (+<0.01%) ⬆️
python 83.14% <100.00%> (+<0.01%) ⬆️
sqlite 77.79% <100.00%> (+<0.01%) ⬆️
unit 53.02% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
...frontend/src/SqlLab/components/SqlEditor/index.jsx 58.28% <ø> (+1.60%) ⬆️
.../features/databases/DatabaseModal/ExtraOptions.tsx 70.37% <ø> (ø)
superset/security/manager.py 95.96% <ø> (ø)
superset/views/core.py 75.31% <100.00%> (+0.01%) ⬆️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@eschutho
eschutho merged commit 8bd4322 into apache:master Apr 18, 2023
@eschutho
eschutho deleted the jack/deprecate-override-role-permissions-endpoint branch April 18, 2023 18:09
sebastianliebscher pushed a commit to sebastianliebscher/superset that referenced this pull request Apr 28, 2023
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 3.0.0 First shipped in 3.0.0 labels Mar 13, 2024
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
Ujjwaljain16 added a commit to Ujjwaljain16/superset that referenced this pull request Sep 17, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XS 🚢 3.0.0 First shipped in 3.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants