diff --git a/UPDATING.md b/UPDATING.md index 375569448535b..2a6dcb8e8759b 100644 --- a/UPDATING.md +++ b/UPDATING.md @@ -21,6 +21,10 @@ under the License. This file documents any backwards-incompatible changes in Superset and assists people when migrating to a new version. +## 0.37.1 + +* [10794](https://github.com/apache/incubator-superset/pull/10794): Breaking change: `uuid` python package is not supported on Jinja2 anymore, only uuid functions are exposed eg: `uuid1`, `uuid3`, `uuid4`, `uuid5`. + ## 0.37.0 * [9964](https://github.com/apache/incubator-superset/pull/9964): Breaking change on Flask-AppBuilder 3. If you're using OAuth, find out what needs to be changed [here](https://github.com/dpgaspar/Flask-AppBuilder/blob/master/README.rst#change-log). diff --git a/docs/sqllab.rst b/docs/sqllab.rst index b582c53e209e0..27711cbfd0414 100644 --- a/docs/sqllab.rst +++ b/docs/sqllab.rst @@ -73,7 +73,10 @@ Superset's Jinja context: - ``time``: ``time`` - ``datetime``: ``datetime.datetime`` -- ``uuid``: ``uuid`` +- ``uuid1``: ``uuid1`` +- ``uuid3``: ``uuid3`` +- ``uuid4``: ``uuid4`` +- ``uuid5``: ``uuid5`` - ``random``: ``random`` - ``relativedelta``: ``dateutil.relativedelta.relativedelta`` diff --git a/superset/extensions.py b/superset/extensions.py index a0dad81555a43..2a35166ef89a7 100644 --- a/superset/extensions.py +++ b/superset/extensions.py @@ -48,7 +48,10 @@ def __init__(self) -> None: "relativedelta": relativedelta, "time": time, "timedelta": timedelta, - "uuid": uuid, + "uuid1": uuid.uuid1, + "uuid3": uuid.uuid3, + "uuid4": uuid.uuid4, + "uuid5": uuid.uuid5, } self._template_processors: Dict[str, Type["BaseTemplateProcessor"]] = {}