Skip to content

fix: deprecate approve and request_access endpoint - #22022

Merged
dpgaspar merged 6 commits into
apache:masterfrom
preset-io:fix/approve-endpoint
Nov 7, 2022
Merged

dpgaspar merged 6 commits into
apache:masterfrom
preset-io:fix/approve-endpoint

Conversation

@dpgaspar

@dpgaspar dpgaspar commented Nov 3, 2022 •

Copy link
Copy Markdown
Member

SUMMARY

Changes both /superset/approve and /superset/request_access to HTTP POST.
Since these endpoints change the state of the system GET is not correct

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

@codecov

codecov Bot commented Nov 3, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #22022 (a927654) into master (7d1df3b) will decrease coverage by 11.49%.
The diff coverage is 50.00%.

❗ Current head a927654 differs from pull request most recent head 193d90f. Consider uploading reports for the commit 193d90f to get more accurate results

@@             Coverage Diff             @@
##           master   #22022       +/-   ##
===========================================
- Coverage   66.97%   55.48%   -11.50%     
===========================================
  Files        1815     1815               
  Lines       69540    69542        +2     
  Branches     7483     7483               
===========================================
- Hits        46575    38585     -7990     
- Misses      21034    29026     +7992     
  Partials     1931     1931               
Flag Coverage Δ
hive ?
mysql ?
postgres ?
presto 52.74% <50.00%> (-0.01%) ⬇️
python 57.66% <50.00%> (-23.85%) ⬇️
unit 51.18% <50.00%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
superset/views/core.py 34.64% <50.00%> (-40.72%) ⬇️
superset/utils/dashboard_import_export.py 0.00% <0.00%> (-100.00%) ⬇️
superset/tags/core.py 4.54% <0.00%> (-95.46%) ⬇️
superset/key_value/commands/update.py 0.00% <0.00%> (-90.91%) ⬇️
superset/key_value/commands/delete.py 0.00% <0.00%> (-87.88%) ⬇️
superset/db_engines/hive.py 0.00% <0.00%> (-85.19%) ⬇️
superset/key_value/commands/delete_expired.py 0.00% <0.00%> (-84.00%) ⬇️
superset/dashboards/commands/importers/v0.py 15.62% <0.00%> (-76.25%) ⬇️
superset/datasets/commands/create.py 30.61% <0.00%> (-69.39%) ⬇️
superset/datasets/commands/update.py 25.00% <0.00%> (-69.05%) ⬇️
... and 284 more

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

@villebro villebro 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, but I wonder if Airbnb are still using these internally? Ping @john-bodley

@villebro
villebro requested a review from john-bodley November 4, 2022 10:33

@michael-s-molina michael-s-molina 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

Comment thread UPDATING.md Resolved
@dpgaspar
dpgaspar merged commit 358a4ec into apache:master Nov 7, 2022
@dpgaspar
dpgaspar deleted the fix/approve-endpoint branch November 7, 2022 08:55
AAfghahi pushed a commit that referenced this pull request Nov 9, 2022
AAfghahi pushed a commit that referenced this pull request Nov 18, 2022
AAfghahi pushed a commit that referenced this pull request Dec 15, 2022
michael-s-molina added a commit that referenced this pull request Jan 5, 2023
Co-authored-by: Michael S. Molina <[email protected]>
(cherry picked from commit 358a4ec)
@lilykuang lilykuang mentioned this pull request May 25, 2023
1 of 10 tasks
@mistercrunch mistercrunch added 🍒 1.5.3 Cherry-picked to 1.5.3 🍒 2.0.1 Cherry-picked to 2.0.1 🚢 2.1.3 First shipped in 2.1.3 🚢 2.1.0 First shipped in 2.1.0 and removed 🍒 2.0.1 Cherry-picked to 2.0.1 🍒 1.5.3 Cherry-picked to 1.5.3 labels Feb 18, 2024
@mistercrunch mistercrunch added 🚢 2.1.3 First shipped in 2.1.3 and removed 🚢 2.1.3 First shipped in 2.1.3 🚢 2.1.0 First shipped in 2.1.0 labels Feb 18, 2024
@mistercrunch mistercrunch added 🍒 1.5.3 Cherry-picked to 1.5.3 🍒 2.0.1 Cherry-picked to 2.0.1 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.1.0 First shipped in 2.1.0 and removed 🚢 2.1.3 First shipped in 2.1.3 labels Mar 13, 2024
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
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/S v1.5 v2.0 v2.0.1 🍒 1.5.3 Cherry-picked to 1.5.3 🍒 2.0.1 Cherry-picked to 2.0.1 🚢 2.1.0 First shipped in 2.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants