diff --git a/backend/docker/docker-entrypoint.sh b/backend/docker/docker-entrypoint.sh index 1760e2f84c..e100349963 100755 --- a/backend/docker/docker-entrypoint.sh +++ b/backend/docker/docker-entrypoint.sh @@ -69,7 +69,7 @@ DATABASE_PASSWORD=os.getenv('DATABASE_PASSWORD') DATABASE_OPTIONS=os.getenv('DATABASE_OPTIONS') try: options = json.loads(DATABASE_OPTIONS or "{}") - psycopg.connect( + conn = psycopg.connect( dbname=DATABASE_NAME, user=DATABASE_USER, password=DATABASE_PASSWORD, @@ -77,19 +77,21 @@ try: port=DATABASE_PORT, **options ) + conn.close() except Exception as e: print(f"Error: Failed to connect to the postgresql database at {DATABASE_HOST}") print("Please see the error below for more details:") print(e) print("Trying again without any DATABASE_OPTIONS:") try: - psycopg.connect( + conn = psycopg.connect( dbname=DATABASE_NAME, user=DATABASE_USER, password=DATABASE_PASSWORD, host=DATABASE_HOST, port=DATABASE_PORT, ) + conn.close() except Exception as e: print(f"Error: Failed to connect to the postgresql database at {DATABASE_HOST} without the {DATABASE_OPTIONS}") print("Please see the error below for more details:") @@ -109,9 +111,10 @@ except ImportError: import os DATABASE_URL=os.getenv('DATABASE_URL') try: - psycopg.connect( + conn = psycopg.connect( DATABASE_URL ) + conn.close() except psycopg.OperationalError as e: print(f"Error: Failed to connect to the postgresql database at {DATABASE_URL}") print("Please see the error below for more details:") diff --git a/changelog/entries/unreleased/bug/fix_aifield_keyboard_shortcuts.json b/changelog/entries/unreleased/bug/fix_aifield_keyboard_shortcuts.json new file mode 100644 index 0000000000..ffe818f401 --- /dev/null +++ b/changelog/entries/unreleased/bug/fix_aifield_keyboard_shortcuts.json @@ -0,0 +1,9 @@ +{ + "type": "bug", + "message": "Fix AI field keyboard shortcuts", + "issue_origin": "github", + "issue_number": 4499, + "domain": "database", + "bullet_points": [], + "created_at": "2026-01-09" +} diff --git a/premium/web-frontend/modules/baserow_premium/components/views/grid/fields/GridViewFieldAI.vue b/premium/web-frontend/modules/baserow_premium/components/views/grid/fields/GridViewFieldAI.vue index ca811d2b24..a68b8866c6 100644 --- a/premium/web-frontend/modules/baserow_premium/components/views/grid/fields/GridViewFieldAI.vue +++ b/premium/web-frontend/modules/baserow_premium/components/views/grid/fields/GridViewFieldAI.vue @@ -1,7 +1,7 @@