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: methods incorrect type and update deprecated targets #23935

Merged
merged 2 commits into from
May 5, 2023

Conversation

dpgaspar
Copy link
Member

@dpgaspar dpgaspar commented May 4, 2023

SUMMARY

While gradually adding type annotations to FAB, having @expose methods as a List popped up as an error.

ref: https://github.com/dpgaspar/Flask-AppBuilder/blob/master/flask_appbuilder/api/__init__.py#L189

Also updated missing target to deprecation warnings

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

@codecov
Copy link

codecov bot commented May 4, 2023

Codecov Report

Merging #23935 (eae17c9) into master (f1fa1a7) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head eae17c9 differs from pull request most recent head 5c9aa75. Consider uploading reports for the commit 5c9aa75 to get more accurate results

@@           Coverage Diff           @@
##           master   #23935   +/-   ##
=======================================
  Coverage   68.12%   68.12%           
=======================================
  Files        1941     1941           
  Lines       75073    75074    +1     
  Branches     8155     8155           
=======================================
+ Hits        51141    51142    +1     
  Misses      21849    21849           
  Partials     2083     2083           
Flag Coverage Δ
hive 53.01% <99.47%> (+<0.01%) ⬆️
mysql 78.82% <100.00%> (+<0.01%) ⬆️
postgres 78.89% <100.00%> (+<0.01%) ⬆️
presto 52.92% <99.47%> (+<0.01%) ⬆️
python 82.68% <100.00%> (+<0.01%) ⬆️
sqlite 77.41% <100.00%> (+<0.01%) ⬆️
unit 52.81% <99.47%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
superset/datasource/api.py 100.00% <ø> (ø)
superset/advanced_data_type/api.py 100.00% <100.00%> (ø)
superset/annotation_layers/annotations/api.py 89.31% <100.00%> (ø)
superset/annotation_layers/api.py 86.32% <100.00%> (ø)
superset/async_events/api.py 100.00% <100.00%> (ø)
superset/available_domains/api.py 100.00% <100.00%> (ø)
superset/cachekeys/api.py 96.15% <100.00%> (ø)
superset/charts/api.py 85.71% <100.00%> (ø)
superset/charts/data/api.py 88.95% <100.00%> (ø)
superset/connectors/sqla/views.py 89.71% <100.00%> (ø)
... and 35 more

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

Copy link
Member

@Antonio-RiveroMartnez Antonio-RiveroMartnez left a comment

Choose a reason for hiding this comment

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

LGTM!

@dpgaspar dpgaspar merged commit 694f933 into apache:master May 5, 2023
@dpgaspar dpgaspar deleted the fix/improve-deprecation-warning branch May 5, 2023 17:57
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 3.0.0 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/L 🚢 3.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants