Skip to content

Commit

Permalink
Sdktechno 274 (#670)
Browse files Browse the repository at this point in the history
Fix Superset SQL Lab
  • Loading branch information
NicolasCD authored Nov 8, 2024
1 parent 71ed690 commit 020ac28
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
("csvtodatabaseview", prefix), # menu Data
("exceltodatabaseview", prefix), # menu Data
("savedqueryview", prefix), # menu SQL Lab
("csstemplateasyncmodelview", prefix) # when creating a new dashboard
("csstemplateasyncmodelview", prefix), # when creating a new dashboard
("explore", prefix) # when creating a new dashboard
]


Expand Down Expand Up @@ -58,7 +59,8 @@
('window.location.pathname.split("/")[3]', 'window.location.pathname.split("/")[4]'),
('${window.location.origin}/superset/', '${window.location.origin}/' + prefix + '/superset/'),
('api/v1/explore', prefix + '/api/v1/explore'),
('`api/v1/dashboard', '`' + prefix + 'api/v1/dashboard')
('`api/v1/dashboard', '`' + prefix + '/api/v1/dashboard'),
('/explore/?form_data_key', prefix + '/explore/?form_data_key')
]

simpleReplacementsInCss: list = [
Expand All @@ -70,6 +72,10 @@
('href="/"','href="/' + prefix + '/"')
]

simpleReplacementsInCssMap: list = [
('/explore/?form_data_key', prefix + '/explore/?form_data_key')
]

BASE_DIR = "/app/superset/"
ASSET_DIR = f"{BASE_DIR}static/assets/"
TEMPLATES_DIR = f"{BASE_DIR}templates/"
Expand All @@ -86,6 +92,8 @@
urlFixer.smart_replace(replacementsEverywhere, ASSET_DIR, ".js.map")
print('smart_replace - replacementsInJavascript - ASSET_DIR - .js.map')
urlFixer.smart_replace(replacementsInJavascript, ASSET_DIR, ".js.map")
print('simple_replace - simpleReplacementsInCssMap - ASSET_DIR - .js.map')
urlFixer.simple_replace(simpleReplacementsInCssMap, ASSET_DIR, ".js.map")

print('smart_replace - replacementsEverywhere - ASSET_DIR - .css')
urlFixer.smart_replace(replacementsEverywhere, ASSET_DIR, ".css")
Expand All @@ -105,4 +113,4 @@
print('smart_replace - replacementsEverywhere - BASE_DIR - .py')
urlFixer.smart_replace(replacementsEverywhere, BASE_DIR, ".py")
print('simple_replace - replacementsInPython - BASE_DIR - .py')
urlFixer.simple_replace(replacementsInPython, BASE_DIR, ".py")
urlFixer.simple_replace(replacementsInPython, BASE_DIR, ".py")
Original file line number Diff line number Diff line change
@@ -1 +1 @@
001
002
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
image: saagie/superset
baseTag: 3.0.2
dynamicVersion: 1.179.0_SDKTECHNO-256
version: 3.0.2-1.179.0
dynamicVersion: 1.192.0_SDKTECHNO-274
version: 3.0.2-1.192.0_SDKTECHNO-274
2 changes: 1 addition & 1 deletion technologies/app/apache-superset/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ contexts:
dockerInfo:
image: "saagie/superset"
baseTag: "3.0.2"
version: "3.0.2-1.179.0"
version: "3.0.2-1.192.0_SDKTECHNO-274"
4 changes: 2 additions & 2 deletions version.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version.buildmeta=
version.buildmeta=SDKTECHNO-274
version.major=1
version.minor=192
version.patch=0
version.prerelease=
version.semver=1.192.0
version.semver=1.192.0+SDKTECHNO-274

0 comments on commit 020ac28

Please sign in to comment.