Compare commits

...

3 Commits

Author SHA1 Message Date
Đỗ Trọng Hải
7a52c89a7f Merge branch 'master' into fix/export-api-returns-stale-resources 2026-07-18 13:10:46 +07:00
dependabot[bot]
e495fd80f6 chore(deps-dev): bump eslint from 10.6.0 to 10.7.0 in /superset-frontend (#42188)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-18 13:01:56 +07:00
hainenber
c77c709b79 fix(backend): export API no longer returns stale resources
Signed-off-by: hainenber <dotronghai96@gmail.com>
2026-07-02 22:19:12 +07:00
8 changed files with 11 additions and 5 deletions

View File

@@ -227,7 +227,7 @@
"copy-webpack-plugin": "^14.0.0",
"cross-env": "^10.1.0",
"css-loader": "^7.1.4",
"eslint": "^10.6.0",
"eslint": "^10.7.0",
"eslint-config-prettier": "^10.1.8",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-import-resolver-typescript": "^4.4.5",
@@ -19418,9 +19418,9 @@
}
},
"node_modules/eslint": {
"version": "10.6.0",
"resolved": "https://registry.npmjs.org/eslint/-/eslint-10.6.0.tgz",
"integrity": "sha512-6lVbcqSodALYo+4ELD0heG6lFiFxnLMuLkiMi2qV8LMp54N8tE8FT1GMH+ev4Ti00nFjNze2+Su6DsV5OQW3Dg==",
"version": "10.7.0",
"resolved": "https://registry.npmjs.org/eslint/-/eslint-10.7.0.tgz",
"integrity": "sha512-GVTD7s1vdIl6UYvAfriOPeY1Df8LIZjfofLvHwde+erDHGGuHyuM6xoxRxmHiebhYuD2p1vN4wWh0XzPARSGDQ==",
"dev": true,
"license": "MIT",
"workspaces": [

View File

@@ -312,7 +312,7 @@
"copy-webpack-plugin": "^14.0.0",
"cross-env": "^10.1.0",
"css-loader": "^7.1.4",
"eslint": "^10.6.0",
"eslint": "^10.7.0",
"eslint-config-prettier": "^10.1.8",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-import-resolver-typescript": "^4.4.5",

View File

@@ -1084,6 +1084,7 @@ class ChartRestApi(SoftDeleteApiMixin, BaseSupersetModelRestApi):
mimetype="application/zip",
as_attachment=True,
download_name=filename,
max_age=0,
)
if token := sanitize_cookie_token(request.args.get("token")):
response.set_cookie(token, "done", max_age=600)

View File

@@ -1478,6 +1478,7 @@ class DashboardRestApi(
mimetype="application/zip",
as_attachment=True,
download_name=filename,
max_age=0,
)
if token := sanitize_cookie_token(request.args.get("token")):
response.set_cookie(token, "done", max_age=600)

View File

@@ -747,6 +747,7 @@ class DatasetRestApi(SoftDeleteApiMixin, BaseSupersetModelRestApi):
mimetype="application/zip",
as_attachment=True,
download_name=filename,
max_age=0,
)
if token := sanitize_cookie_token(request.args.get("token")):
response.set_cookie(token, "done", max_age=600)

View File

@@ -89,6 +89,7 @@ class ImportExportRestApi(BaseSupersetApi):
mimetype="application/zip",
as_attachment=True,
download_name=filename,
max_age=0,
)
return response

View File

@@ -312,6 +312,7 @@ class SavedQueryRestApi(BaseSupersetModelRestApi):
mimetype="application/zip",
as_attachment=True,
download_name=filename,
max_age=0,
)
if token := sanitize_cookie_token(request.args.get("token")):
response.set_cookie(token, "done", max_age=600)

View File

@@ -489,6 +489,7 @@ class ThemeRestApi(BaseSupersetModelRestApi):
mimetype="application/zip",
as_attachment=True,
download_name=filename,
max_age=0,
)
if token := sanitize_cookie_token(request.args.get("token")):
response.set_cookie(token, "done", max_age=600)