Skip to content

Commit 1acca7b

Browse files
authored
Merge branch 'master' into patch-1
2 parents 5842148 + 41538e6 commit 1acca7b

566 files changed

Lines changed: 44328 additions & 16277 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.codecov.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ codecov:
44
ignore:
55
- "superset/migrations/versions/*.py"
66
- "**/*.stories.tsx"
7+
- "examples/**/*"
78
coverage:
89
status:
910
project:

‎.github/workflows/pre-commit.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
python-version: ${{ matrix.python-version }}
156156

157157
- name: Setup Go
158-
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
158+
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
159159

160160
- name: Install helm-docs
161161
run: go install github.com/norwoodj/helm-docs/cmd/helm-docs@v1.14.2

‎.github/workflows/superset-frontend.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ jobs:
258258
bash -c "npm run build-storybook -- --webpack-stats-json"
259259
- name: Publish to Chromatic
260260
if: ${{ env.CHROMATIC_PROJECT_TOKEN != '' }}
261-
uses: chromaui/action@5d18868345f53a8f61258ad393396c7e169100fd # v18.14.4
261+
uses: chromaui/action@6efa19d4a40404313897de5a6d516e0333a2a787 # v18.14.5
262262
with:
263263
projectToken: ${{ env.CHROMATIC_PROJECT_TOKEN }}
264264
token: ${{ secrets.GITHUB_TOKEN }}

‎.github/workflows/superset-python-unittest.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ jobs:
6969
uses: $/.github/actions/setup-backend/
7070
with:
7171
python-version: ${{ matrix.python-version }}
72+
- name: Verify Teams SDK is available for authentication and delivery tests
73+
run: python -c "import microsoft_teams.apps"
7274
- name: Install HiveServer2 transport test dependencies
7375
run: uv pip install --system -e ".[hive,impala]"
7476
- name: SDK unit tests

‎.github/workflows/superset-translations.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,14 @@ jobs:
9595
if: steps.check.outputs.python == 'true' || steps.check.outputs.frontend == 'true'
9696
run: python scripts/translations/check_pot_drift.py
9797

98+
# The do-not-translate registry is only advisory on its own: the stamped
99+
# `#. do-not-translate` comment does not reject a translation, and
100+
# backfill_po.py only honours the registry for entries it generates. This
101+
# keeps a catalog from translating a machine-read token.
102+
- name: Check the do-not-translate registry is respected
103+
if: steps.check.outputs.python == 'true' || steps.check.outputs.frontend == 'true'
104+
run: python scripts/translations/check_do_not_translate.py
105+
98106
- name: Install gettext tools
99107
if: steps.check.outputs.python == 'true' || steps.check.outputs.frontend == 'true'
100108
uses: awalsh128/cache-apt-pkgs-action@553a35bb8ebd9fcabcb1c9451aa4c98e1b4ca8a9 # v1.6.3

‎.github/workflows/testcontainers.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ on:
2727
paths:
2828
- ".github/workflows/testcontainers.yml"
2929
- "tests/testcontainers/**"
30+
- "!tests/testcontainers/versioning/**"
3031
- "superset/db_engine_specs/**"
3132
- "pyproject.toml"
3233
- "requirements/development.in"
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
name: Version history databases
18+
19+
permissions:
20+
contents: read
21+
22+
on:
23+
schedule:
24+
- cron: "0 5 * * *"
25+
workflow_dispatch: {}
26+
pull_request:
27+
paths:
28+
- ".github/workflows/versioning-testcontainers.yml"
29+
- ".github/actions/setup-backend/**"
30+
- "tests/testcontainers/versioning/**"
31+
- "tests/testcontainers/db_engine_specs/_driver.py"
32+
- "tests/conftest.py"
33+
- "tests/integration_tests/test_app.py"
34+
- "tests/integration_tests/superset_test_config.py"
35+
- "pytest.ini"
36+
- "superset/versioning/**"
37+
- "superset/commands/deletion_retention/purge_cascade.py"
38+
- "superset/tasks/version_history_retention.py"
39+
- "superset/migrations/versions/2026-11-23_00-00_a7d29bc4e681_add_chart_archive_scope.py"
40+
- "superset/migrations/shared/utils.py"
41+
- "superset/initialization/__init__.py"
42+
- "superset/app.py"
43+
- "superset/config.py"
44+
- "superset/models/slice.py"
45+
- "superset/models/dashboard.py"
46+
- "superset/models/helpers.py"
47+
- "pyproject.toml"
48+
- "requirements/base.in"
49+
- "requirements/base.txt"
50+
- "requirements/development.in"
51+
- "requirements/development.txt"
52+
53+
concurrency:
54+
group: ${{ github.workflow }}-${{ github.ref }}
55+
cancel-in-progress: true
56+
57+
jobs:
58+
archive-history:
59+
if: github.event_name != 'schedule' || github.repository == 'apache/superset'
60+
runs-on: ubuntu-26.04
61+
timeout-minutes: 10
62+
strategy:
63+
fail-fast: false
64+
matrix:
65+
dialect: [POSTGRES, MYSQL]
66+
env:
67+
PYTHONPATH: ${{ github.workspace }}
68+
SUPERSET_TESTENV: true
69+
SUPERSET_SECRET_KEY: not-a-secret
70+
SUPERSET_TESTCONTAINERS_STRICT: true
71+
SUPERSET_VERSIONING_TEST_DIALECT: ${{ matrix.dialect }}
72+
steps:
73+
- name: Checkout
74+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
75+
with:
76+
persist-credentials: false
77+
- name: Setup Python
78+
uses: $/.github/actions/setup-backend/
79+
with:
80+
python-version: current
81+
- name: Run archive transaction and migration tests
82+
run: |
83+
pytest --durations-min=2 -v -m testcontainers \
84+
tests/testcontainers/versioning/test_chart_archive.py \
85+
--junit-xml=test-results/junit-archive-${{ matrix.dialect }}.xml
86+
- name: Upload JUnit test results
87+
if: always()
88+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
89+
with:
90+
name: junit-results-archive-${{ matrix.dialect }}
91+
path: test-results/
92+
retention-days: 7

‎Dockerfile‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ RUN --mount=type=cache,target=/root/.cache \
110110
# Runs the webpack build process
111111
COPY superset-frontend /app/superset-frontend
112112

113+
# oauth2CallbackScript.test.ts runs the actual inline script from this
114+
# template (not a reimplementation of it) so drift between the two can't
115+
# go unnoticed, which means the template needs to be present in this
116+
# frontend-only image too.
117+
COPY superset/templates/superset/oauth2.html /app/superset/templates/superset/oauth2.html
118+
113119
######################################################################
114120
# superset-node is used for compiling frontend assets
115121
######################################################################

‎README.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ Here are some of the major database solutions that are supported:
125125
<a href="https://superset.apache.org/docs/databases/supported/apache-pinot" title="Apache Pinot"><img src="docs/static/img/databases/apache-pinot.svg" alt="Apache Pinot" width="76" height="40" /></a> &nbsp;
126126
<a href="https://superset.apache.org/docs/databases/supported/apache-solr" title="Apache Solr"><img src="docs/static/img/databases/apache-solr.png" alt="Apache Solr" width="79" height="40" /></a> &nbsp;
127127
<a href="https://superset.apache.org/docs/databases/supported/apache-spark-sql" title="Apache Spark SQL"><img src="docs/static/img/databases/apache-spark.png" alt="Apache Spark SQL" width="75" height="40" /></a> &nbsp;
128-
<a href="https://superset.apache.org/docs/databases/supported/ascend" title="Ascend"><img src="docs/static/img/databases/ascend.webp" alt="Ascend" width="117" height="40" /></a> &nbsp;
129128
<a href="https://superset.apache.org/docs/databases/supported/aurora-mysql-data-api" title="Aurora MySQL (Data API)"><img src="docs/static/img/databases/mysql.png" alt="Aurora MySQL (Data API)" width="77" height="40" /></a> &nbsp;
130129
<a href="https://superset.apache.org/docs/databases/supported/aurora-postgresql-data-api" title="Aurora PostgreSQL (Data API)"><img src="docs/static/img/databases/postgresql.svg" alt="Aurora PostgreSQL (Data API)" width="76" height="40" /></a> &nbsp;
131130
<a href="https://superset.apache.org/docs/databases/supported/azure-data-explorer" title="Azure Data Explorer"><img src="docs/static/img/databases/kusto.png" alt="Azure Data Explorer" width="40" height="40" /></a> &nbsp;

‎UPDATING.md‎

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,39 @@ assists people when migrating to a new version.
2424

2525
## Next
2626

27+
- Dashboard history records related chart archives using the new
28+
`version_chart_archive_scope` table. Run `superset db upgrade` before deploying
29+
new archive writes with versioning capture enabled. During a rollout, activity
30+
reads tolerate a missing scope table and continue returning content history;
31+
archive capture skipped before the migration cannot be reconstructed or
32+
backfilled. Archive activity adds no content version and does not change
33+
recovery or content-restore behavior. Downgrade removes archive scopes and
34+
archive records but leaves content history intact; empty activity transactions
35+
may remain until normal history retention removes them.
36+
37+
- Version-history commit-time finalization rejects the whole save when a database
38+
error occurs outside a recoverable savepoint, including final field or child
39+
diff generation and version-transaction lookup. This applies to ordinary
40+
content saves as well as chart archives. A lost transaction or savepoint also
41+
rejects the save. Optional capture failures isolated by a successful savepoint
42+
rollback may still omit history without rejecting the save.
43+
44+
- `list` and `pages` are now reserved extension publisher names. An
45+
extension already published under either will fail manifest validation
46+
and the `superset-extensions` CLI will refuse to build it; the host owns
47+
`/extensions/list/` and `/extensions/pages/<id>`, so a publisher of those
48+
names could not be addressed. Rename the publisher and reinstall.
49+
50+
- `navigation.getPage()` can now return `'extension'`, for a page contributed
51+
by an extension. Code that switches exhaustively on the `Page` union will
52+
not compile until that member is handled, and code that switches without a
53+
default may fall through on an extension page at runtime.
54+
55+
- `navigation.getLocation().pathname` is relative to the application root, so
56+
on a deployment served under a prefix it does not carry that prefix.
57+
`navigation.getApplicationRoot()` reports the prefix for callers that need
58+
it, such as a `fetch` built by hand.
59+
2760
- Semantic-view user exclusions (`!=`, non-empty `NOT IN` without NULL, `NOT LIKE`, and `NOT ILIKE`) reach providers as an OR group with `IS_NULL`; upgrade leaf-only adapters before deploying the host, even if they accepted those operators before. See the [provider filter contract](docs/developer_docs/extensions/extension-points/semantic-layers.md#filter-expressions).
2861

2962
- Semantic views reject Histogram, Calendar Heatmap, Time-series Table, Time-series
@@ -258,6 +291,25 @@ assists people when migrating to a new version.
258291
non-empty viewers list restricts access regardless of the flag), and removing
259292
viewers remains possible so stale assignments can be cleared.
260293

294+
- [45929](https://github.com/apache/superset/pull/45929): Partition filter
295+
mapping (`PARTITION_FILTER_MAPPING`) only applies on engines whose spec sets
296+
`supports_partition_filter_mapping = True`: Hive and Impala, plus the specs
297+
that inherit from them -- Apache Spark SQL, Databricks Interactive Cluster
298+
(`databricks+pyhive://`) and Ascend. On every other engine -- Trino, Presto,
299+
PostgreSQL, the other Databricks connectors (Databricks SQL Python, legacy
300+
`databricks+connector://`, SQL Endpoint `databricks+pyodbc://`) and the
301+
rest -- an existing mapping **silently stops applying** after upgrade: no
302+
filter is mirrored onto the partition column, so queries that used to prune
303+
partitions scan the whole table. The dataset editor hides the mapping
304+
settings and Explore shows no pruning indicator. The stored mapping is kept,
305+
not deleted, and applies again if the dataset is pointed at a database on a
306+
supported engine.
307+
Superset logs a warning (`Ignoring partition filter mapping on dataset ...`)
308+
the first time each worker resolves such a mapping; search for it after
309+
upgrading to find affected datasets. A deployment that depends on mirroring
310+
on another engine has to add a predicate on the partition column to the
311+
affected charts, or opt that engine spec in.
312+
261313
- With a Redis Sentinel coordination backend (`DISTRIBUTED_COORDINATION_CONFIG`
262314
using `RedisSentinelCache`), coordination commands now honor `CACHE_REDIS_DB` and
263315
`CACHE_REDIS_USER`. Previously they always ran on DB 0 and without the ACL user.
@@ -2987,6 +3039,8 @@ Custom time ranges that use the "Now" or "Today" anchor (for the Start, End, or
29873039

29883040
Charts and dashboards using these anchors will compute a different (correct) timestamp after upgrading; if a chart's filters or drill-downs were tuned to compensate for the old offset, review them after upgrading.
29893041

3042+
- [43712](https://github.com/apache/superset/pull/43712): As the `ascend.io` platform shut down, its DB integration has been removed. Any existing `ascend://` DB connections and related resources (charts, datasets, etc.) will stop working after upgrading and must be either repointed or removed.
3043+
29903044
- [43916](https://github.com/apache/superset/pull/43916): The `docker-compose` dev loop now skips re-running `superset load_examples` on every `docker compose up` once the example data and dashboards are present in the databases (set `SUPERSET_FORCE_LOAD_EXAMPLES=yes` to reload them anyway), and the `superset-node` service now defaults `DISABLE_TS_CHECKER=true` like `docker-compose-light.yml` already did, skipping webpack's TypeScript type-checking pass in dev by default.
29913045

29923046
- `NOT IN` filters on SQLAlchemy-backed datasets now also return rows where the

0 commit comments

Comments
 (0)