Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: deprecate approve and request_access endpoint #22022

Merged
merged 6 commits into from
Nov 7, 2022

Conversation

dpgaspar
Copy link
Member

@dpgaspar dpgaspar commented Nov 3, 2022

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
Copy link

codecov bot commented Nov 3, 2022

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

Copy link
Member

@villebro villebro left a comment

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

Copy link
Member

@michael-s-molina michael-s-molina left a comment

Choose a reason for hiding this comment

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

LGTM

UPDATING.md Outdated Show resolved Hide resolved
dpgaspar and others added 2 commits November 4, 2022 15:17
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
@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
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
AAfghahi pushed a commit that referenced this pull request Nov 18, 2022
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
AAfghahi pushed a commit that referenced this pull request Dec 15, 2022
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
michael-s-molina pushed a commit that referenced this pull request Jan 5, 2023
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
(cherry picked from commit 358a4ec)
@mistercrunch mistercrunch added 🍒 1.5.3 🍒 2.0.1 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.1.0 and removed 🚢 2.1.3 labels Mar 13, 2024
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 🍒 2.0.1 🚢 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants