diff --git a/manage.py b/manage.py index 1e484c9451..66a67babd4 100755 --- a/manage.py +++ b/manage.py @@ -43,12 +43,15 @@ def make_shell_context(): @manager.command def check_settings(): """Show the settings as re:dash sees them (useful for debugging).""" - from types import ModuleType + for name, item in settings.all_settings().iteritems(): + print "{} = {}".format(name, item) - for name in dir(settings): - item = getattr(settings, name) - if not callable(item) and not name.startswith("__") and not isinstance(item, ModuleType): - print "{} = {}".format(name, item) +@manager.command +def send_test_mail(): + from redash import mail + from flask_mail import Message + + mail.send(Message(subject="Test Message from re:dash", recipients=[settings.MAIL_DEFAULT_SENDER], body="Test message.")) if __name__ == '__main__': diff --git a/migrations/0010_create_alerts.py b/migrations/0010_create_alerts.py new file mode 100644 index 0000000000..111c1256d9 --- /dev/null +++ b/migrations/0010_create_alerts.py @@ -0,0 +1,8 @@ +from redash.models import db, Alert, AlertSubscription + +if __name__ == '__main__': + with db.database.transaction(): + Alert.create_table() + AlertSubscription.create_table() + + db.close_db(None) diff --git a/rd_ui/.jshintrc b/rd_ui/.jshintrc index 40377ba25e..42aab37a7f 100644 --- a/rd_ui/.jshintrc +++ b/rd_ui/.jshintrc @@ -19,6 +19,7 @@ "trailing": true, "smarttabs": true, "globals": { - "angular": false + "angular": false, + "_": false } } diff --git a/rd_ui/app/index.html b/rd_ui/app/index.html index ff20acdb7a..3e491b748c 100644 --- a/rd_ui/app/index.html +++ b/rd_ui/app/index.html @@ -73,6 +73,9 @@
  • Queries
  • +
  • + Alerts +