-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: deprecate old alerts and dash/charts reports (#13440)
* docs: deprecated old alerts and dash/charts reports * revert celery default config * fix lint
- Loading branch information
Showing
7 changed files
with
100 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -424,6 +424,7 @@ def _try_json_readsha( # pylint: disable=unused-argument | |
|
||
# --------------------------------------------------- | ||
# Thumbnail config (behind feature flag) | ||
# Also used by Alerts & Reports | ||
# --------------------------------------------------- | ||
THUMBNAIL_SELENIUM_USER = "admin" | ||
THUMBNAIL_CACHE_CONFIG: CacheConfig = { | ||
|
@@ -891,24 +892,35 @@ class CeleryConfig: # pylint: disable=too-few-public-methods | |
SQL_QUERY_MUTATOR = None | ||
|
||
# Enable / disable scheduled email reports | ||
# | ||
# Warning: This config key is deprecated and will be removed in version 2.0.0" | ||
ENABLE_SCHEDULED_EMAIL_REPORTS = False | ||
|
||
# Enable / disable Alerts, where users can define custom SQL that | ||
# will send emails with screenshots of charts or dashboards periodically | ||
# if it meets the criteria | ||
# | ||
# Warning: This config key is deprecated and will be removed in version 2.0.0" | ||
ENABLE_ALERTS = False | ||
|
||
# --------------------------------------------------- | ||
# Alerts & Reports | ||
# --------------------------------------------------- | ||
# Used for Alerts/Reports (Feature flask ALERT_REPORTS) to set the size for the | ||
# sliding cron window size, should be synced with the celery beat config minus 1 second | ||
ALERT_REPORTS_CRON_WINDOW_SIZE = 59 | ||
# A custom prefix to use on all Alerts & Reports emails | ||
EMAIL_REPORTS_SUBJECT_PREFIX = "[Report] " | ||
|
||
# Slack API token for the superset reports | ||
SLACK_API_TOKEN = None | ||
SLACK_PROXY = None | ||
|
||
# If enabled, certail features are run in debug mode | ||
# If enabled, certain features are run in debug mode | ||
# Current list: | ||
# * Emails are sent using dry-run mode (logging only) | ||
# | ||
# Warning: This config key is deprecated and will be removed in version 2.0.0" | ||
SCHEDULED_EMAIL_DEBUG_MODE = False | ||
|
||
# This auth provider is used by background (offline) tasks that need to access | ||
|
@@ -917,26 +929,29 @@ class CeleryConfig: # pylint: disable=too-few-public-methods | |
MACHINE_AUTH_PROVIDER_CLASS = "superset.utils.machine_auth.MachineAuthProvider" | ||
|
||
# Email reports - minimum time resolution (in minutes) for the crontab | ||
# | ||
# Warning: This config key is deprecated and will be removed in version 2.0.0" | ||
EMAIL_REPORTS_CRON_RESOLUTION = 15 | ||
|
||
# The MAX duration (in seconds) a email schedule can run for before being killed | ||
# by celery. | ||
# | ||
# Warning: This config key is deprecated and will be removed in version 2.0.0" | ||
EMAIL_ASYNC_TIME_LIMIT_SEC = 300 | ||
|
||
# Email report configuration | ||
# From address in emails | ||
EMAIL_REPORT_FROM_ADDRESS = "[email protected]" | ||
|
||
# Send bcc of all reports to this address. Set to None to disable. | ||
# This is useful for maintaining an audit trail of all email deliveries. | ||
# | ||
# Warning: This config key is deprecated and will be removed in version 2.0.0" | ||
EMAIL_REPORT_BCC_ADDRESS = None | ||
|
||
# User credentials to use for generating reports | ||
# This user should have permissions to browse all the dashboards and | ||
# slices. | ||
# TODO: In the future, login as the owner of the item to generate reports | ||
# | ||
# Warning: This config key is deprecated and will be removed in version 2.0.0" | ||
EMAIL_REPORTS_USER = "admin" | ||
EMAIL_REPORTS_SUBJECT_PREFIX = "[Report] " | ||
|
||
# The webdriver to use for generating reports. Use one of the following | ||
# firefox | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters