-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Worked on build cache and new pgAdmin patches
- Loading branch information
Showing
5 changed files
with
130 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
#sudo apt-get install yq jq | ||
|
||
archs=linux/$(yq -r '.arch | join(",linux/")' config.yaml) | ||
version=$(yq -r '.version' config.yaml) | ||
|
||
if [ -n "$1" ]; then | ||
archs=$1 | ||
fi | ||
|
||
|
||
# Print the result | ||
echo "Building version '$version' for platforms '$archs'" | ||
|
||
# Build and Push | ||
# --cache-to type=registry,ref=husselhans/hassos-addon-pgadmin4:cache,mode=max \ | ||
docker \ | ||
buildx build \ | ||
--push \ | ||
--platform linux/aarch64 \ | ||
--cache-from type=registry,ref=husselhans/hassos-addon-pgadmin4:cache \ | ||
--tag husselhans/hassos-addon-pgadmin4:$version \ | ||
. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
diff --git a/web/pgAdmin4.py b/web/pgAdmin4.py | ||
index 35a04b37d..c3b2bb0b1 100644 | ||
--- a/web/pgAdmin4.py | ||
+++ b/web/pgAdmin4.py | ||
@@ -149,8 +149,7 @@ if 'PGADMIN_INT_KEY' in os.environ: | ||
else: | ||
app.PGADMIN_INT_KEY = '' | ||
|
||
-if not app.PGADMIN_RUNTIME: | ||
- app.wsgi_app = ReverseProxied(app.wsgi_app) | ||
+app.wsgi_app = ReverseProxied(app.wsgi_app) | ||
|
||
app.run_before_app_start() | ||
|
||
diff --git a/web/pgadmin/static/js/helpers/Notifier.jsx b/web/pgadmin/static/js/helpers/Notifier.jsx | ||
index 8338dfbdd..ad1591b8f 100644 | ||
--- a/web/pgadmin/static/js/helpers/Notifier.jsx | ||
+++ b/web/pgadmin/static/js/helpers/Notifier.jsx | ||
@@ -190,7 +190,9 @@ export function NotifierProvider({ pgAdmin, pgWindow, getInstance, children, onR | ||
useEffect(()=>{ | ||
// if open in an iframe then use top pgAdmin | ||
if(window.self != window.top) { | ||
- pgAdmin.Browser.notifier = new Notifier(modal, pgWindow.pgAdmin.Browser.notifier.snackbar); | ||
+ if (pgWindow) { | ||
+ pgAdmin.Browser.notifier = new Notifier(modal, pgWindow.pgAdmin.Browser.notifier.snackbar); | ||
+ } | ||
onReady?.(); | ||
getInstance?.(pgAdmin.Browser.notifier); | ||
} |