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(report): fix last_eval_dttm sort and more tests #12121

Merged
merged 6 commits into from
Dec 21, 2020

Conversation

dpgaspar
Copy link
Member

@dpgaspar dpgaspar commented Dec 18, 2020

SUMMARY

Fixes the following:

  • Fixes missing last_eval_dttm allowed sort on the API.
  • Splits Alerts and Alerts & Reports code paths and Flask routes, so they can live side by side for now.
  • Removes unnecessary permissions for dummy ModelView class AlertReportModelView.
  • Fixes permission denied on reports full refresh.
  • If a report is deactivated while working it will change it's last_state to Not Triggered

Adds more tests to alerts and reports (invalid queries)

New side by side menu:

Screenshot 2020-12-18 at 14 36 48

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

@codecov-io
Copy link

codecov-io commented Dec 18, 2020

Codecov Report

Merging #12121 (556a338) into master (0d9c863) will decrease coverage by 3.51%.
The diff coverage is 90.90%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #12121      +/-   ##
==========================================
- Coverage   66.55%   63.03%   -3.52%     
==========================================
  Files         994      994              
  Lines       49034    49018      -16     
  Branches     4977     4977              
==========================================
- Hits        32633    30897    -1736     
- Misses      16273    17921    +1648     
- Partials      128      200      +72     
Flag Coverage Δ
cypress ?
javascript 61.23% <ø> (ø)
python 64.19% <90.90%> (-0.03%) ⬇️

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

Impacted Files Coverage Δ
superset/reports/api.py 85.48% <ø> (ø)
superset/views/alerts.py 81.33% <87.50%> (+6.33%) ⬆️
superset/app.py 81.36% <100.00%> (+0.78%) ⬆️
superset/reports/commands/update.py 89.85% <100.00%> (+0.30%) ⬆️
superset-frontend/src/SqlLab/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/explore/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/dashboard/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/setup/setupColors.js 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/chart/ChartContainer.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/explore/reducers/index.js 0.00% <0.00%> (-100.00%) ⬇️
... and 176 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0d9c863...556a338. Read the comment docs.

@pull-request-size pull-request-size bot added size/L and removed size/M labels Dec 18, 2020
@dpgaspar dpgaspar requested review from willbarrett, lilykuang and nytai and removed request for willbarrett December 18, 2020 15:38
superset/app.py Outdated

if feature_flag_manager.is_feature_enabled(
"ALERT_REPORTS"
) and feature_flag_manager.is_feature_enabled("SIP_34_ALERTS_UI"):
Copy link
Member

Choose a reason for hiding this comment

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

we recently removed SIP_34_ALERTS_UI, ALERT_REPORTS should be the only one going forward.

Copy link
Member

Choose a reason for hiding this comment

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

#12085 removed it, but looks like there's still a reference in config.py

Copy link
Member

Choose a reason for hiding this comment

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

ok, all instances of SIP_34_ALERTS_UI are gone

@dpgaspar dpgaspar requested a review from nytai December 21, 2020 14:41
@dpgaspar dpgaspar merged commit 8d5dcc5 into apache:master Dec 21, 2020
@dpgaspar dpgaspar deleted the fix/alert-reports-sort branch December 21, 2020 19:07
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.0.0 labels Mar 12, 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 🚢 1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants