superset/tests
Maxime Beauchemin 318e5347bc
feat: Alerts! allowing users to set SQL-based email alerts with screenshots (#9944)
* feat: add support for alerts

* Add ModelViews

* First pass at adding scheduled Alert support

* Fix syntax errors

* Add log_retention and database to model

* Improving screenshots

* Still refactoring screenshots

* Pass down thumb_size properly

* Progress on screenshot endpoint

* Add alerts.last_eval_dttm and alert query logic

* Getting ready to split compute_screenshot and screenshot/{SHA}

* split the endpoints

* Improving alerting loop

* empty methods

* Add CLI command 'superset alert' that runs a sched loop

* Getting things to work

* email delivery

* A working email\!

* Add feature flag

* Add some description_columns to AlertModelView

* Little tweaks

* Use database.get_df, eval cells for truthiness

* Migrate thumbnail/screenshot functions to use new arg pattern

* Addressing PR feedback

* Update alerts DB migration down_revision

* Resolve _deliver_email arg conflict

* Make mypy happy

* Make isort happy

* Make pylint happy

Co-authored-by: Rob DiCiuccio <rob.diciuccio@gmail.com>
2020-07-06 13:12:27 -07:00
..
charts feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
dashboards feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
datasets feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
db_engine_specs feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
fixtures feat: Add geospatial post processing operations (#9661) 2020-04-28 20:15:16 +03:00
queries feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
security feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
__init__.py Add licenses to translations (#6732) 2019-01-22 08:21:13 -08:00
access_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
base_api_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
base_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
cache_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
celery_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
config_tests.py s/assertEqual/assertEquals (#10195) 2020-06-29 16:38:06 -07:00
core_tests.py s/assertEqual/assertEquals (#10195) 2020-06-29 16:38:06 -07:00
dashboard_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
database_api_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
dataframe_test.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
datasource_tests.py s/assertEqual/assertEquals (#10195) 2020-06-29 16:38:06 -07:00
dict_import_export_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
druid_func_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
druid_func_tests_sip38.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
druid_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
email_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
event_logger_tests.py Event logger config takes instance instead of class (#7997) 2019-08-08 13:47:18 -07:00
feature_flag_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
form_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
import_export_tests.py feat: add database dropdown to dashboard import (#10118) 2020-07-05 15:08:37 -07:00
jinja_context_tests.py s/assertEqual/assertEquals (#10195) 2020-06-29 16:38:06 -07:00
load_examples_test.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
log_api_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
logging_configurator_tests.py Add LogConfigurator, and add logging for CSV export (#8085) 2019-08-27 13:22:18 -07:00
migration_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
model_tests.py s/assertEqual/assertEquals (#10195) 2020-06-29 16:38:06 -07:00
pandas_postprocessing_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
query_context_tests.py s/assertEqual/assertEquals (#10195) 2020-06-29 16:38:06 -07:00
result_set_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
schedules_test.py feat: Alerts! allowing users to set SQL-based email alerts with screenshots (#9944) 2020-07-06 13:12:27 -07:00
security_tests.py s/assertEqual/assertEquals (#10195) 2020-06-29 16:38:06 -07:00
sql_parse_tests.py fix: downgrade sqlparse and add unit test (#10165) 2020-07-06 11:10:46 -07:00
sql_validator_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
sqla_models_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
sqllab_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
stats_logger_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
strategy_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
superset_test_config.py fix: annotation layer json (#9915) 2020-05-27 09:02:03 -07:00
superset_test_config_sqllab_backend_persist.py [Build] Add Github workflows (#9517) 2020-04-14 13:38:09 -07:00
superset_test_config_thumbnails.py style(mypy): Spit-and-polish pass (#10001) 2020-06-07 08:53:46 -07:00
superset_test_custom_template_processors.py [sqllab] Add CUSTOM_TEMPLATE_PROCESSOR config (#9376) 2020-04-07 21:00:42 +01:00
tagging_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00
test_app.py Flask App factory PR #1 (#8418) 2019-11-20 15:47:06 +00:00
thumbnails_tests.py feat: Alerts! allowing users to set SQL-based email alerts with screenshots (#9944) 2020-07-06 13:12:27 -07:00
utils.py [format] Using Black (#7769) 2019-06-25 13:34:48 -07:00
utils_tests.py [log] Updating form-data logic (#10197) 2020-07-04 12:51:43 -07:00
viz_tests.py feat: Switch from nosetest to pytest (#10177) 2020-06-29 15:36:06 -07:00