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

feat: only send alert error emails to owners of the alert #13862

Merged

Conversation

samtfm
Copy link
Contributor

@samtfm samtfm commented Mar 30, 2021

SUMMARY

With this change, alert errors are sent to owners of the alert, instead of the recipients.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

Modified test setup and test cases to assert emails are sent to the alert owner's email address.

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

@samtfm samtfm force-pushed the samtfm/limit-alert-error-recipients branch from 63a5dbf to 2775344 Compare April 5, 2021 23:00
@pull-request-size pull-request-size bot added size/M and removed size/S labels Apr 5, 2021
@samtfm samtfm marked this pull request as ready for review April 5, 2021 23:04
@codecov
Copy link

codecov bot commented Apr 5, 2021

Codecov Report

Merging #13862 (472c817) into master (d006178) will decrease coverage by 1.60%.
The diff coverage is 100.00%.

❗ Current head 472c817 differs from pull request most recent head c7d456a. Consider uploading reports for the commit c7d456a to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13862      +/-   ##
==========================================
- Coverage   78.56%   76.96%   -1.61%     
==========================================
  Files         935      935              
  Lines       47374    47378       +4     
  Branches     5971     5964       -7     
==========================================
- Hits        37221    36463     -758     
- Misses      10010    10742     +732     
- Partials      143      173      +30     
Flag Coverage Δ
cypress 44.86% <0.00%> (-11.19%) ⬇️
hive 80.27% <100.00%> (+<0.01%) ⬆️
mysql 80.57% <100.00%> (+<0.01%) ⬆️
postgres ?
python 80.91% <100.00%> (-0.07%) ⬇️
sqlite ?

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

Impacted Files Coverage Δ
...perset-frontend/src/datasource/DatasourceModal.tsx 72.58% <ø> (ø)
...erset-frontend/src/datasource/DatasourceEditor.jsx 65.96% <100.00%> (+0.14%) ⬆️
.../controls/MetricControl/AdhocMetricEditPopover.jsx 57.57% <100.00%> (-21.97%) ⬇️
superset/reports/commands/execute.py 93.33% <100.00%> (+0.10%) ⬆️
...t-frontend/src/dashboard/containers/SliceAdder.jsx 0.00% <0.00%> (-100.00%) ⬇️
...ponents/Select/WindowedSelect/WindowedMenuList.tsx 10.71% <0.00%> (-85.72%) ⬇️
...nd/src/filters/components/Select/transformProps.ts 0.00% <0.00%> (-81.82%) ⬇️
...ontend/src/filters/components/Select/buildQuery.ts 0.00% <0.00%> (-77.78%) ⬇️
...mponents/controls/AnnotationLayerControl/index.jsx 8.57% <0.00%> (-74.29%) ⬇️
...c/dashboard/components/dnd/AddSliceDragPreview.jsx 35.71% <0.00%> (-64.29%) ⬇️
... and 97 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 d006178...c7d456a. Read the comment docs.

Copy link
Member

@willbarrett willbarrett 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 does this meet with your approval?

@willbarrett willbarrett merged commit 911462a into apache:master Apr 12, 2021
@willbarrett willbarrett deleted the samtfm/limit-alert-error-recipients branch April 12, 2021 15:54
amitmiran137 pushed a commit that referenced this pull request Apr 13, 2021
* master:
  fix: unable to apply logging format (#14074)
  refactor: Bootstrap to AntD - Slider (#13989)
  chore(spa refactor): refactoring dashboard to use api's instead of bootstrapdata (#13306)
  fix(listview): update listview feature flag (#13906)
  Add docs for configuring Docker Compose setup (#13961)
  feat: invalid password error message (Postgres) (#14038)
  fix: flacky test in test_update_dataset_item_w_override_columns (#14082)
  feat: Implement Celery SoftTimeLimit handling (#13740)
  feat: only send alert error emails to owners of the alert (#13862)
  feat: add descriptions to report emails (#13827)
  Make chart exclude itself from cross filtering (#14046)
  fix: fix bug when remove chart not  removing it's related cross filter data (#14081)
  feat(native-filters): Add default first value to select filter (#13726)
  feat: Make async query JWT cookie domain configurable (#14007)
  fix: add exception to catch session not having JWT (#14036)

# Conflicts:
#	superset-frontend/src/dashboard/actions/hydrate.js
#	superset/views/core.py
amitmiran137 pushed a commit that referenced this pull request Apr 13, 2021
* master: (53 commits)
  test: Adds tests to the UndoRedoKeyListeners component (#13919)
  chore: Adds dataMask reducer to reducerIndex (#13951)
  test: Tests audit for the Dashboard FilterBar (#13916)
  fix: unable to apply logging format (#14074)
  refactor: Bootstrap to AntD - Slider (#13989)
  chore(spa refactor): refactoring dashboard to use api's instead of bootstrapdata (#13306)
  fix(listview): update listview feature flag (#13906)
  Add docs for configuring Docker Compose setup (#13961)
  feat: invalid password error message (Postgres) (#14038)
  fix: flacky test in test_update_dataset_item_w_override_columns (#14082)
  feat: Implement Celery SoftTimeLimit handling (#13740)
  feat: only send alert error emails to owners of the alert (#13862)
  feat: add descriptions to report emails (#13827)
  Make chart exclude itself from cross filtering (#14046)
  fix: fix bug when remove chart not  removing it's related cross filter data (#14081)
  feat(native-filters): Add default first value to select filter (#13726)
  feat: Make async query JWT cookie domain configurable (#14007)
  fix: add exception to catch session not having JWT (#14036)
  Use consistent chart value (#14031)
  fix: Use superset generic db to catch external_metadata queries (#13974)
  ...
allanco91 pushed a commit to allanco91/superset that referenced this pull request May 21, 2021
* only send alert error emails to owners of the alert

* reformat long lines

* fix send to owners and add tests

* fix pylint errors

* fix formatting
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
* only send alert error emails to owners of the alert

* reformat long lines

* fix send to owners and add tests

* fix pylint errors

* fix formatting
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.2.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/M 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants