This file documents any backwards-incompatible changes in Superset and assists people when migrating to a new version.
8370: Deprecates the HTTP_HEADERS
variable in favor of DEFAULT_HTTP_HEADERS
and OVERRIDE_HTTP_HEADERS
. To retain the same behavior you should use OVERRIDE_HTTP_HEADERS
instead of HTTP_HEADERS
. HTTP_HEADERS
will still work but may be removed in a future update.
We're deprecating the concept of “restricted metric”, this feature was not fully working anyhow.
8117: If you are using ENABLE_PROXY_FIX = True
, review the newly-introducted variable, PROXY_FIX_CONFIG
, which changes the proxy behavior in accordance with Werkzeug
8069: introduces MessagePack and PyArrow for async query results backend serialization. To disable set RESULTS_BACKEND_USE_MSGPACK = False
in your configuration.
8371: makes tables.table_name
, dbs.database_name
, datasources.cluster_name
, and clusters.cluster_name
non-nullable. Depending on the integrity of the data, manual intervention may be required.
7848: If you are running redis with celery, celery bump to 4.3.0 requires redis-py upgrade to 3.2.0 or later.
7667: a change to make all Unix timestamp (which by definition are in UTC) comparisons refer to a timestamp in UTC as opposed to local time.
7653: a change which deprecates the table_columns.database_expression column. Expressions should be handled by the DB engine spec conversion, Python date format, or custom column expression/type.
The repo no longer contains translation binaries (.mo
) files. If you want translations in your build, you now have to run the command babel-compile --target superset/translations
as part of your builds
5451: a change which adds missing non-nullable fields to the datasources
table. Depending on the integrity of the data, manual intervention may be required.
5452: a change which adds missing non-nullable fields and uniqueness constraints (which may be case insensitive depending on your database configuration) to the columns
and table_columns
tables. Depending on the integrity of the data, manual intervention may be required.
fabmanager
command line is deprecated since Flask-AppBuilder 2.0.0, use the new flask fab <command>
integrated with Flask cli.
SUPERSET_UPDATE_PERMS
environment variable was replaced by FAB_UPDATE_PERMS
config boolean key. To disable automatic creation of permissions set FAB_UPDATE_PERMS = False
on config.
5453: a change which adds missing non-nullable fields and uniqueness constraints (which may be case insensitive depending on your database configuration) to the metrics and sql_metrics tables. Depending on the integrity of the data, manual intervention may be required.
7616: this bug fix changes time_compare deltas to correctly evaluate to the number of days prior instead of number of days in the future. It will change the data for advanced analytics time_compare so 1 year
from 5/1/2019 will be calculated as 365 days instead of 366 days.
npm run backend-sync
is deprecated and no longer needed, will fail if calledIf you use Hive
or Presto
, we've moved some dependencies that were in the main package as optional now. To get these packages, run pip install superset[presto]
and/or pip install superset[hive]
as required.
Similarly, if you use Celery's flower
, gsheetsdb
, thrift
or thrift-sasl
, those dependencies have now been made optional in our package, meaning you may have to install them in your environment post 0.31.0
boto3 / botocore was removed from the dependency list. If you use s3 as a place to store your SQL Lab result set or Hive uploads, you may have to rely on an alternate requirements.txt file to install those dependencies.
From 0.31.0 onwards, we recommend not using the npm package yarn
in favor of good old npm install
. While yarn should still work just fine, you should probably align to guarantee builds similar to the ones we use in testing and across the community in general.
Support for Python 2 is deprecated, we only support >=3.6 from 0.28.0
onwards
Superset 0.28 deprecates the previous dashboard layout. While 0.27 offered a migration workflow to users and allowed them to validate and publish their migrated dashboards individually, 0.28 forces the migration of all dashboards through an automated db migration script. We do recommend that you take a backup prior to this migration.
Superset 0.28 deprecates the median
cluster label aggregator for mapbox visualizations. This particular aggregation is not supported on mapbox visualizations going forward.
Superset 0.28 upgrades flask-login
to >=0.3
, which includes a backwards-incompatible change: g.user.is_authenticated
, g.user.is_anonymous
, and g.user.is_active
are now properties instead of methods.
superset worker
CLI, which is a simple wrapper around the celery worker
command, forcing you into crafting your own native celery worker
command. Your command should look something like celery worker --app=superset.sql_lab:celery_app --pool=gevent -Ofair
Superset 0.25.0 contains a backwards incompatible changes. If you run a production system you should schedule downtime for this upgrade.
The PRs bellow have more information around the breaking changes:
from flask_appbuilder.security.sqla.manager import SecurityManager
, you now have to derive Superset's own derivative superset.security.SupersetSecurityManager
. This can provide you with more hooks to define your own logic and/or defer permissions to another system as needed. For all implementation, you simply have to import and derive SupersetSecurityManager
in place of the SecurityManager
setup.py
now only pins versions where required, giving you more latitude in using versions of libraries as needed. We do now provide a requirements.txt
with pinned versions if you want to run the suggested versions that Superset
builds and runs tests against. Simply pip install -r requirements.txt
in your build pipeline, likely prior to pip install superset==0.25.0