Repository navigation
chore: Remove deprecated ENABLE_ACCESS_REQUEST workflow - #24266
john-bodley merged 1 commit into
Conversation
4b422f7 to
a7c6abf
Compare
There was a problem hiding this comment.
Note this redirect no longer worked as this is being called via a GET yet the redirect URL only accepts a POST.
a7c6abf to
eeea8c9
Compare
Codecov Report
@@ Coverage Diff @@
## master #24266 +/- ##
========================================
Coverage 69.08% 69.09%
========================================
Files 1905 1903 -2
Lines 74813 74608 -205
Branches 8107 8107
========================================
- Hits 51686 51550 -136
+ Misses 21016 20947 -69
Partials 2111 2111
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
f949506 to
8c9dd8b
Compare
8c9dd8b to
fb6f391
Compare
9e825ba to
44f918b
Compare
f2f9cb5 to
17b5020
Compare
|
@dpgaspar I agree with your comment as I went down this path previously but didn't know how far I should go. This also makes the |
d2be248 to
6511cb2
Compare
There was a problem hiding this comment.
Love how removing some tests exposed the non-idempotent facets of others.
There was a problem hiding this comment.
Since we're only asserting fields that are listed here (see lines 375-377), maybe we can just remove this line? I'm not sure we really need to assert the uid, as I assume doing this assertion will fail when running this test in isolation.
villebro
left a comment
There was a problem hiding this comment.
Great to see this dead code being removed, as this has caused a lot of confusion over the years. If this type of functionality really is needed, it should probably be done slightly differently, using pluggable FAB views/classes etc that don't require this much logic in the main codebase.
There was a problem hiding this comment.
Since we're only asserting fields that are listed here (see lines 375-377), maybe we can just remove this line? I'm not sure we really need to assert the uid, as I assume doing this assertion will fail when running this test in isolation.
726adbc to
2d82c46
Compare
2d82c46 to
dc2a4d1
Compare
|
@john-bodley just to be on the safe side, I'm going to mark this as a possible breaking change. Do you think we should add anything to the UPDATING.md file re the changes? |
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.
SUMMARY
This PR partially addresses Superset 3.0 task #9 by removing the previous deprecated
ENABLE_ACCESS_REQUESTconfig parameter and the associated workflows.The TL;DR is this legacy workflow failed to work post #22022 (which mentions that the API endpoint is deprecated and will be removed in 3.0) when the
GETrequests becamePOSTrequests meaning logic like this and this is currently broken.Honestly I'm going in somewhat blind in terms of the how/where this logic was used, but the TL;DR is there seems to be no approval logic/workflow if there's no request workflows. Hopefully I've trimmed enough dead code without over pruning, though this has turned somewhat into a yak shaving exercise as—by deleting the
/approveendpoint—it led to removing facets of role extension, deleting thegranterrole, etc.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
CI.
ADDITIONAL INFORMATION