Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
4f444ae
feat(ag-grid): Server Side Filtering for Column Level Filters (#35683)
amaannawab923 Jan 12, 2026
62c7b48
fix(extensions-cli): fix dev mode error (#37024)
villebro Jan 12, 2026
169d27c
fix(extensions): gracefully handle dist directory rebuilding (#37025)
villebro Jan 12, 2026
911d72c
fix(models): prevent SQLAlchemy and_() deprecation warning (#37020)
aminghadersohi Jan 12, 2026
d8f7ae8
fix(sqlglot): use Athena dialect for awsathena parsing (#36747)
ankitajhanwar2001 Jan 12, 2026
dcdcf88
chore(chart): rollback legend top alignment to the right (#36994)
LuisSanchez Jan 12, 2026
f4772a9
chore(deps-dev): bump webpack-bundle-analyzer from 5.1.0 to 5.1.1 in …
dependabot[bot] Jan 12, 2026
2a38ce0
fix(deckgl): remove visibility condition in deckgl stroke color (#37029)
DamianPendrak Jan 12, 2026
005b2af
chore(deps-dev): bump @types/lodash from 4.17.21 to 4.17.23 in /super…
dependabot[bot] Jan 12, 2026
4fe2085
chore(deps): bump caniuse-lite from 1.0.30001763 to 1.0.30001764 in /…
dependabot[bot] Jan 12, 2026
fac5d2b
feat(db): add dynamic schema support for athena (#36003)
ishmulyan Jan 12, 2026
22cfc45
fix(export): URL prefix handling for subdirectory deployments (#36771)
sadpandajoe Jan 12, 2026
72c69e2
chore(deps): bump fs-extra from 11.3.0 to 11.3.3 in /superset-fronten…
dependabot[bot] Jan 12, 2026
d56bc58
chore(deps-dev): bump @applitools/eyes-storybook from 3.60.0 to 3.63.…
dependabot[bot] Jan 12, 2026
adb575b
chore(deps-dev): bump typescript-eslint from 8.50.1 to 8.52.0 in /doc…
dependabot[bot] Jan 12, 2026
fa3d4a7
chore(deps): bump actions/download-artifact from 6 to 7 (#36699)
dependabot[bot] Jan 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/superset-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Download Docker Image Artifact
uses: actions/download-artifact@v6
uses: actions/download-artifact@v7
with:
name: docker-image

Expand Down
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@storybook/theming": "^8.6.11",
"@superset-ui/core": "^0.20.4",
"antd": "^6.1.2",
"caniuse-lite": "^1.0.30001763",
"caniuse-lite": "^1.0.30001764",
"docusaurus-plugin-less": "^2.0.2",
"js-yaml": "^4.1.1",
"js-yaml-loader": "^1.2.2",
Expand Down Expand Up @@ -87,7 +87,7 @@
"globals": "^17.0.0",
"prettier": "^3.7.4",
"typescript": "~5.9.3",
"typescript-eslint": "^8.50.1",
"typescript-eslint": "^8.52.0",
"webpack": "^5.104.1"
},
"browserslist": {
Expand Down
138 changes: 21 additions & 117 deletions docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2337,7 +2337,7 @@
resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.25.9.tgz#585624dc829cfb6e7c0aa6c3ca7d7e6daa87e34f"
integrity sha512-PPOl1mi6lpLNQxnGoyAfschAodRFYXJ+9fs6WHXz7CSWKbOqiMZsubC+BQsVKuul+3vKLuwTHsS2c2y9EoKwxQ==

"@eslint-community/eslint-utils@^4.7.0", "@eslint-community/eslint-utils@^4.8.0":
"@eslint-community/eslint-utils@^4.8.0":
version "4.9.0"
resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz#7308df158e064f0dd8b8fdb58aa14fa2a7f913b3"
integrity sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==
Expand All @@ -2351,7 +2351,7 @@
dependencies:
eslint-visitor-keys "^3.4.3"

"@eslint-community/regexpp@^4.10.0", "@eslint-community/regexpp@^4.12.1", "@eslint-community/regexpp@^4.12.2":
"@eslint-community/regexpp@^4.12.1", "@eslint-community/regexpp@^4.12.2":
version "4.12.2"
resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.12.2.tgz#bccdf615bcf7b6e8db830ec0b8d21c9a25de597b"
integrity sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==
Expand Down Expand Up @@ -4447,21 +4447,7 @@
dependencies:
"@types/yargs-parser" "*"

"@typescript-eslint/[email protected]":
version "8.50.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.50.1.tgz#b56e422fb82eb40fae04905f1444aef0298b634b"
integrity sha512-PKhLGDq3JAg0Jk/aK890knnqduuI/Qj+udH7wCf0217IGi4gt+acgCyPVe79qoT+qKUvHMDQkwJeKW9fwl8Cyw==
dependencies:
"@eslint-community/regexpp" "^4.10.0"
"@typescript-eslint/scope-manager" "8.50.1"
"@typescript-eslint/type-utils" "8.50.1"
"@typescript-eslint/utils" "8.50.1"
"@typescript-eslint/visitor-keys" "8.50.1"
ignore "^7.0.0"
natural-compare "^1.4.0"
ts-api-utils "^2.1.0"

"@typescript-eslint/eslint-plugin@^8.52.0":
"@typescript-eslint/[email protected]", "@typescript-eslint/eslint-plugin@^8.52.0":
version "8.52.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.52.0.tgz#9a9f1d2ee974ed77a8b1bda94e77123f697ee8b4"
integrity sha512-okqtOgqu2qmZJ5iN4TWlgfF171dZmx2FzdOv2K/ixL2LZWDStL8+JgQerI2sa8eAEfoydG9+0V96m7V+P8yE1Q==
Expand All @@ -4475,18 +4461,7 @@
natural-compare "^1.4.0"
ts-api-utils "^2.4.0"

"@typescript-eslint/[email protected]":
version "8.50.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.50.1.tgz#9772760c0c4090ba3e8b43c796128ff88aff345c"
integrity sha512-hM5faZwg7aVNa819m/5r7D0h0c9yC4DUlWAOvHAtISdFTc8xB86VmX5Xqabrama3wIPJ/q9RbGS1worb6JfnMg==
dependencies:
"@typescript-eslint/scope-manager" "8.50.1"
"@typescript-eslint/types" "8.50.1"
"@typescript-eslint/typescript-estree" "8.50.1"
"@typescript-eslint/visitor-keys" "8.50.1"
debug "^4.3.4"

"@typescript-eslint/parser@^8.52.0":
"@typescript-eslint/[email protected]", "@typescript-eslint/parser@^8.52.0":
version "8.52.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.52.0.tgz#9fae9f5f13ebb1c8f31a50c34381bfd6bf96a05f"
integrity sha512-iIACsx8pxRnguSYhHiMn2PvhvfpopO9FXHyn1mG5txZIsAaB6F0KwbFnUQN3KCiG3Jcuad/Cao2FAs1Wp7vAyg==
Expand All @@ -4497,15 +4472,6 @@
"@typescript-eslint/visitor-keys" "8.52.0"
debug "^4.4.3"

"@typescript-eslint/[email protected]":
version "8.50.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/project-service/-/project-service-8.50.1.tgz#3176e55ac2907638f4b8d43da486c864934adc8d"
integrity sha512-E1ur1MCVf+YiP89+o4Les/oBAVzmSbeRB0MQLfSlYtbWU17HPxZ6Bhs5iYmKZRALvEuBoXIZMOIRRc/P++Ortg==
dependencies:
"@typescript-eslint/tsconfig-utils" "^8.50.1"
"@typescript-eslint/types" "^8.50.1"
debug "^4.3.4"

"@typescript-eslint/[email protected]":
version "8.52.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/project-service/-/project-service-8.52.0.tgz#5fb4c16af4eda6d74c70cbc62f5d3f77b96e4cbe"
Expand All @@ -4515,14 +4481,6 @@
"@typescript-eslint/types" "^8.52.0"
debug "^4.4.3"

"@typescript-eslint/[email protected]":
version "8.50.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.50.1.tgz#4a7cd64bcd45990865bdb2bedcacbfeccbd08193"
integrity sha512-mfRx06Myt3T4vuoHaKi8ZWNTPdzKPNBhiblze5N50//TSHOAQQevl/aolqA/BcqqbJ88GUnLqjjcBc8EWdBcVw==
dependencies:
"@typescript-eslint/types" "8.50.1"
"@typescript-eslint/visitor-keys" "8.50.1"

"@typescript-eslint/[email protected]":
version "8.52.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.52.0.tgz#9884ff690fad30380ccabfb08af1ac200af6b4e5"
Expand All @@ -4531,27 +4489,11 @@
"@typescript-eslint/types" "8.52.0"
"@typescript-eslint/visitor-keys" "8.52.0"

"@typescript-eslint/[email protected]", "@typescript-eslint/tsconfig-utils@^8.50.1":
version "8.50.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.50.1.tgz#ee4894bec14ef13db305d0323b14b109d996f116"
integrity sha512-ooHmotT/lCWLXi55G4mvaUF60aJa012QzvLK0Y+Mp4WdSt17QhMhWOaBWeGTFVkb2gDgBe19Cxy1elPXylslDw==

"@typescript-eslint/[email protected]", "@typescript-eslint/tsconfig-utils@^8.52.0":
version "8.52.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.52.0.tgz#0296751c22ed05c83787a6eaec65ae221bd8b8ed"
integrity sha512-jl+8fzr/SdzdxWJznq5nvoI7qn2tNYV/ZBAEcaFMVXf+K6jmXvAFrgo/+5rxgnL152f//pDEAYAhhBAZGrVfwg==

"@typescript-eslint/[email protected]":
version "8.50.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-8.50.1.tgz#7bbc79baa03aee6e3b3faf14bb0b8a78badb2370"
integrity sha512-7J3bf022QZE42tYMO6SL+6lTPKFk/WphhRPe9Tw/el+cEwzLz1Jjz2PX3GtGQVxooLDKeMVmMt7fWpYRdG5Etg==
dependencies:
"@typescript-eslint/types" "8.50.1"
"@typescript-eslint/typescript-estree" "8.50.1"
"@typescript-eslint/utils" "8.50.1"
debug "^4.3.4"
ts-api-utils "^2.1.0"

"@typescript-eslint/[email protected]":
version "8.52.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-8.52.0.tgz#6e554113f8a074cf9b2faa818d2ebfccb867d6c5"
Expand All @@ -4563,31 +4505,11 @@
debug "^4.4.3"
ts-api-utils "^2.4.0"

"@typescript-eslint/[email protected]":
version "8.50.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.50.1.tgz#43d19e99613788e0715f799a29f139981bcd8385"
integrity sha512-v5lFIS2feTkNyMhd7AucE/9j/4V9v5iIbpVRncjk/K0sQ6Sb+Np9fgYS/63n6nwqahHQvbmujeBL7mp07Q9mlA==

"@typescript-eslint/[email protected]", "@typescript-eslint/types@^8.50.1", "@typescript-eslint/types@^8.52.0":
"@typescript-eslint/[email protected]", "@typescript-eslint/types@^8.52.0":
version "8.52.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.52.0.tgz#1eb0a16b324824bc23b89d109a267c38c9213c4a"
integrity sha512-LWQV1V4q9V4cT4H5JCIx3481iIFxH1UkVk+ZkGGAV1ZGcjGI9IoFOfg3O6ywz8QqCDEp7Inlg6kovMofsNRaGg==

"@typescript-eslint/[email protected]":
version "8.50.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.50.1.tgz#ce273e584694fa5bd34514fcfbea51fe1d79e271"
integrity sha512-woHPdW+0gj53aM+cxchymJCrh0cyS7BTIdcDxWUNsclr9VDkOSbqC13juHzxOmQ22dDkMZEpZB+3X1WpUvzgVQ==
dependencies:
"@typescript-eslint/project-service" "8.50.1"
"@typescript-eslint/tsconfig-utils" "8.50.1"
"@typescript-eslint/types" "8.50.1"
"@typescript-eslint/visitor-keys" "8.50.1"
debug "^4.3.4"
minimatch "^9.0.4"
semver "^7.6.0"
tinyglobby "^0.2.15"
ts-api-utils "^2.1.0"

"@typescript-eslint/[email protected]":
version "8.52.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.52.0.tgz#2ad7721c671be2127951286cb7f44c4ce55b0591"
Expand All @@ -4603,16 +4525,6 @@
tinyglobby "^0.2.15"
ts-api-utils "^2.4.0"

"@typescript-eslint/[email protected]":
version "8.50.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.50.1.tgz#054db870952e7526c3cf2162a2ff6e9434e544d0"
integrity sha512-lCLp8H1T9T7gPbEuJSnHwnSuO9mDf8mfK/Nion5mZmiEaQD9sWf9W4dfeFqRyqRjF06/kBuTmAqcs9sewM2NbQ==
dependencies:
"@eslint-community/eslint-utils" "^4.7.0"
"@typescript-eslint/scope-manager" "8.50.1"
"@typescript-eslint/types" "8.50.1"
"@typescript-eslint/typescript-estree" "8.50.1"

"@typescript-eslint/[email protected]":
version "8.52.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.52.0.tgz#b249be8264899b80d996fa353b4b84da4662f962"
Expand All @@ -4623,14 +4535,6 @@
"@typescript-eslint/types" "8.52.0"
"@typescript-eslint/typescript-estree" "8.52.0"

"@typescript-eslint/[email protected]":
version "8.50.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.50.1.tgz#13b9d43b7567862faca69527580b9adda1a5c9fd"
integrity sha512-IrDKrw7pCRUR94zeuCSUWQ+w8JEf5ZX5jl/e6AHGSLi1/zIr0lgutfn/7JpfCey+urpgQEdrZVYzCaVVKiTwhQ==
dependencies:
"@typescript-eslint/types" "8.50.1"
eslint-visitor-keys "^4.2.1"

"@typescript-eslint/[email protected]":
version "8.52.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.52.0.tgz#50361c48a6302676230fe498f80f6decce4bf673"
Expand Down Expand Up @@ -5506,10 +5410,10 @@ caniuse-api@^3.0.0:
lodash.memoize "^4.1.2"
lodash.uniq "^4.5.0"

caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001702, caniuse-lite@^1.0.30001759, caniuse-lite@^1.0.30001763:
version "1.0.30001763"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001763.tgz#9397446dd110b1aeadb0df249c41b2ece7f90f09"
integrity sha512-mh/dGtq56uN98LlNX9qdbKnzINhX0QzhiWBFEkFfsFO4QyCvL8YegrJAazCwXIeqkIob8BlZPGM3xdnY+sgmvQ==
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001702, caniuse-lite@^1.0.30001759, caniuse-lite@^1.0.30001764:
version "1.0.30001764"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001764.tgz#03206c56469f236103b90f9ae10bcb8b9e1f6005"
integrity sha512-9JGuzl2M+vPL+pz70gtMF9sHdMFbY9FJaQBi186cHKH3pSzDvzoUJUPV6fqiKIMyXbud9ZLg4F3Yza1vJ1+93g==

ccount@^2.0.0:
version "2.0.1"
Expand Down Expand Up @@ -8298,7 +8202,7 @@ ignore@^5.2.0, ignore@^5.2.4:
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5"
integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==

ignore@^7.0.0, ignore@^7.0.5:
ignore@^7.0.5:
version "7.0.5"
resolved "https://registry.yarnpkg.com/ignore/-/ignore-7.0.5.tgz#4cb5f6cd7d4c7ab0365738c7aea888baa6d7efd9"
integrity sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==
Expand Down Expand Up @@ -10296,7 +10200,7 @@ minimatch@^7.4.3:
dependencies:
brace-expansion "^2.0.1"

minimatch@^9.0.4, minimatch@^9.0.5:
minimatch@^9.0.5:
version "9.0.5"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.5.tgz#d74f9dd6b57d83d8e98cfb82133b03978bc929e5"
integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==
Expand Down Expand Up @@ -12539,7 +12443,7 @@ semver@^6.3.1:
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4"
integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==

semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.5.4, semver@^7.6.0, semver@^7.6.2:
semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.5.4, semver@^7.6.2:
version "7.7.2"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.2.tgz#67d99fdcd35cec21e6f8b87a7fd515a33f982b58"
integrity sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==
Expand Down Expand Up @@ -13425,7 +13329,7 @@ trough@^2.0.0:
resolved "https://registry.yarnpkg.com/trough/-/trough-2.2.0.tgz#94a60bd6bd375c152c1df911a4b11d5b0256f50f"
integrity sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==

ts-api-utils@^2.1.0, ts-api-utils@^2.4.0:
ts-api-utils@^2.4.0:
version "2.4.0"
resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-2.4.0.tgz#2690579f96d2790253bdcf1ca35d569ad78f9ad8"
integrity sha512-3TaVTaAv2gTiMB35i3FiGJaRfwb3Pyn/j3m/bfAvGe8FB7CF6u+LMYqYlDh7reQf7UNvoTvdfAqHGmPGOSsPmA==
Expand Down Expand Up @@ -13560,15 +13464,15 @@ types-ramda@^0.30.1:
dependencies:
ts-toolbelt "^9.6.0"

typescript-eslint@^8.50.1:
version "8.50.1"
resolved "https://registry.yarnpkg.com/typescript-eslint/-/typescript-eslint-8.50.1.tgz#047df900e568757bc791b6b1ab6fa5fbed9b2393"
integrity sha512-ytTHO+SoYSbhAH9CrYnMhiLx8To6PSSvqnvXyPUgPETCvB6eBKmTI9w6XMPS3HsBRGkwTVBX+urA8dYQx6bHfQ==
typescript-eslint@^8.52.0:
version "8.52.0"
resolved "https://registry.yarnpkg.com/typescript-eslint/-/typescript-eslint-8.52.0.tgz#b8c156b6f2b4dee202a85712ff6a37f614476413"
integrity sha512-atlQQJ2YkO4pfTVQmQ+wvYQwexPDOIgo+RaVcD7gHgzy/IQA+XTyuxNM9M9TVXvttkF7koBHmcwisKdOAf2EcA==
dependencies:
"@typescript-eslint/eslint-plugin" "8.50.1"
"@typescript-eslint/parser" "8.50.1"
"@typescript-eslint/typescript-estree" "8.50.1"
"@typescript-eslint/utils" "8.50.1"
"@typescript-eslint/eslint-plugin" "8.52.0"
"@typescript-eslint/parser" "8.52.0"
"@typescript-eslint/typescript-estree" "8.52.0"
"@typescript-eslint/utils" "8.52.0"

typescript@~5.9.3:
version "5.9.3"
Expand Down
5 changes: 0 additions & 5 deletions superset-extensions-cli/src/superset_extensions_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,11 +363,6 @@ def frontend_watcher() -> None:
def backend_watcher() -> None:
if backend_dir.exists():
rebuild_backend(cwd)
dist_dir = cwd / "dist"
manifest_path = dist_dir / "manifest.json"
if manifest_path.exists():
manifest = json.loads(manifest_path.read_text())
write_manifest(cwd, manifest)

# Build watch message based on existing directories
watch_dirs = []
Expand Down
24 changes: 8 additions & 16 deletions superset-extensions-cli/tests/test_cli_dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,23 +216,15 @@ def test_frontend_watcher_function_coverage(isolated_filesystem):

@pytest.mark.unit
def test_backend_watcher_function_coverage(isolated_filesystem):
"""Test backend watcher function for coverage."""
# Create dist directory with manifest
dist_dir = isolated_filesystem / "dist"
dist_dir.mkdir()

manifest_data = {"name": "test", "version": "1.0.0"}
(dist_dir / "manifest.json").write_text(json.dumps(manifest_data))
"""Test backend watcher function only rebuilds backend files."""
# Create backend directory
backend_dir = isolated_filesystem / "backend"
backend_dir.mkdir()

with patch("superset_extensions_cli.cli.rebuild_backend") as mock_rebuild:
with patch("superset_extensions_cli.cli.write_manifest") as mock_write:
# Simulate backend watcher function
# Simulate backend watcher function - it only rebuilds backend
if backend_dir.exists():
mock_rebuild(isolated_filesystem)

manifest_path = dist_dir / "manifest.json"
if manifest_path.exists():
manifest = json.loads(manifest_path.read_text())
mock_write(isolated_filesystem, manifest)

mock_rebuild.assert_called_once_with(isolated_filesystem)
mock_write.assert_called_once()
# Backend watcher should only call rebuild_backend
mock_rebuild.assert_called_once_with(isolated_filesystem)
Loading
Loading