From 06be86bb4d56b5f2717f0b55e3fd71a2087d8eba Mon Sep 17 00:00:00 2001
From: Sean Colsen
Date: Thu, 29 Feb 2024 14:47:18 -0500
Subject: [PATCH 01/60] Use GrowableTextArea for record page text inputs
---
.../src/components/GrowableTextArea.svelte | 45 +++++++++++++++++++
.../cell-fabric/data-types/string.ts | 17 +++----
2 files changed, 52 insertions(+), 10 deletions(-)
create mode 100644 mathesar_ui/src/components/GrowableTextArea.svelte
diff --git a/mathesar_ui/src/components/GrowableTextArea.svelte b/mathesar_ui/src/components/GrowableTextArea.svelte
new file mode 100644
index 0000000000..47cef9658a
--- /dev/null
+++ b/mathesar_ui/src/components/GrowableTextArea.svelte
@@ -0,0 +1,45 @@
+
+
+
+
diff --git a/mathesar_ui/src/components/cell-fabric/data-types/string.ts b/mathesar_ui/src/components/cell-fabric/data-types/string.ts
index 584fcb23aa..67c714f089 100644
--- a/mathesar_ui/src/components/cell-fabric/data-types/string.ts
+++ b/mathesar_ui/src/components/cell-fabric/data-types/string.ts
@@ -1,20 +1,17 @@
-import type { TextTypeOptions } from '@mathesar/api/types/tables/columns';
+import { TextInput, optionalNonNullable } from '@mathesar-component-library';
import type {
ComponentAndProps,
TextInputProps,
} from '@mathesar-component-library/types';
-import {
- TextInput,
- TextArea,
- optionalNonNullable,
-} from '@mathesar-component-library';
-import TextBoxCell from './components/textbox/TextBoxCell.svelte';
+import type { TextTypeOptions } from '@mathesar/api/types/tables/columns';
+import GrowableTextArea from '@mathesar/components/GrowableTextArea.svelte';
import TextAreaCell from './components/textarea/TextAreaCell.svelte';
+import TextBoxCell from './components/textbox/TextBoxCell.svelte';
import type {
- TextBoxCellExternalProps,
TextAreaCellExternalProps,
+ TextBoxCellExternalProps,
} from './components/typeDefinitions';
-import type { CellComponentFactory, CellColumnLike } from './typeDefinitions';
+import type { CellColumnLike, CellComponentFactory } from './typeDefinitions';
export interface StringLikeColumn extends CellColumnLike {
type_options: Partial | null;
@@ -36,7 +33,7 @@ const stringType: CellComponentFactory = {
column: StringLikeColumn,
config?: { multiLine?: boolean },
): ComponentAndProps => {
- const component = config?.multiLine ? TextArea : TextInput;
+ const component = config?.multiLine ? GrowableTextArea : TextInput;
return {
component,
props: {
From e5f121a3552d9b771b099525c4e676218adbf913 Mon Sep 17 00:00:00 2001
From: Sean Colsen
Date: Thu, 29 Feb 2024 15:12:34 -0500
Subject: [PATCH 02/60] Fix linting errors
---
mathesar_ui/src/components/GrowableTextArea.svelte | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/mathesar_ui/src/components/GrowableTextArea.svelte b/mathesar_ui/src/components/GrowableTextArea.svelte
index 47cef9658a..5d811e6a16 100644
--- a/mathesar_ui/src/components/GrowableTextArea.svelte
+++ b/mathesar_ui/src/components/GrowableTextArea.svelte
@@ -1,4 +1,4 @@
-
-
+ />
Date: Tue, 12 Mar 2024 18:32:39 +0530
Subject: [PATCH 16/60] Enable translations on Django side of the frontend,
load initial language from request
---
config/context_processors.py | 6 +++---
config/settings/common_settings.py | 4 ++--
mathesar/templates/mathesar/login_base.html | 3 +--
3 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/config/context_processors.py b/config/context_processors.py
index e4d87670df..3b31e0d82d 100644
--- a/config/context_processors.py
+++ b/config/context_processors.py
@@ -9,7 +9,7 @@ def frontend_settings(request):
manifest_data = get_manifest_data()
development_mode = settings.MATHESAR_MODE == 'DEVELOPMENT'
- i18n_settings = get_i18n_settings(manifest_data, development_mode)
+ i18n_settings = get_i18n_settings(request, manifest_data, development_mode)
frontend_settings = {
'development_mode': development_mode,
'manifest_data': manifest_data,
@@ -36,13 +36,13 @@ def get_display_language_from_request(request):
return lang_from_locale_middleware
-def get_i18n_settings(manifest_data, development_mode):
+def get_i18n_settings(request, manifest_data, development_mode):
"""
Hard coding this for now
but will be taken from users model
and cookies later on
"""
- display_language = 'en'
+ display_language = get_display_language_from_request(request)
fallback_language = 'en'
client_dev_url = settings.MATHESAR_CLIENT_DEV_URL
diff --git a/config/settings/common_settings.py b/config/settings/common_settings.py
index 44bdb23bff..7b9894552a 100644
--- a/config/settings/common_settings.py
+++ b/config/settings/common_settings.py
@@ -272,8 +272,8 @@ def pipe_delim(pipe_string):
# i18n
LANGUAGES = [
- ('en', gettext_lazy('English')),
- ('ja', gettext_lazy('Japanese')),
+ ('en', 'English'),
+ ('ja', 'Japanese'),
]
LOCALE_PATHS = [
'translations'
diff --git a/mathesar/templates/mathesar/login_base.html b/mathesar/templates/mathesar/login_base.html
index b656680587..3f24e64c22 100644
--- a/mathesar/templates/mathesar/login_base.html
+++ b/mathesar/templates/mathesar/login_base.html
@@ -150,7 +150,6 @@
{% block h1 %} {% endblock %}
{% block box_content %} {% endblock %}
-
+
{% endblock %}
From abedeeeaa1649076567671e856cba6324c3aa837 Mon Sep 17 00:00:00 2001
From: pavish
Date: Wed, 13 Mar 2024 13:20:55 +0530
Subject: [PATCH 17/60] Include loading fallback language in parallel
---
config/context_processors.py | 58 +++++++++++++++-----------
config/settings/common_settings.py | 2 +
mathesar/templates/mathesar/index.html | 32 +++++++++++---
3 files changed, 63 insertions(+), 29 deletions(-)
diff --git a/config/context_processors.py b/config/context_processors.py
index 3b31e0d82d..fd58022f08 100644
--- a/config/context_processors.py
+++ b/config/context_processors.py
@@ -8,19 +8,26 @@
def frontend_settings(request):
manifest_data = get_manifest_data()
development_mode = settings.MATHESAR_MODE == 'DEVELOPMENT'
+ display_language = get_display_language_from_request(request)
+ fallback_language = settings.FALLBACK_LANGUAGE
- i18n_settings = get_i18n_settings(request, manifest_data, development_mode)
frontend_settings = {
'development_mode': development_mode,
'manifest_data': manifest_data,
'live_demo_mode': getattr(settings, 'MATHESAR_LIVE_DEMO', False),
'live_demo_username': getattr(settings, 'MATHESAR_LIVE_DEMO_USERNAME', None),
'live_demo_password': getattr(settings, 'MATHESAR_LIVE_DEMO_PASSWORD', None),
- **i18n_settings
+ 'display_language': display_language,
+ 'include_i18n_fallback': display_language != fallback_language,
}
# Only include development URL if we're in development mode.
if frontend_settings['development_mode'] is True:
frontend_settings['client_dev_url'] = settings.MATHESAR_CLIENT_DEV_URL
+ i18n_settings = get_i18n_settings_dev(display_language)
+ else:
+ i18n_settings = get_i18n_settings_prod(display_language, manifest_data)
+
+ frontend_settings = { **frontend_settings, **i18n_settings }
return frontend_settings
@@ -36,30 +43,33 @@ def get_display_language_from_request(request):
return lang_from_locale_middleware
-def get_i18n_settings(request, manifest_data, development_mode):
- """
- Hard coding this for now
- but will be taken from users model
- and cookies later on
- """
- display_language = get_display_language_from_request(request)
- fallback_language = 'en'
-
+def get_i18n_settings_dev(display_language):
client_dev_url = settings.MATHESAR_CLIENT_DEV_URL
+ fallback_language = settings.FALLBACK_LANGUAGE
- if development_mode is True:
- module_translations_file_path = f'{client_dev_url}/src/i18n/languages/{display_language}/index.ts'
- legacy_translations_file_path = f'{client_dev_url}/src/i18n/languages/{display_language}/index.ts'
- else:
- try:
- module_translations_file_path = static(manifest_data[display_language]["file"])
- legacy_translations_file_path = static(manifest_data[f"{display_language}-legacy"]["file"])
- except KeyError:
- module_translations_file_path = static(manifest_data[fallback_language]["file"])
- legacy_translations_file_path = static(manifest_data[f"{fallback_language}-legacy"]["file"])
+ return {
+ 'dev_display_language_url': f'{client_dev_url}/src/i18n/languages/{display_language}/index.ts',
+ 'dev_fallback_language_url': f'{client_dev_url}/src/i18n/languages/{fallback_language}/index.ts',
+ }
+
+
+def get_prod_translation_file_urls(language, manifest_data):
+ prod_module_url = static(manifest_data[language]["file"])
+ prod_legacy_url = static(manifest_data[f"{language}-legacy"]["file"])
+
+ return {
+ 'module': prod_module_url,
+ 'legacy': prod_legacy_url,
+ }
+
+
+def get_i18n_settings_prod(display_language, manifest_data):
+ fallback_language = settings.FALLBACK_LANGUAGE
+
+ display_language_urls = get_prod_translation_file_urls(display_language, manifest_data)
+ fallback_language_urls = get_prod_translation_file_urls(fallback_language, manifest_data)
return {
- 'module_translations_file_path': module_translations_file_path,
- 'legacy_translations_file_path': legacy_translations_file_path,
- 'display_language': display_language
+ 'prod_display_language_urls': display_language_urls,
+ 'prod_fallback_language_urls': fallback_language_urls,
}
diff --git a/config/settings/common_settings.py b/config/settings/common_settings.py
index 7b9894552a..452b258121 100644
--- a/config/settings/common_settings.py
+++ b/config/settings/common_settings.py
@@ -279,4 +279,6 @@ def pipe_delim(pipe_string):
'translations'
]
LANGUAGE_COOKIE_NAME = 'display_language'
+FALLBACK_LANGUAGE = 'en'
+
SALT_KEY = SECRET_KEY
diff --git a/mathesar/templates/mathesar/index.html b/mathesar/templates/mathesar/index.html
index 30e8593603..078c5664de 100644
--- a/mathesar/templates/mathesar/index.html
+++ b/mathesar/templates/mathesar/index.html
@@ -19,12 +19,20 @@
{% endfor %}
{% endif %}
-
-
{% if development_mode %}
+
+ {% if include_i18n_fallback %}
+
+ {% endif %}
+
{% else %}
+
+ {% if include_i18n_fallback %}
+
+ {% endif %}
+
+
+
+ {% if include_i18n_fallback %}
+
+ {% endif %}
+
-
+
From 4ad70724e5682716e209816d5d24eb30bd7241a9 Mon Sep 17 00:00:00 2001
From: pavish
Date: Thu, 14 Mar 2024 18:49:22 +0530
Subject: [PATCH 20/60] Fix linting errors
---
config/context_processors.py | 2 +-
config/settings/common_settings.py | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/config/context_processors.py b/config/context_processors.py
index 8327e824dd..85d6fa80a7 100644
--- a/config/context_processors.py
+++ b/config/context_processors.py
@@ -27,7 +27,7 @@ def frontend_settings(request):
else:
i18n_settings = get_i18n_settings_prod(display_language, manifest_data)
- frontend_settings = { **frontend_settings, **i18n_settings }
+ frontend_settings = {**frontend_settings, **i18n_settings}
return frontend_settings
diff --git a/config/settings/common_settings.py b/config/settings/common_settings.py
index 452b258121..4d395ef80d 100644
--- a/config/settings/common_settings.py
+++ b/config/settings/common_settings.py
@@ -15,7 +15,6 @@
from decouple import Csv, config as decouple_config
from dj_database_url import parse as db_url
-from django.utils.translation import gettext_lazy
# We use a 'tuple' with pipes as delimiters as decople naively splits the global
From 4b8ab377685360bc3cc37c21f1be389a93536c61 Mon Sep 17 00:00:00 2001
From: pavish
Date: Thu, 14 Mar 2024 19:46:17 +0530
Subject: [PATCH 21/60] GH workflow to create draft release with built static
files
---
.github/workflows/create-draft-release.yml | 34 ++++++++++++++++++++++
1 file changed, 34 insertions(+)
create mode 100644 .github/workflows/create-draft-release.yml
diff --git a/.github/workflows/create-draft-release.yml b/.github/workflows/create-draft-release.yml
new file mode 100644
index 0000000000..e63dc5fadb
--- /dev/null
+++ b/.github/workflows/create-draft-release.yml
@@ -0,0 +1,34 @@
+name: Build static files and create draft release
+
+on:
+ push:
+ tags:
+ - "*"
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 18
+ run: cd mathesar_ui && npm ci && npm run build
+ run: cd ..
+
+ - uses: montudor/action-zip@v1
+ with:
+ args: zip -r static_files.zip ./mathesar/static/mathesar/
+
+ - name: Create a Release
+ id: create_release
+ uses: shogo82148/actions-create-release@v1
+
+ # A release created by shogo82148/actions-create-release is always a draft release.
+
+ - name: Upload Assets
+ uses: shogo82148/actions-upload-release-asset@v1
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
+ asset_path: static_files.zip
\ No newline at end of file
From 393f1768fe402c06ae148dfe424425345137246e Mon Sep 17 00:00:00 2001
From: Anish Umale
Date: Fri, 15 Mar 2024 00:10:53 +0530
Subject: [PATCH 22/60] add python versions in the docs and fix broken link
---
docs/docs/administration/upgrade/0.1.5.md | 2 +-
docs/docs/installation/build-from-source/index.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/docs/administration/upgrade/0.1.5.md b/docs/docs/administration/upgrade/0.1.5.md
index a751862786..62c0a7ccb7 100644
--- a/docs/docs/administration/upgrade/0.1.5.md
+++ b/docs/docs/administration/upgrade/0.1.5.md
@@ -14,4 +14,4 @@ docker compose -f /etc/mathesar/docker-compose.yml up --pull always -d
### For installations done from scratch
-If you installed from scratch, the upgrade instructions are the same as [for 0.1.4](../../administration/upgrade/0.1.4/#scratch), but you can skip Step 5 – you do not need to change the environment variables.
+If you installed from scratch, the upgrade instructions are the same as [for 0.1.4](../upgrade/0.1.4.md#scratch), but you can skip Step 5 – you do not need to change the environment variables.
diff --git a/docs/docs/installation/build-from-source/index.md b/docs/docs/installation/build-from-source/index.md
index c9c542ed2e..ef22dd8a39 100644
--- a/docs/docs/installation/build-from-source/index.md
+++ b/docs/docs/installation/build-from-source/index.md
@@ -23,7 +23,7 @@ You should have **root access** to the machine you're installing Mathesar on.
You'll need to install the following system packages before you install Mathesar:
-- [Python](https://www.python.org/downloads/) 3.9 or 3.10
+- [Python](https://www.python.org/downloads/) 3.9, 3.10, 3.11 or 3.12
!!! note "Python version"
Python _older_ than 3.9 will not run Mathesar.
From c3120967fb50933c3d20a58383c898ccee23fb2e Mon Sep 17 00:00:00 2001
From: Anish Umale
Date: Fri, 15 Mar 2024 11:49:20 +0530
Subject: [PATCH 23/60] rm search_path and fix underlying fixture
---
mathesar/tests/api/test_record_api.py | 20 ++++++--------
mathesar/tests/conftest.py | 39 +++++++++++++--------------
2 files changed, 27 insertions(+), 32 deletions(-)
diff --git a/mathesar/tests/api/test_record_api.py b/mathesar/tests/api/test_record_api.py
index 138c249cfc..e67ba8a26c 100644
--- a/mathesar/tests/api/test_record_api.py
+++ b/mathesar/tests/api/test_record_api.py
@@ -1513,21 +1513,19 @@ def test_record_patch_unique_violation(create_patents_table, client):
assert actual_constraint_details['name'] == 'NASA unique record PATCH_pkey'
-def test_record_post_exclusion_violation(reservations_table, engine, client):
- table_name = 'Exclusion test post'
- table = reservations_table(table_name)
+def test_record_post_exclusion_violation(create_reservations_table, engine, client):
+ table = create_reservations_table
room_number_column_id = table.get_column_name_id_bidirectional_map()['room_number']
columns_name_id_map = table.get_column_name_id_bidirectional_map()
query = text(
f"""CREATE EXTENSION IF NOT EXISTS btree_gist;
- ALTER TABLE "Reservations"."{table_name}" DROP CONSTRAINT IF EXISTS room_overlap;
- ALTER TABLE "Reservations"."{table_name}"
+ ALTER TABLE "Reservations"."{table.name}" DROP CONSTRAINT IF EXISTS room_overlap;
+ ALTER TABLE "Reservations"."{table.name}"
ADD CONSTRAINT room_overlap
EXCLUDE USING gist
("room_number" WITH =, TSRANGE("check_in_date", "check_out_date", '[]') WITH &&);"""
)
with engine.begin() as conn:
- conn.execute(text("""SET search_path="Reservations";"""))
conn.execute(query)
reset_reflection(db_name=table.schema.database.name)
response = client.post(f'/api/db/v0/tables/{table.id}/records/', data={
@@ -1542,21 +1540,19 @@ def test_record_post_exclusion_violation(reservations_table, engine, client):
assert actual_exception['detail']['constraint_columns'] == [room_number_column_id]
-def test_record_patch_exclusion_violation(reservations_table, engine, client):
- table_name = 'Exclusion test patch'
- table = reservations_table(table_name)
+def test_record_patch_exclusion_violation(create_reservations_table, engine, client):
+ table = create_reservations_table
room_number_column_id = table.get_column_name_id_bidirectional_map()['room_number']
columns_name_id_map = table.get_column_name_id_bidirectional_map()
query = text(
f"""CREATE EXTENSION IF NOT EXISTS btree_gist;
- ALTER TABLE "Reservations"."{table_name}" DROP CONSTRAINT IF EXISTS room_overlap;
- ALTER TABLE "Reservations"."{table_name}"
+ ALTER TABLE "Reservations"."{table.name}" DROP CONSTRAINT IF EXISTS room_overlap;
+ ALTER TABLE "Reservations"."{table.name}"
ADD CONSTRAINT room_overlap
EXCLUDE USING gist
("room_number" WITH =, TSRANGE("check_in_date", "check_out_date", '[]') WITH &&);"""
)
with engine.begin() as conn:
- conn.execute(text("""SET search_path="Reservations";"""))
conn.execute(query)
reset_reflection(db_name=table.schema.database.name)
response = client.patch(f'/api/db/v0/tables/{table.id}/records/{2}/', data={
diff --git a/mathesar/tests/conftest.py b/mathesar/tests/conftest.py
index ee21855add..fdea559cae 100644
--- a/mathesar/tests/conftest.py
+++ b/mathesar/tests/conftest.py
@@ -365,27 +365,26 @@ def _create_mathesar_table(
@pytest.fixture
-def reservations_table(engine, reservations_schema):
+def create_reservations_table(engine_with_schema, reservations_schema):
+ engine, _ = engine_with_schema
+ table_name = 'Exclusion Check'
schema_name = reservations_schema.name
-
- def _create_test_table(table_name, schema_name=schema_name):
- table_name = table_name or 'Exclusion Check'
- schema_name = reservations_schema.name
- cols = [
- Column('id', Integer, primary_key=True),
- Column('room_number', Integer),
- Column('check_in_date', Date),
- Column('check_out_date', Date)
- ]
- insert_data = [
- (1, 1, '11/10/2023', '11/15/2023'),
- (2, 1, '11/16/2023', '11/20/2023')
- ]
- sa_table = create_test_table(table_name, cols, insert_data, schema_name, engine)
- table_oid = get_oid_from_table(sa_table.name, schema_name, engine)
- table = Table.current_objects.create(oid=table_oid, schema=reservations_schema)
- return table
- return _create_test_table
+ cols = [
+ Column('id', Integer, primary_key=True),
+ Column('room_number', Integer),
+ Column('check_in_date', Date),
+ Column('check_out_date', Date)
+ ]
+ insert_data = [
+ (1, 1, '11/10/2023', '11/15/2023'),
+ (2, 1, '11/16/2023', '11/20/2023')
+ ]
+ sa_table = create_test_table(table_name, cols, insert_data, schema_name, engine)
+ table_oid = get_oid_from_table(sa_table.name, schema_name, engine)
+ table = Table.current_objects.create(oid=table_oid, schema=reservations_schema)
+ yield table
+ table.delete_sa_table()
+ table.delete()
@pytest.fixture
From 2bbba2a6af2d414140ce79baf8af05eaa21ef6ee Mon Sep 17 00:00:00 2001
From: pavish
Date: Fri, 15 Mar 2024 14:27:30 +0530
Subject: [PATCH 24/60] Fix draft release workflow
---
.github/workflows/create-draft-release.yml | 24 ++++++++++++++--------
1 file changed, 16 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/create-draft-release.yml b/.github/workflows/create-draft-release.yml
index e63dc5fadb..48b73757c4 100644
--- a/.github/workflows/create-draft-release.yml
+++ b/.github/workflows/create-draft-release.yml
@@ -4,6 +4,8 @@ on:
push:
tags:
- "*"
+ workflow_dispatch:
+
jobs:
build:
@@ -14,20 +16,26 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 18
- run: cd mathesar_ui && npm ci && npm run build
- run: cd ..
- - uses: montudor/action-zip@v1
+ - name: Build frontend static files
+ working-directory: ./mathesar_ui
+ run: npm ci && npm run build
+
+ - name: Move static files
+ run: mv ./mathesar/static/mathesar ./static-files
+
+ - name: Zip static files
+ uses: montudor/action-zip@v1
with:
- args: zip -r static_files.zip ./mathesar/static/mathesar/
+ args: zip -qq -r static_files.zip static-files
- - name: Create a Release
+ - name: Create a draft release
id: create_release
uses: shogo82148/actions-create-release@v1
+ with:
+ draft: true
- # A release created by shogo82148/actions-create-release is always a draft release.
-
- - name: Upload Assets
+ - name: Upload assets
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
From 47512d07269d1a7ade46a4b3af70bd77249879aa Mon Sep 17 00:00:00 2001
From: pavish
Date: Fri, 15 Mar 2024 15:04:30 +0530
Subject: [PATCH 25/60] Fix directory and file name for static_files
---
.github/workflows/create-draft-release.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/create-draft-release.yml b/.github/workflows/create-draft-release.yml
index 48b73757c4..f289321afa 100644
--- a/.github/workflows/create-draft-release.yml
+++ b/.github/workflows/create-draft-release.yml
@@ -22,12 +22,12 @@ jobs:
run: npm ci && npm run build
- name: Move static files
- run: mv ./mathesar/static/mathesar ./static-files
+ run: mv ./mathesar/static/mathesar ./static_files
- name: Zip static files
uses: montudor/action-zip@v1
with:
- args: zip -qq -r static_files.zip static-files
+ args: zip -qq -r static_files.zip static_files
- name: Create a draft release
id: create_release
From 151301283d254017388965dfeba441efdfee3cf0 Mon Sep 17 00:00:00 2001
From: pavish
Date: Fri, 15 Mar 2024 15:05:00 +0530
Subject: [PATCH 26/60] Update docs to remove NodeJS dependency, download &
extract static files, and to compile translation files
---
.../installation/build-from-source/index.md | 26 ++++++++-----------
1 file changed, 11 insertions(+), 15 deletions(-)
diff --git a/docs/docs/installation/build-from-source/index.md b/docs/docs/installation/build-from-source/index.md
index c9c542ed2e..bf1a656756 100644
--- a/docs/docs/installation/build-from-source/index.md
+++ b/docs/docs/installation/build-from-source/index.md
@@ -32,14 +32,6 @@ You'll need to install the following system packages before you install Mathesar
- [PostgreSQL](https://www.postgresql.org/download/linux/) 13 or newer (Verify by logging in, and running the query: `SELECT version();`)
-- [NodeJS](https://nodejs.org/en/download) 18 or newer (Verify with `node --version`)
-
- _(This is required for installation only and will eventually be [relaxed](https://github.com/centerofci/mathesar/issues/2871))_
-
-- [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) 9 or newer (Verify with `npm --version`)
-
- _(This is required for installation only and will eventually be [relaxed](https://github.com/centerofci/mathesar/issues/2871))_
-
- [Caddy](https://caddyserver.com/docs/install) (Verify with `caddy version`)
- [git](https://git-scm.com/downloads) (Verify with `git --version`)
@@ -220,16 +212,20 @@ Then press Enter to customize this guide with your domain name.
You need to export the environment variables each time you restart the shell as they don't persist across sessions.
-1. Install the frontend dependencies
+1. Download release static files and extract into the correct directory
+
+ ```
+ wget https://github.com/mathesar-foundation/mathesar/releases/download/{{mathesar_version}}/static_files.zip
+ unzip static_files.zip && mv static_files /mathesar/static/mathesar
+ ```
+
+
+1. Compile Mathesar translation files
```
- npm ci --prefix mathesar_ui
+ python manage.py compilemessages
```
-
-1. Compile the Mathesar Frontend App
- ```
- npm run --prefix mathesar_ui build --max_old_space_size=4096
- ```
+
1. Install Mathesar functions on the database:
From 311a3a2bc03760cd639f6972828e61261d0bea5f Mon Sep 17 00:00:00 2001
From: Anish Umale
Date: Fri, 15 Mar 2024 16:25:14 +0530
Subject: [PATCH 27/60] fix schema creation error handling
---
mathesar/utils/connections.py | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/mathesar/utils/connections.py b/mathesar/utils/connections.py
index aa23bb1abf..b13dde9387 100644
--- a/mathesar/utils/connections.py
+++ b/mathesar/utils/connections.py
@@ -1,6 +1,6 @@
"""Utilities to help with creating and managing connections in Mathesar."""
from psycopg2.errors import DuplicateSchema
-from sqlalchemy.exc import OperationalError
+from sqlalchemy.exc import OperationalError, ProgrammingError
from mathesar.models.base import Database
from db import install, connection as dbconn
from mathesar.state import reset_reflection
@@ -92,10 +92,11 @@ def _load_sample_data(engine, sample_data):
for key in sample_data:
try:
DATASET_MAP[key](engine, safe_mode=True)
- except DuplicateSchema:
- # We swallow this error, since otherwise we'll raise an error on the
- # front end even though installation generally succeeded.
- continue
+ except ProgrammingError as e:
+ if isinstance(e.orig, DuplicateSchema):
+ # We swallow this error, since otherwise we'll raise an error on the
+ # front end even though installation generally succeeded.
+ continue
reset_reflection()
From 778d453b8b46ec760cc469b44db045fd5b7d851f Mon Sep 17 00:00:00 2001
From: pavish
Date: Fri, 15 Mar 2024 17:26:17 +0530
Subject: [PATCH 28/60] Compile translation files in Docker image
---
Dockerfile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Dockerfile b/Dockerfile
index 9b97ab65cf..60ce0c48b6 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -66,6 +66,9 @@ ENV NODE_MAJOR 18
# Install dev requirements
RUN pip install --no-cache-dir -r requirements-dev.txt
+# Compile translation files
+RUN python manage.py compilemessages
+
# Add NodeJS source
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg; \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list;
@@ -91,6 +94,9 @@ FROM base AS production
# Install prod requirements
RUN pip install --no-cache-dir -r requirements-prod.txt
+# Compile translation files
+RUN python manage.py compilemessages
+
# Copy built frontend static files
COPY --from=development /code/mathesar/static/mathesar ./mathesar/static/mathesar/
From 7fffff6c42a2e712e836b73d58064465535c0b54 Mon Sep 17 00:00:00 2001
From: Anish Umale
Date: Fri, 15 Mar 2024 17:37:18 +0530
Subject: [PATCH 29/60] rm stale code coverage badge
---
README.md | 1 -
1 file changed, 1 deletion(-)
diff --git a/README.md b/README.md
index 7344f65aea..df5b5dd66b 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,6 @@
-
From c73717cfe41dfaa045ee8e2236f1ecfa2f77ec64 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Fri, 15 Mar 2024 18:27:49 +0000
Subject: [PATCH 30/60] Bump django from 4.2.8 to 4.2.10
Bumps [django](https://github.com/django/django) from 4.2.8 to 4.2.10.
- [Commits](https://github.com/django/django/compare/4.2.8...4.2.10)
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
...
Signed-off-by: dependabot[bot]
---
requirements.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/requirements.txt b/requirements.txt
index 7d47310a78..0fae4d3a46 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -3,7 +3,7 @@ bidict==0.21.4
frozendict==2.1.3
charset-normalizer==2.0.7
clevercsv==0.6.8
-Django==4.2.8
+Django==4.2.10
dj-database-url==0.5.0
django-filter==23.5
django-property-filter==1.1.0
From aabd5bd394d6c87f2cbf6cb7614a2c01c5f38248 Mon Sep 17 00:00:00 2001
From: Anish Umale
Date: Mon, 18 Mar 2024 21:57:54 +0530
Subject: [PATCH 31/60] Update version numbers to 0.1.6
---
docs/mkdocs.yml | 2 +-
mathesar/__init__.py | 2 +-
pyproject.toml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml
index 7ee1584dc9..fe2b07cc4e 100644
--- a/docs/mkdocs.yml
+++ b/docs/mkdocs.yml
@@ -97,4 +97,4 @@ markdown_extensions:
permalink: true
extra:
- mathesar_version: 0.1.5
+ mathesar_version: 0.1.6
diff --git a/mathesar/__init__.py b/mathesar/__init__.py
index c105751bbb..7af7cf2dce 100644
--- a/mathesar/__init__.py
+++ b/mathesar/__init__.py
@@ -1,3 +1,3 @@
default_app_config = 'mathesar.apps.MathesarConfig'
-__version__ = "0.1.5"
+__version__ = "0.1.6"
diff --git a/pyproject.toml b/pyproject.toml
index 8d22a36871..c96070ba52 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "Mathesar"
-version = "0.1.5"
+version = "0.1.6"
[tool.vulture]
exclude = ["mathesar/migrations"]
ignore_names = ["go_to_patents_data_table", "go_to_all_types_table", "go_to_table_with_numbers_in_text", "admin_user"]
From fe8863850ed250a5a1f5fcb60b004f8a4c891fff Mon Sep 17 00:00:00 2001
From: Sean Colsen
Date: Mon, 18 Mar 2024 12:38:56 -0400
Subject: [PATCH 32/60] Don't allow record selector inputs to grow taller
---
.../record-selector/RecordSelectorColumnHeaderCell.svelte | 1 +
1 file changed, 1 insertion(+)
diff --git a/mathesar_ui/src/systems/record-selector/RecordSelectorColumnHeaderCell.svelte b/mathesar_ui/src/systems/record-selector/RecordSelectorColumnHeaderCell.svelte
index 6f34d8a256..d296b67a4d 100644
--- a/mathesar_ui/src/systems/record-selector/RecordSelectorColumnHeaderCell.svelte
+++ b/mathesar_ui/src/systems/record-selector/RecordSelectorColumnHeaderCell.svelte
@@ -137,6 +137,7 @@
position: absolute;
bottom: var(--padding);
height: var(--input-height);
+ max-height: var(--input-height);
left: var(--padding);
width: calc(100% - 2 * var(--padding));
background: var(--white);
From 99bfc14c869b80fc3f8cc251e7faf565963bfde9 Mon Sep 17 00:00:00 2001
From: Anish Umale
Date: Wed, 20 Mar 2024 17:40:09 +0530
Subject: [PATCH 33/60] Fix csrf errors when app is behind a reverse proxy
---
config/settings/production.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/config/settings/production.py b/config/settings/production.py
index 9af47d2268..f2b6b2af72 100644
--- a/config/settings/production.py
+++ b/config/settings/production.py
@@ -3,6 +3,14 @@
# Override default settings
DEBUG = False
MATHESAR_MODE = 'PRODUCTION'
+
+'''
+This tells Django to trust the X-Forwarded-Proto header that comes from our proxy,
+and any time its value is 'https', then the request is guaranteed to be secure
+(i.e., it originally came in via HTTPS).
+'''
+SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
+
# Use a local.py module for settings that shouldn't be version tracked
try:
from .local import * # noqa
From 79447cca874ec3cde5c4e75c797fa572045bceca Mon Sep 17 00:00:00 2001
From: Sean Colsen
Date: Thu, 21 Mar 2024 09:32:42 -0400
Subject: [PATCH 34/60] Don't let buttons in DE actions pane shrink
---
mathesar_ui/src/components/EntityPageHeader.svelte | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/mathesar_ui/src/components/EntityPageHeader.svelte b/mathesar_ui/src/components/EntityPageHeader.svelte
index f5a9396c00..834578b561 100644
--- a/mathesar_ui/src/components/EntityPageHeader.svelte
+++ b/mathesar_ui/src/components/EntityPageHeader.svelte
@@ -117,11 +117,10 @@
.actions-right {
margin-left: auto;
- display: flex;
-
- > :global(* + *) {
- margin-left: var(--size-xx-small);
- }
+ display: grid;
+ grid-auto-flow: column;
+ align-items: center;
+ gap: var(--size-xx-small);
}
}
From 1103720217c367d792182cf4d8a2094974cbc85c Mon Sep 17 00:00:00 2001
From: Brent Moran
Date: Thu, 21 Mar 2024 14:21:33 -0500
Subject: [PATCH 35/60] remove 3.12 from supported python versions
---
docs/docs/installation/build-from-source/index.md | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/docs/docs/installation/build-from-source/index.md b/docs/docs/installation/build-from-source/index.md
index f168deb09b..e17023bf98 100644
--- a/docs/docs/installation/build-from-source/index.md
+++ b/docs/docs/installation/build-from-source/index.md
@@ -23,12 +23,13 @@ You should have **root access** to the machine you're installing Mathesar on.
You'll need to install the following system packages before you install Mathesar:
-- [Python](https://www.python.org/downloads/) 3.9, 3.10, 3.11 or 3.12
+- [Python](https://www.python.org/downloads/) 3.9, 3.10, or 3.11
!!! note "Python version"
+
Python _older_ than 3.9 will not run Mathesar.
- Python _newer_ than 3.10 will run Mathesar, but will require some slightly modified installation steps which we have [not yet documented](https://github.com/centerofci/mathesar/issues/2872).
+ Python 3.12 will run Mathesar, but you'll have to take extra steps to get some dependencies to build. Installing a package for your OS that provides the `libpq-fe.h` header file should be enough in most cases. On Debian 12, this header is provided by the `libpq-dev` package.
- [PostgreSQL](https://www.postgresql.org/download/linux/) 13 or newer (Verify by logging in, and running the query: `SELECT version();`)
@@ -36,20 +37,22 @@ You'll need to install the following system packages before you install Mathesar
- [git](https://git-scm.com/downloads) (Verify with `git --version`)
+- [GNU gettext](https://www.gnu.org/software/gettext/) (Verify with `gettext --version`)
### Domain (optional)
+
If you want Mathesar to be accessible over the internet, you'll probably want to set up a domain or sub-domain to use. **If you don't need a domain, you can skip this section.**
Before you start installation, **ensure that the DNS for your sub-domain or domain is pointing to the machine that you're installing Mathesar on**.
## Customizing this Guide
+
Type your domain name into the box below. Do not include a trailing slash.
Then press Enter to customize this guide with your domain name.
-
## Installation Steps
### Set up the database
From 76f6a7e490bb06af6b9d66e19f383641c9ace985 Mon Sep 17 00:00:00 2001
From: Brent Moran
Date: Thu, 21 Mar 2024 14:23:57 -0500
Subject: [PATCH 36/60] correct static file target path
---
docs/docs/installation/build-from-source/index.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/docs/installation/build-from-source/index.md b/docs/docs/installation/build-from-source/index.md
index e17023bf98..669f2037e8 100644
--- a/docs/docs/installation/build-from-source/index.md
+++ b/docs/docs/installation/build-from-source/index.md
@@ -219,7 +219,7 @@ Then press Enter to customize this guide with your domain name.
```
wget https://github.com/mathesar-foundation/mathesar/releases/download/{{mathesar_version}}/static_files.zip
- unzip static_files.zip && mv static_files /mathesar/static/mathesar
+ unzip static_files.zip && mv static_files mathesar/static/mathesar
```
From 957aced874f30b44e5ee9f96f94cbb0156a34a99 Mon Sep 17 00:00:00 2001
From: Brent Moran
Date: Thu, 21 Mar 2024 15:03:36 -0500
Subject: [PATCH 37/60] Add python version arg to dev-service
---
docker-compose.dev.yml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml
index 305668b9fb..22717e2af1 100644
--- a/docker-compose.dev.yml
+++ b/docker-compose.dev.yml
@@ -38,6 +38,8 @@ services:
context: .
target: development
dockerfile: Dockerfile
+ args:
+ PYTHON_VERSION: ${PYTHON_VERSION-3.9-bookworm}
environment:
- MODE=${MODE-DEVELOPMENT}
- DEBUG=${DEBUG-True}
From 3c686d6bd93d50518e81a0120e7c428deec3ebeb Mon Sep 17 00:00:00 2001
From: Anish Umale
Date: Fri, 22 Mar 2024 19:53:08 +0530
Subject: [PATCH 38/60] Add release notes for 0.1.6
---
docs/docs/releases/0.1.6.md | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
create mode 100644 docs/docs/releases/0.1.6.md
diff --git a/docs/docs/releases/0.1.6.md b/docs/docs/releases/0.1.6.md
new file mode 100644
index 0000000000..b18ee19c37
--- /dev/null
+++ b/docs/docs/releases/0.1.6.md
@@ -0,0 +1,35 @@
+# Mathesar 0.1.6
+
+## Summary
+
+Mathesar 0.1.6 introduces support for Python versions 3.10 and 3.11, as well as Japanese translations within the application.
+
+_This page provides a comprehensive list of all changes in the release._
+
+## Upgrading to 0.1.6
+
+_TODO_
+
+## Improvements
+
+- Mathesar is now compatible with Python versions: 3.10 and 3.11 along with 3.9 *[#3478](https://github.com/mathesar-foundation/mathesar/pull/3478)*
+- Added support for Japanese translations *[#3486](https://github.com/mathesar-foundation/mathesar/pull/3486)*, *[#3484](https://github.com/mathesar-foundation/mathesar/pull/3484)*, *[#3483](https://github.com/mathesar-foundation/mathesar/pull/3483)*, *[#3472](https://github.com/mathesar-foundation/mathesar/pull/3472)*
+- NodeJS is no longer a requirement for building Mathesar from source *[#3474](https://github.com/mathesar-foundation/mathesar/pull/3474)*
+- Text fields now auto-expand on the record page to accommodate for longer texts *[#3470](https://github.com/mathesar-foundation/mathesar/pull/3470)*
+
+## Bug fixes
+
+- Fixed regression within the record selector where records won’t get filtered based on input *[#3488](https://github.com/mathesar-foundation/mathesar/pull/3488)*
+- Fixed failures while adding a connection along with sample schema(s), whose name would collide with schema(s) already present in the database *[#3490](https://github.com/mathesar-foundation/mathesar/pull/3490)*
+- Fixed record selector's text inputs from growing taller *[#3495](https://github.com/mathesar-foundation/mathesar/pull/3495)*
+- Fixed CSRF failures when app is behind a reverse proxy *[#3499](https://github.com/mathesar-foundation/mathesar/pull/3499)*
+
+## Maintenance
+
+- Added health check endpoint to Mathesar *[#3479](https://github.com/mathesar-foundation/mathesar/pull/3479)*
+- Added PG 16 to testing matrix *[#3480](https://github.com/mathesar-foundation/mathesar/pull/3480)*
+- Added MkDocs edit URI *[#3482](https://github.com/mathesar-foundation/mathesar/pull/3482)*
+- Bumped django from 4.2.8 to 4.2.10 *[#3492](https://github.com/mathesar-foundation/mathesar/pull/3492)*
+- Removed stale code coverage badge *[#3491](https://github.com/mathesar-foundation/mathesar/pull/3491)*
+- GH workflow to create draft release with built static files *[#3489](https://github.com/mathesar-foundation/mathesar/pull/3489)*
+- Improved docker dev image to allow switching between python versions *[#3504](https://github.com/mathesar-foundation/mathesar/pull/3504)*
From 82f1b3cd22e69f2e0b82eb6a42c2ce88d208bc31 Mon Sep 17 00:00:00 2001
From: Anish Umale
Date: Fri, 22 Mar 2024 20:01:29 +0530
Subject: [PATCH 39/60] update bug fixes list
---
docs/docs/releases/0.1.6.md | 31 ++++++++++++++++---------------
1 file changed, 16 insertions(+), 15 deletions(-)
diff --git a/docs/docs/releases/0.1.6.md b/docs/docs/releases/0.1.6.md
index b18ee19c37..9ac6c4386c 100644
--- a/docs/docs/releases/0.1.6.md
+++ b/docs/docs/releases/0.1.6.md
@@ -12,24 +12,25 @@ _TODO_
## Improvements
-- Mathesar is now compatible with Python versions: 3.10 and 3.11 along with 3.9 *[#3478](https://github.com/mathesar-foundation/mathesar/pull/3478)*
-- Added support for Japanese translations *[#3486](https://github.com/mathesar-foundation/mathesar/pull/3486)*, *[#3484](https://github.com/mathesar-foundation/mathesar/pull/3484)*, *[#3483](https://github.com/mathesar-foundation/mathesar/pull/3483)*, *[#3472](https://github.com/mathesar-foundation/mathesar/pull/3472)*
-- NodeJS is no longer a requirement for building Mathesar from source *[#3474](https://github.com/mathesar-foundation/mathesar/pull/3474)*
-- Text fields now auto-expand on the record page to accommodate for longer texts *[#3470](https://github.com/mathesar-foundation/mathesar/pull/3470)*
+- Mathesar is now compatible with Python versions: 3.10 and 3.11 along with 3.9 _[#3478](https://github.com/mathesar-foundation/mathesar/pull/3478)_
+- Added support for Japanese translations _[#3486](https://github.com/mathesar-foundation/mathesar/pull/3486)_, _[#3484](https://github.com/mathesar-foundation/mathesar/pull/3484)_, _[#3483](https://github.com/mathesar-foundation/mathesar/pull/3483)_, _[#3472](https://github.com/mathesar-foundation/mathesar/pull/3472)_
+- NodeJS is no longer a requirement for building Mathesar from source _[#3474](https://github.com/mathesar-foundation/mathesar/pull/3474)_
+- Text fields now auto-expand on the record page to accommodate for longer texts _[#3470](https://github.com/mathesar-foundation/mathesar/pull/3470)_
## Bug fixes
-- Fixed regression within the record selector where records won’t get filtered based on input *[#3488](https://github.com/mathesar-foundation/mathesar/pull/3488)*
-- Fixed failures while adding a connection along with sample schema(s), whose name would collide with schema(s) already present in the database *[#3490](https://github.com/mathesar-foundation/mathesar/pull/3490)*
-- Fixed record selector's text inputs from growing taller *[#3495](https://github.com/mathesar-foundation/mathesar/pull/3495)*
-- Fixed CSRF failures when app is behind a reverse proxy *[#3499](https://github.com/mathesar-foundation/mathesar/pull/3499)*
+- Fixed regression within the record selector where records won’t get filtered based on input _[#3488](https://github.com/mathesar-foundation/mathesar/pull/3488)_
+- Fixed failures while adding a connection along with sample schema(s), whose name would collide with schema(s) already present in the database _[#3490](https://github.com/mathesar-foundation/mathesar/pull/3490)_
+- Fixed record selector's text inputs from growing taller _[#3495](https://github.com/mathesar-foundation/mathesar/pull/3495)_
+- Fixed CSRF failures when app is behind a reverse proxy _[#3499](https://github.com/mathesar-foundation/mathesar/pull/3499)_
+- Fixed layout issues while using japanese translations _[#3501](https://github.com/mathesar-foundation/mathesar/pull/3501)_
## Maintenance
-- Added health check endpoint to Mathesar *[#3479](https://github.com/mathesar-foundation/mathesar/pull/3479)*
-- Added PG 16 to testing matrix *[#3480](https://github.com/mathesar-foundation/mathesar/pull/3480)*
-- Added MkDocs edit URI *[#3482](https://github.com/mathesar-foundation/mathesar/pull/3482)*
-- Bumped django from 4.2.8 to 4.2.10 *[#3492](https://github.com/mathesar-foundation/mathesar/pull/3492)*
-- Removed stale code coverage badge *[#3491](https://github.com/mathesar-foundation/mathesar/pull/3491)*
-- GH workflow to create draft release with built static files *[#3489](https://github.com/mathesar-foundation/mathesar/pull/3489)*
-- Improved docker dev image to allow switching between python versions *[#3504](https://github.com/mathesar-foundation/mathesar/pull/3504)*
+- Added health check endpoint to Mathesar _[#3479](https://github.com/mathesar-foundation/mathesar/pull/3479)_
+- Added PG 16 to testing matrix _[#3480](https://github.com/mathesar-foundation/mathesar/pull/3480)_
+- Added MkDocs edit URI _[#3482](https://github.com/mathesar-foundation/mathesar/pull/3482)_
+- Bumped django from 4.2.8 to 4.2.10 _[#3492](https://github.com/mathesar-foundation/mathesar/pull/3492)_
+- Removed stale code coverage badge _[#3491](https://github.com/mathesar-foundation/mathesar/pull/3491)_
+- GH workflow to create draft release with built static files _[#3489](https://github.com/mathesar-foundation/mathesar/pull/3489)_
+- Improved docker dev image to allow switching between python versions _[#3504](https://github.com/mathesar-foundation/mathesar/pull/3504)_
From d51cb4b74dd55b693facec5083d5e26e96805bf2 Mon Sep 17 00:00:00 2001
From: pavish
Date: Fri, 22 Mar 2024 20:01:34 +0530
Subject: [PATCH 40/60] Fix git repo link
---
docs/docs/installation/build-from-source/index.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/docs/installation/build-from-source/index.md b/docs/docs/installation/build-from-source/index.md
index 669f2037e8..a85a989ff3 100644
--- a/docs/docs/installation/build-from-source/index.md
+++ b/docs/docs/installation/build-from-source/index.md
@@ -132,7 +132,7 @@ Then press Enter to customize this guide with your domain name.
1. Clone the git repo into the installation directory.
```
- git clone https://github.com/centerofci/mathesar.git .
+ git clone https://github.com/mathesar-foundation/mathesar.git .
```
1. Checkout the tag of the latest stable release, `{{mathesar_version}}`.
From 553612c8f4f5ad67e0e5b5d8160bd34267dbfe0c Mon Sep 17 00:00:00 2001
From: pavish
Date: Fri, 22 Mar 2024 20:01:54 +0530
Subject: [PATCH 41/60] Remove static_files.zip once extracted
---
docs/docs/installation/build-from-source/index.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/docs/installation/build-from-source/index.md b/docs/docs/installation/build-from-source/index.md
index a85a989ff3..a706fde6eb 100644
--- a/docs/docs/installation/build-from-source/index.md
+++ b/docs/docs/installation/build-from-source/index.md
@@ -219,7 +219,7 @@ Then press Enter to customize this guide with your domain name.
```
wget https://github.com/mathesar-foundation/mathesar/releases/download/{{mathesar_version}}/static_files.zip
- unzip static_files.zip && mv static_files mathesar/static/mathesar
+ unzip static_files.zip && mv static_files mathesar/static/mathesar && rm static_files.zip
```
From 017841e4070aaa814aad54a506aa5a4620c66915 Mon Sep 17 00:00:00 2001
From: pavish
Date: Fri, 22 Mar 2024 20:03:11 +0530
Subject: [PATCH 42/60] Remove need to create user database
---
docs/docs/installation/build-from-source/index.md | 6 ------
1 file changed, 6 deletions(-)
diff --git a/docs/docs/installation/build-from-source/index.md b/docs/docs/installation/build-from-source/index.md
index a706fde6eb..ef10aa57a1 100644
--- a/docs/docs/installation/build-from-source/index.md
+++ b/docs/docs/installation/build-from-source/index.md
@@ -78,12 +78,6 @@ Then press Enter to customize this guide with your domain name.
CREATE DATABASE mathesar_django OWNER mathesar;
```
-1. Now we let us create a database for storing your data.
-
- ```postgresql
- CREATE DATABASE your_db_name OWNER mathesar;
- ```
-
1. Press Ctrl+D to exit the `psql` shell.
From d86839392f2ce0411dad0e68dba23a11b0c5e45b Mon Sep 17 00:00:00 2001
From: pavish
Date: Fri, 22 Mar 2024 20:05:30 +0530
Subject: [PATCH 43/60] Fix link
---
docs/docs/administration/upgrade/0.1.5.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/docs/administration/upgrade/0.1.5.md b/docs/docs/administration/upgrade/0.1.5.md
index 62c0a7ccb7..9ad35a7133 100644
--- a/docs/docs/administration/upgrade/0.1.5.md
+++ b/docs/docs/administration/upgrade/0.1.5.md
@@ -14,4 +14,4 @@ docker compose -f /etc/mathesar/docker-compose.yml up --pull always -d
### For installations done from scratch
-If you installed from scratch, the upgrade instructions are the same as [for 0.1.4](../upgrade/0.1.4.md#scratch), but you can skip Step 5 – you do not need to change the environment variables.
+If you installed from scratch, the upgrade instructions are the same as [for 0.1.4](./0.1.4.md#scratch), but you can skip Step 5 – you do not need to change the environment variables.
From d85285166e32fb3e4ac9f6ab37432c9b41a62a92 Mon Sep 17 00:00:00 2001
From: pavish
Date: Fri, 22 Mar 2024 21:06:41 +0530
Subject: [PATCH 44/60] Add upgrade instructions for 0.1.6
---
docs/docs/administration/upgrade/0.1.6.md | 86 +++++++++++++++++++++++
docs/mkdocs.yml | 1 +
2 files changed, 87 insertions(+)
create mode 100644 docs/docs/administration/upgrade/0.1.6.md
diff --git a/docs/docs/administration/upgrade/0.1.6.md b/docs/docs/administration/upgrade/0.1.6.md
new file mode 100644
index 0000000000..7e63563ecc
--- /dev/null
+++ b/docs/docs/administration/upgrade/0.1.6.md
@@ -0,0 +1,86 @@
+# Upgrade Mathesar to 0.1.6
+
+### For installations using Docker Compose
+
+If you have a Docker compose installation (including one from the guided script), run the command below:
+
+```
+docker compose -f /etc/mathesar/docker-compose.yml up --pull always -d
+```
+
+!!! warning "Your installation directory may be different"
+ You may need to change `/etc/mathesar/` in the command above if you chose to install Mathesar to a different directory.
+
+
+### For installations done from scratch
+
+If you installed Mathesar [from scratch](../../installation/build-from-source/index.md), then use these steps to upgrade your installation to 0.1.6.
+
+1. Go to your Mathesar installation directory
+
+ ```
+ cd xMATHESAR_INSTALLATION_DIRx
+ ```
+
+ !!! note
+ Your installation directory may be different from above if you used a different directory when installing Mathesar.
+
+1. Checkout version 0.1.6 from the repository
+
+ ```
+ git pull https://github.com/mathesar-foundation/mathesar.git
+ git checkout 0.1.6
+ ```
+
+1. Update Python dependencies
+
+ ```
+ pip install -r requirements-prod.txt
+ ```
+
+1. Activate our virtual environment
+
+ ```
+ source ./mathesar-venv/bin/activate
+ ```
+
+1. You can skip the following if you're upgrading from versions 0.1.4 and above.
+ - If you're upgrading from versions <= 0.1.3, update your environment variables according to the [the new configuration specification](../../configuration/env-variables.md#db).
+ - In particular, you must put the connection info for the internal DB into new `POSTGRES_*` variables. The `DJANGO_DATABASE_URL` variable is no longer supported.
+
+1. Add the environment variables to the shell before running Django commands
+
+ ```
+ export $(sudo cat .env)
+ ```
+
+1. Run Django migrations
+
+ ```
+ python manage.py migrate
+ ```
+
+1. Download and extract frontend assets
+
+ ```
+ wget https://github.com/mathesar-foundation/mathesar/releases/download/0.1.6/static_files.zip
+ unzip static_files.zip && mv static_files mathesar/static/mathesar && rm static_files.zip
+ ```
+
+1. Compile Mathesar translation files
+
+ ```
+ python manage.py compilemessages
+ ```
+
+1. Update Mathesar functions on the database:
+
+ ```
+ python -m mathesar.install --skip-confirm | tee /tmp/install.py.log
+ ```
+
+1. Restart the gunicorn server
+
+ ```
+ systemctl restart gunicorn
+ ```
diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml
index fe2b07cc4e..9b9b1a69a5 100644
--- a/docs/mkdocs.yml
+++ b/docs/mkdocs.yml
@@ -14,6 +14,7 @@ nav:
- Environment variables: configuration/env-variables.md
- Administration:
- Upgrade:
+ - To 0.1.6: administration/upgrade/0.1.6.md
- To 0.1.5: administration/upgrade/0.1.5.md
- To 0.1.4: administration/upgrade/0.1.4.md
- To older versions: administration/upgrade/older.md
From e906d472b78a0c2928929bbb1fb7383723ac7fa1 Mon Sep 17 00:00:00 2001
From: pavish
Date: Fri, 22 Mar 2024 21:08:32 +0530
Subject: [PATCH 45/60] Remove tip mentioning installing specific version since
installation steps for each version is different
---
docs/docs/installation/build-from-source/index.md | 3 ---
1 file changed, 3 deletions(-)
diff --git a/docs/docs/installation/build-from-source/index.md b/docs/docs/installation/build-from-source/index.md
index ef10aa57a1..e28efe0bf7 100644
--- a/docs/docs/installation/build-from-source/index.md
+++ b/docs/docs/installation/build-from-source/index.md
@@ -138,9 +138,6 @@ Then press Enter to customize this guide with your domain name.
!!! warning "Important"
If you don't run the above command you'll end up installing the latest _development_ version of Mathesar, which will be less stable.
- !!! tip
- You can install a specific Mathesar release by running commands like `git checkout 0.1.1` (to install version 0.1.1, for example). You can see all available versions by running `git tag`.
-
1. We need to create a python virtual environment for the Mathesar application.
```
From fcdedfd2091922606708039c83347bec9a9bdc93 Mon Sep 17 00:00:00 2001
From: pavish
Date: Fri, 22 Mar 2024 21:12:14 +0530
Subject: [PATCH 46/60] Fix instructions in 0.1.4 and 0.1.5 regarding checking
out correct tag
---
docs/docs/administration/upgrade/0.1.4.md | 3 ++-
docs/docs/administration/upgrade/0.1.5.md | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/docs/docs/administration/upgrade/0.1.4.md b/docs/docs/administration/upgrade/0.1.4.md
index 9fd47fd678..41ea19a340 100644
--- a/docs/docs/administration/upgrade/0.1.4.md
+++ b/docs/docs/administration/upgrade/0.1.4.md
@@ -149,10 +149,11 @@ If you installed Mathesar [from scratch](../../installation/build-from-source/in
!!! note
Your installation directory may be different from above if you used a different directory when installing Mathesar.
-1. Pull the latest version from the repository
+1. Pull the version 0.1.4 from the repository
```
git pull https://github.com/mathesar-foundation/mathesar.git
+ git checkout 0.1.4
```
1. Update Python dependencies
diff --git a/docs/docs/administration/upgrade/0.1.5.md b/docs/docs/administration/upgrade/0.1.5.md
index 9ad35a7133..fe954cbad8 100644
--- a/docs/docs/administration/upgrade/0.1.5.md
+++ b/docs/docs/administration/upgrade/0.1.5.md
@@ -14,4 +14,4 @@ docker compose -f /etc/mathesar/docker-compose.yml up --pull always -d
### For installations done from scratch
-If you installed from scratch, the upgrade instructions are the same as [for 0.1.4](./0.1.4.md#scratch), but you can skip Step 5 – you do not need to change the environment variables.
+If you installed from scratch, the upgrade instructions are the same as [for 0.1.4](./0.1.4.md#scratch), expect you'll have to specify the correct version as 0.1.5 when pulling code from the repository in step 2. You can skip Step 5 – you do not need to change the environment variables.
From f72a26c55302ed54c00a61f614f16f23059fc721 Mon Sep 17 00:00:00 2001
From: Kriti Godey
Date: Fri, 22 Mar 2024 23:22:16 -0400
Subject: [PATCH 47/60] Minor language fix
---
docs/docs/administration/upgrade/0.1.4.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/docs/administration/upgrade/0.1.4.md b/docs/docs/administration/upgrade/0.1.4.md
index 41ea19a340..04866d4123 100644
--- a/docs/docs/administration/upgrade/0.1.4.md
+++ b/docs/docs/administration/upgrade/0.1.4.md
@@ -149,7 +149,7 @@ If you installed Mathesar [from scratch](../../installation/build-from-source/in
!!! note
Your installation directory may be different from above if you used a different directory when installing Mathesar.
-1. Pull the version 0.1.4 from the repository
+1. Pull version 0.1.4 from the repository
```
git pull https://github.com/mathesar-foundation/mathesar.git
From e99f99ea1577fbccc5707d118d48217710a44050 Mon Sep 17 00:00:00 2001
From: Kriti Godey
Date: Fri, 22 Mar 2024 23:23:36 -0400
Subject: [PATCH 48/60] Fixed typo, minor language changes
---
docs/docs/administration/upgrade/0.1.5.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/docs/administration/upgrade/0.1.5.md b/docs/docs/administration/upgrade/0.1.5.md
index fe954cbad8..012c2921f0 100644
--- a/docs/docs/administration/upgrade/0.1.5.md
+++ b/docs/docs/administration/upgrade/0.1.5.md
@@ -14,4 +14,4 @@ docker compose -f /etc/mathesar/docker-compose.yml up --pull always -d
### For installations done from scratch
-If you installed from scratch, the upgrade instructions are the same as [for 0.1.4](./0.1.4.md#scratch), expect you'll have to specify the correct version as 0.1.5 when pulling code from the repository in step 2. You can skip Step 5 – you do not need to change the environment variables.
+If you installed from scratch, the upgrade instructions are the same as [for 0.1.4](./0.1.4.md#scratch), except that you'll need to specify version 0.1.5 when pulling code from the repository in Step 2. You should also skip Step 5 – you do not need to change the environment variables.
From 614233c85eeac211fda39a6db92a9ee84418450a Mon Sep 17 00:00:00 2001
From: Kriti Godey
Date: Fri, 22 Mar 2024 23:26:47 -0400
Subject: [PATCH 49/60] Language change for consistency
---
docs/docs/administration/upgrade/0.1.6.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/docs/administration/upgrade/0.1.6.md b/docs/docs/administration/upgrade/0.1.6.md
index 7e63563ecc..67a779abe0 100644
--- a/docs/docs/administration/upgrade/0.1.6.md
+++ b/docs/docs/administration/upgrade/0.1.6.md
@@ -25,7 +25,7 @@ If you installed Mathesar [from scratch](../../installation/build-from-source/in
!!! note
Your installation directory may be different from above if you used a different directory when installing Mathesar.
-1. Checkout version 0.1.6 from the repository
+1. Pull version 0.1.6 from the repository
```
git pull https://github.com/mathesar-foundation/mathesar.git
From b5fc1a4cf873ff560ba4a9064cbd74fdf949c33c Mon Sep 17 00:00:00 2001
From: Anish Umale
Date: Mon, 25 Mar 2024 17:12:02 +0530
Subject: [PATCH 50/60] add link for upgrade, minor grammer fixes
---
docs/docs/releases/0.1.6.md | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/docs/docs/releases/0.1.6.md b/docs/docs/releases/0.1.6.md
index 9ac6c4386c..0dfa059706 100644
--- a/docs/docs/releases/0.1.6.md
+++ b/docs/docs/releases/0.1.6.md
@@ -2,20 +2,20 @@
## Summary
-Mathesar 0.1.6 introduces support for Python versions 3.10 and 3.11, as well as Japanese translations within the application.
+Mathesar 0.1.6 brings compatibility with Python versions 3.10 and 3.11, PostgreSQL 16 support, ease of use while working with longer texts on record page, as well as Japanese translations within the application.
_This page provides a comprehensive list of all changes in the release._
## Upgrading to 0.1.6
-_TODO_
+See our guide on [upgrading Mathesar to 0.1.6](../administration/upgrade/0.1.6.md).
## Improvements
- Mathesar is now compatible with Python versions: 3.10 and 3.11 along with 3.9 _[#3478](https://github.com/mathesar-foundation/mathesar/pull/3478)_
- Added support for Japanese translations _[#3486](https://github.com/mathesar-foundation/mathesar/pull/3486)_, _[#3484](https://github.com/mathesar-foundation/mathesar/pull/3484)_, _[#3483](https://github.com/mathesar-foundation/mathesar/pull/3483)_, _[#3472](https://github.com/mathesar-foundation/mathesar/pull/3472)_
- NodeJS is no longer a requirement for building Mathesar from source _[#3474](https://github.com/mathesar-foundation/mathesar/pull/3474)_
-- Text fields now auto-expand on the record page to accommodate for longer texts _[#3470](https://github.com/mathesar-foundation/mathesar/pull/3470)_
+- Text fields now auto-expand on the record page to accommodate longer texts _[#3470](https://github.com/mathesar-foundation/mathesar/pull/3470)_
## Bug fixes
@@ -23,14 +23,14 @@ _TODO_
- Fixed failures while adding a connection along with sample schema(s), whose name would collide with schema(s) already present in the database _[#3490](https://github.com/mathesar-foundation/mathesar/pull/3490)_
- Fixed record selector's text inputs from growing taller _[#3495](https://github.com/mathesar-foundation/mathesar/pull/3495)_
- Fixed CSRF failures when app is behind a reverse proxy _[#3499](https://github.com/mathesar-foundation/mathesar/pull/3499)_
-- Fixed layout issues while using japanese translations _[#3501](https://github.com/mathesar-foundation/mathesar/pull/3501)_
+- Fixed layout issues while using Japanese translations _[#3501](https://github.com/mathesar-foundation/mathesar/pull/3501)_
## Maintenance
- Added health check endpoint to Mathesar _[#3479](https://github.com/mathesar-foundation/mathesar/pull/3479)_
- Added PG 16 to testing matrix _[#3480](https://github.com/mathesar-foundation/mathesar/pull/3480)_
- Added MkDocs edit URI _[#3482](https://github.com/mathesar-foundation/mathesar/pull/3482)_
-- Bumped django from 4.2.8 to 4.2.10 _[#3492](https://github.com/mathesar-foundation/mathesar/pull/3492)_
+- Bumped Django from 4.2.8 to 4.2.10 _[#3492](https://github.com/mathesar-foundation/mathesar/pull/3492)_
- Removed stale code coverage badge _[#3491](https://github.com/mathesar-foundation/mathesar/pull/3491)_
-- GH workflow to create draft release with built static files _[#3489](https://github.com/mathesar-foundation/mathesar/pull/3489)_
-- Improved docker dev image to allow switching between python versions _[#3504](https://github.com/mathesar-foundation/mathesar/pull/3504)_
+- Added GitHub workflow to attach pre-built static files with new releases _[#3489](https://github.com/mathesar-foundation/mathesar/pull/3489)_
+- Improved Docker development image to allow switching between python versions _[#3504](https://github.com/mathesar-foundation/mathesar/pull/3504)_
From f56a96a7f54b2aeb7b97f0477211314ae6f58ef9 Mon Sep 17 00:00:00 2001
From: Anish Umale
Date: Mon, 25 Mar 2024 17:23:11 +0530
Subject: [PATCH 51/60] more grammatical fixes
---
docs/docs/releases/0.1.6.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/docs/docs/releases/0.1.6.md b/docs/docs/releases/0.1.6.md
index 0dfa059706..d62231eef2 100644
--- a/docs/docs/releases/0.1.6.md
+++ b/docs/docs/releases/0.1.6.md
@@ -2,7 +2,7 @@
## Summary
-Mathesar 0.1.6 brings compatibility with Python versions 3.10 and 3.11, PostgreSQL 16 support, ease of use while working with longer texts on record page, as well as Japanese translations within the application.
+Mathesar 0.1.6 brings compatibility with Python versions 3.10 and 3.11, PostgreSQL 16 support, ease of use while working with longer texts on the record page, as well as Japanese translations within the application.
_This page provides a comprehensive list of all changes in the release._
@@ -20,9 +20,9 @@ See our guide on [upgrading Mathesar to 0.1.6](../administration/upgrade/0.1.6.m
## Bug fixes
- Fixed regression within the record selector where records won’t get filtered based on input _[#3488](https://github.com/mathesar-foundation/mathesar/pull/3488)_
-- Fixed failures while adding a connection along with sample schema(s), whose name would collide with schema(s) already present in the database _[#3490](https://github.com/mathesar-foundation/mathesar/pull/3490)_
+- Fixed failures while adding a connection along with sample schema(s), whose name(s) would collide with schema(s) already present in the database _[#3490](https://github.com/mathesar-foundation/mathesar/pull/3490)_
- Fixed record selector's text inputs from growing taller _[#3495](https://github.com/mathesar-foundation/mathesar/pull/3495)_
-- Fixed CSRF failures when app is behind a reverse proxy _[#3499](https://github.com/mathesar-foundation/mathesar/pull/3499)_
+- Fixed CSRF failures when the app is behind a reverse proxy _[#3499](https://github.com/mathesar-foundation/mathesar/pull/3499)_
- Fixed layout issues while using Japanese translations _[#3501](https://github.com/mathesar-foundation/mathesar/pull/3501)_
## Maintenance
@@ -33,4 +33,4 @@ See our guide on [upgrading Mathesar to 0.1.6](../administration/upgrade/0.1.6.m
- Bumped Django from 4.2.8 to 4.2.10 _[#3492](https://github.com/mathesar-foundation/mathesar/pull/3492)_
- Removed stale code coverage badge _[#3491](https://github.com/mathesar-foundation/mathesar/pull/3491)_
- Added GitHub workflow to attach pre-built static files with new releases _[#3489](https://github.com/mathesar-foundation/mathesar/pull/3489)_
-- Improved Docker development image to allow switching between python versions _[#3504](https://github.com/mathesar-foundation/mathesar/pull/3504)_
+- Improved Docker development image to allow switching between Python versions _[#3504](https://github.com/mathesar-foundation/mathesar/pull/3504)_
From 199ab713a94539edfb583c222206ecf10de22a00 Mon Sep 17 00:00:00 2001
From: Anish Umale
Date: Mon, 25 Mar 2024 17:37:38 +0530
Subject: [PATCH 52/60] expand-->expands
---
docs/docs/releases/0.1.6.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/docs/releases/0.1.6.md b/docs/docs/releases/0.1.6.md
index d62231eef2..b8cbc22473 100644
--- a/docs/docs/releases/0.1.6.md
+++ b/docs/docs/releases/0.1.6.md
@@ -15,7 +15,7 @@ See our guide on [upgrading Mathesar to 0.1.6](../administration/upgrade/0.1.6.m
- Mathesar is now compatible with Python versions: 3.10 and 3.11 along with 3.9 _[#3478](https://github.com/mathesar-foundation/mathesar/pull/3478)_
- Added support for Japanese translations _[#3486](https://github.com/mathesar-foundation/mathesar/pull/3486)_, _[#3484](https://github.com/mathesar-foundation/mathesar/pull/3484)_, _[#3483](https://github.com/mathesar-foundation/mathesar/pull/3483)_, _[#3472](https://github.com/mathesar-foundation/mathesar/pull/3472)_
- NodeJS is no longer a requirement for building Mathesar from source _[#3474](https://github.com/mathesar-foundation/mathesar/pull/3474)_
-- Text fields now auto-expand on the record page to accommodate longer texts _[#3470](https://github.com/mathesar-foundation/mathesar/pull/3470)_
+- Text fields now auto-expands on the record page to accommodate longer texts _[#3470](https://github.com/mathesar-foundation/mathesar/pull/3470)_
## Bug fixes
@@ -27,7 +27,7 @@ See our guide on [upgrading Mathesar to 0.1.6](../administration/upgrade/0.1.6.m
## Maintenance
-- Added health check endpoint to Mathesar _[#3479](https://github.com/mathesar-foundation/mathesar/pull/3479)_
+- Added a health check endpoint to Mathesar _[#3479](https://github.com/mathesar-foundation/mathesar/pull/3479)_
- Added PG 16 to testing matrix _[#3480](https://github.com/mathesar-foundation/mathesar/pull/3480)_
- Added MkDocs edit URI _[#3482](https://github.com/mathesar-foundation/mathesar/pull/3482)_
- Bumped Django from 4.2.8 to 4.2.10 _[#3492](https://github.com/mathesar-foundation/mathesar/pull/3492)_
From b7d51e686ead4a7db12308a07015b320351be7f5 Mon Sep 17 00:00:00 2001
From: Brent Moran
Date: Mon, 25 Mar 2024 10:24:53 -0500
Subject: [PATCH 53/60] Add page describing usage of debugging image
---
docs/docs/administration/debug.md | 44 +++++++++++++++++++++++++++++++
docs/mkdocs.yml | 1 +
2 files changed, 45 insertions(+)
create mode 100644 docs/docs/administration/debug.md
diff --git a/docs/docs/administration/debug.md b/docs/docs/administration/debug.md
new file mode 100644
index 0000000000..2bfe872b4b
--- /dev/null
+++ b/docs/docs/administration/debug.md
@@ -0,0 +1,44 @@
+# Debug Mathesar
+
+For now, we only support turning on Debugging by using our special docker image. More methods will follow in future releases.
+
+## Use the debugging Mathesar docker image
+
+There is a debugging-enabled Mathesar docker image available at `mathesar/mathesar-debug` that is the same as the `mathesar/mathesar-prod` image, except that it has more debugging output available in the console where it's run, and it also produces more verbose errors in the browser when something goes wrong.
+
+You can use this image to figure out (or to help the Mathesar team figure out) what's wrong if your Mathesar installation isn't working as expected. The procedure is to
+
+1. Run Mathesar with the `mathesar/mathesar-debug` image, and then
+1. Observe and report any additional output or clues to the Mathesar team.
+
+### Docker Compose
+
+Just replace the line
+
+```
+ image: mathesar/mathesar-prod:latest
+```
+
+with
+
+```
+ image: mathesar/mathesar-debug:latest
+```
+
+### Basic Mathesar docker image
+
+If you are just trying the Mathesar Docker image directly as instructed in the [introduction](../index.md#try-locally), replace the command
+
+```
+docker run -it --name mathesar -p 8000:8000 mathesar/mathesar-prod:latest
+```
+
+with
+
+```
+docker run -it --name mathesar -p 8000:8000 mathesar/mathesar-debug:latest
+```
+
+### Other setups
+
+The debugging docker image should work anywhere the production image works. This means you can just replace any pull or run of the image `mathesar/mathesar-prod:latest` with `mathesar/mathesar-debug:latest`.
diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml
index fe2b07cc4e..14b7694719 100644
--- a/docs/mkdocs.yml
+++ b/docs/mkdocs.yml
@@ -18,6 +18,7 @@ nav:
- To 0.1.4: administration/upgrade/0.1.4.md
- To older versions: administration/upgrade/older.md
- Uninstall Mathesar: administration/uninstall.md
+ - Debug Mathesar: administration/debug.md
- Using Mathesar:
- Introduction: user-guide/index.md
- Importing data: user-guide/importing-data.md
From 1d6c2fb71ff12a5139b88e81c1c6313fa31ff8ab Mon Sep 17 00:00:00 2001
From: Anish Umale
Date: Mon, 25 Mar 2024 22:53:53 +0530
Subject: [PATCH 54/60] fix NodeJS links, and grammatical errors
---
docs/docs/releases/0.1.6.md | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/docs/docs/releases/0.1.6.md b/docs/docs/releases/0.1.6.md
index b8cbc22473..120135dfdc 100644
--- a/docs/docs/releases/0.1.6.md
+++ b/docs/docs/releases/0.1.6.md
@@ -14,14 +14,14 @@ See our guide on [upgrading Mathesar to 0.1.6](../administration/upgrade/0.1.6.m
- Mathesar is now compatible with Python versions: 3.10 and 3.11 along with 3.9 _[#3478](https://github.com/mathesar-foundation/mathesar/pull/3478)_
- Added support for Japanese translations _[#3486](https://github.com/mathesar-foundation/mathesar/pull/3486)_, _[#3484](https://github.com/mathesar-foundation/mathesar/pull/3484)_, _[#3483](https://github.com/mathesar-foundation/mathesar/pull/3483)_, _[#3472](https://github.com/mathesar-foundation/mathesar/pull/3472)_
-- NodeJS is no longer a requirement for building Mathesar from source _[#3474](https://github.com/mathesar-foundation/mathesar/pull/3474)_
+- NodeJS is no longer a requirement for building Mathesar from source _[#3489](https://github.com/mathesar-foundation/mathesar/pull/3489)_
- Text fields now auto-expands on the record page to accommodate longer texts _[#3470](https://github.com/mathesar-foundation/mathesar/pull/3470)_
## Bug fixes
-- Fixed regression within the record selector where records won’t get filtered based on input _[#3488](https://github.com/mathesar-foundation/mathesar/pull/3488)_
-- Fixed failures while adding a connection along with sample schema(s), whose name(s) would collide with schema(s) already present in the database _[#3490](https://github.com/mathesar-foundation/mathesar/pull/3490)_
-- Fixed record selector's text inputs from growing taller _[#3495](https://github.com/mathesar-foundation/mathesar/pull/3495)_
+- Fixed record selector filtering bug _[#3488](https://github.com/mathesar-foundation/mathesar/pull/3488)_
+- Fixed connection creation failures due to schema name collisions while adding provided sample schama(s) in the database. _[#3490](https://github.com/mathesar-foundation/mathesar/pull/3490)_
+- Fixed height inconsistencies of record selector's text inputs _[#3495](https://github.com/mathesar-foundation/mathesar/pull/3495)_
- Fixed CSRF failures when the app is behind a reverse proxy _[#3499](https://github.com/mathesar-foundation/mathesar/pull/3499)_
- Fixed layout issues while using Japanese translations _[#3501](https://github.com/mathesar-foundation/mathesar/pull/3501)_
@@ -32,5 +32,5 @@ See our guide on [upgrading Mathesar to 0.1.6](../administration/upgrade/0.1.6.m
- Added MkDocs edit URI _[#3482](https://github.com/mathesar-foundation/mathesar/pull/3482)_
- Bumped Django from 4.2.8 to 4.2.10 _[#3492](https://github.com/mathesar-foundation/mathesar/pull/3492)_
- Removed stale code coverage badge _[#3491](https://github.com/mathesar-foundation/mathesar/pull/3491)_
-- Added GitHub workflow to attach pre-built static files with new releases _[#3489](https://github.com/mathesar-foundation/mathesar/pull/3489)_
+- Removed NodeJS from Docker production image _[#3474](https://github.com/mathesar-foundation/mathesar/pull/3474)_
- Improved Docker development image to allow switching between Python versions _[#3504](https://github.com/mathesar-foundation/mathesar/pull/3504)_
From 674fa5db8c6e41d599694e1bb44b2740821350a3 Mon Sep 17 00:00:00 2001
From: Anish Umale
Date: Mon, 25 Mar 2024 22:55:44 +0530
Subject: [PATCH 55/60] fix typo
---
docs/docs/releases/0.1.6.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/docs/releases/0.1.6.md b/docs/docs/releases/0.1.6.md
index 120135dfdc..e6743c4138 100644
--- a/docs/docs/releases/0.1.6.md
+++ b/docs/docs/releases/0.1.6.md
@@ -20,7 +20,7 @@ See our guide on [upgrading Mathesar to 0.1.6](../administration/upgrade/0.1.6.m
## Bug fixes
- Fixed record selector filtering bug _[#3488](https://github.com/mathesar-foundation/mathesar/pull/3488)_
-- Fixed connection creation failures due to schema name collisions while adding provided sample schama(s) in the database. _[#3490](https://github.com/mathesar-foundation/mathesar/pull/3490)_
+- Fixed connection creation failures due to schema name collisions while adding provided sample schema(s) in the database. _[#3490](https://github.com/mathesar-foundation/mathesar/pull/3490)_
- Fixed height inconsistencies of record selector's text inputs _[#3495](https://github.com/mathesar-foundation/mathesar/pull/3495)_
- Fixed CSRF failures when the app is behind a reverse proxy _[#3499](https://github.com/mathesar-foundation/mathesar/pull/3499)_
- Fixed layout issues while using Japanese translations _[#3501](https://github.com/mathesar-foundation/mathesar/pull/3501)_
From bcd09f6fc2d47321b1bad10ddf910550b0d3baf1 Mon Sep 17 00:00:00 2001
From: Anish Umale
Date: Tue, 26 Mar 2024 16:44:49 +0530
Subject: [PATCH 56/60] minor fixes
---
docs/docs/releases/0.1.6.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/docs/releases/0.1.6.md b/docs/docs/releases/0.1.6.md
index e6743c4138..e92af338d0 100644
--- a/docs/docs/releases/0.1.6.md
+++ b/docs/docs/releases/0.1.6.md
@@ -20,15 +20,15 @@ See our guide on [upgrading Mathesar to 0.1.6](../administration/upgrade/0.1.6.m
## Bug fixes
- Fixed record selector filtering bug _[#3488](https://github.com/mathesar-foundation/mathesar/pull/3488)_
-- Fixed connection creation failures due to schema name collisions while adding provided sample schema(s) in the database. _[#3490](https://github.com/mathesar-foundation/mathesar/pull/3490)_
+- Fixed connection creation failures due to schema name collisions while adding provided sample schema(s) in the database _[#3490](https://github.com/mathesar-foundation/mathesar/pull/3490)_
- Fixed height inconsistencies of record selector's text inputs _[#3495](https://github.com/mathesar-foundation/mathesar/pull/3495)_
- Fixed CSRF failures when the app is behind a reverse proxy _[#3499](https://github.com/mathesar-foundation/mathesar/pull/3499)_
- Fixed layout issues while using Japanese translations _[#3501](https://github.com/mathesar-foundation/mathesar/pull/3501)_
## Maintenance
-- Added a health check endpoint to Mathesar _[#3479](https://github.com/mathesar-foundation/mathesar/pull/3479)_
-- Added PG 16 to testing matrix _[#3480](https://github.com/mathesar-foundation/mathesar/pull/3480)_
+- Added a health check endpoint for Mathesar _[#3479](https://github.com/mathesar-foundation/mathesar/pull/3479)_
+- Added Postgres 16 to testing matrix _[#3480](https://github.com/mathesar-foundation/mathesar/pull/3480)_
- Added MkDocs edit URI _[#3482](https://github.com/mathesar-foundation/mathesar/pull/3482)_
- Bumped Django from 4.2.8 to 4.2.10 _[#3492](https://github.com/mathesar-foundation/mathesar/pull/3492)_
- Removed stale code coverage badge _[#3491](https://github.com/mathesar-foundation/mathesar/pull/3491)_
From 459c9322624e4c4f510d5a37801c8a4f263b90a7 Mon Sep 17 00:00:00 2001
From: Kriti Godey
Date: Tue, 26 Mar 2024 17:07:14 -0400
Subject: [PATCH 57/60] Updated summary
---
docs/docs/releases/0.1.6.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/docs/releases/0.1.6.md b/docs/docs/releases/0.1.6.md
index e92af338d0..7328475ea3 100644
--- a/docs/docs/releases/0.1.6.md
+++ b/docs/docs/releases/0.1.6.md
@@ -2,7 +2,7 @@
## Summary
-Mathesar 0.1.6 brings compatibility with Python versions 3.10 and 3.11, PostgreSQL 16 support, ease of use while working with longer texts on the record page, as well as Japanese translations within the application.
+Mathesar 0.1.6 introduces Japanese localization of the UI and adds better support for working with long text in individual record pages. Improvements for administrators include compatibility with Python 3.10 and 3.11, support for databases running PostgreSQL 16, and the removal of `npm` and `nodejs` as dependencies when installing from scratch.
_This page provides a comprehensive list of all changes in the release._
From 34106d1c0349f8833ecd137e193b3f2ac4f2889b Mon Sep 17 00:00:00 2001
From: Anish Umale
Date: Thu, 28 Mar 2024 03:04:34 +0530
Subject: [PATCH 58/60] reorganize the doc and add a documentation section
---
docs/docs/releases/0.1.6.md | 61 ++++++++++++++++++++++++++-----------
1 file changed, 44 insertions(+), 17 deletions(-)
diff --git a/docs/docs/releases/0.1.6.md b/docs/docs/releases/0.1.6.md
index 7328475ea3..853e7938a6 100644
--- a/docs/docs/releases/0.1.6.md
+++ b/docs/docs/releases/0.1.6.md
@@ -12,25 +12,52 @@ See our guide on [upgrading Mathesar to 0.1.6](../administration/upgrade/0.1.6.m
## Improvements
-- Mathesar is now compatible with Python versions: 3.10 and 3.11 along with 3.9 _[#3478](https://github.com/mathesar-foundation/mathesar/pull/3478)_
-- Added support for Japanese translations _[#3486](https://github.com/mathesar-foundation/mathesar/pull/3486)_, _[#3484](https://github.com/mathesar-foundation/mathesar/pull/3484)_, _[#3483](https://github.com/mathesar-foundation/mathesar/pull/3483)_, _[#3472](https://github.com/mathesar-foundation/mathesar/pull/3472)_
-- NodeJS is no longer a requirement for building Mathesar from source _[#3489](https://github.com/mathesar-foundation/mathesar/pull/3489)_
-- Text fields now auto-expands on the record page to accommodate longer texts _[#3470](https://github.com/mathesar-foundation/mathesar/pull/3470)_
+### You can now configure Mathesar's UI to display in Japanese
-## Bug fixes
+The language setting is stored per-user and can be modified when logging in or when editing a user. This changes the text displayed on buttons and other UI elements within Mathesar. It does not change the display of data within your database (e.g. table names, column names, and cell values). We are hoping to support more languages beyond English and Japanese eventually. Please reach out to us if your are interested in helping to add more translations!
+
+_[#3486](https://github.com/mathesar-foundation/mathesar/pull/3486 "Enable i18n")_, _[#3484](https://github.com/mathesar-foundation/mathesar/pull/3484 "Updates for file translations/en/LC_MESSAGES/django.po in ja")_, _[#3483](https://github.com/mathesar-foundation/mathesar/pull/3483 "Updates for file mathesar_ui/src/i18n/languages/en/dict.json in ja")_, _[#3472](https://github.com/mathesar-foundation/mathesar/pull/3472 "Separate pluralized string to fix Transifex sync")_, _[#3501](https://github.com/mathesar-foundation/mathesar/pull/3501 "Fix layout problem in Data Explorer actions pane")_
-- Fixed record selector filtering bug _[#3488](https://github.com/mathesar-foundation/mathesar/pull/3488)_
-- Fixed connection creation failures due to schema name collisions while adding provided sample schema(s) in the database _[#3490](https://github.com/mathesar-foundation/mathesar/pull/3490)_
-- Fixed height inconsistencies of record selector's text inputs _[#3495](https://github.com/mathesar-foundation/mathesar/pull/3495)_
-- Fixed CSRF failures when the app is behind a reverse proxy _[#3499](https://github.com/mathesar-foundation/mathesar/pull/3499)_
-- Fixed layout issues while using Japanese translations _[#3501](https://github.com/mathesar-foundation/mathesar/pull/3501)_
+### Text fields now auto-expands on the record page to accommodate longer texts
+
+**Before**
+
+All text inputs on the record page had the same height, regardless of their content.
+
+**After**
+
+All text inputs in record page dynamically adjust to accommodate the content seamlessly.
+
+_[#3470](https://github.com/mathesar-foundation/mathesar/pull/3470 "Make textarea inputs auto-expand to accommodate longer text fields on the record page")_, _[#3488](https://github.com/mathesar-foundation/mathesar/pull/3488 "Fix regression with record selector not filtering")_, [#3495](https://github.com/mathesar-foundation/mathesar/pull/3495 "Prevent record selector inputs from growing taller")
+
+### Mathesar is now compatible with Python versions: 3.10 and 3.11 along with 3.9
+Mathesar now officially supports Python versions 3.10 and 3.11, in addition to the existing 3.9 compatibility. This will provide great flexibilty while building Mathesar from source on an OS that natively ships with relatively newer versions of Python.
+_[#3478](https://github.com/mathesar-foundation/mathesar/pull/3478 "Extend mathesar to support python 3.10 and above")_, _[#3499](https://github.com/mathesar-foundation/mathesar/pull/3499 "Fix CSRF failures when app is behind a reverse proxy")_, _[#3503](https://github.com/mathesar-foundation/mathesar/pull/3503 "Remove 3.12 support from docs")_, [#3504](https://github.com/mathesar-foundation/mathesar/pull/3504 "Parameterize dev service python version")
+
+### Mathesar is now compatible with PostgreSQL 16
+Mathesar now officially supports, and is tested against, Postgres versions 13, 14, 15 and 16.
+_[#3480](https://github.com/mathesar-foundation/mathesar/pull/3480 "Add PG 16 to testing matrix")_
+
+### NodeJS is no longer a requirement for building Mathesar from source
+
+_[#3489](https://github.com/mathesar-foundation/mathesar/pull/3489 "GH workflow to create draft release with built static files")_
+
+## Bug fix
+
+- Fixed connection creation failures due to schema name collisions while adding provided sample schema(s) in the database _[#3490](https://github.com/mathesar-foundation/mathesar/pull/3490 "Fix schema creation errors while adding a new connection")_
+
+## Documentation
+
+- Documented upgrade instructions for v0.1.6 _[#3507](https://github.com/mathesar-foundation/mathesar/pull/3507 "Adds upgrade documentation for 0.1.6, fixes existing issues with upgrade docs")_
+- Documented mathesar-debug image for Docker based installations _[#3513](https://github.com/mathesar-foundation/mathesar/pull/3513 "Add Debug image docs")_
+- Fixed upgrade instructions for v0.1.5 _[#3469](https://github.com/mathesar-foundation/mathesar/pull/3469 "Merge pull request #3468 from mathesar-foundation/upgrade_instruction_fix")_
+- Updated Mathesar's version number in docs _[#3476](https://github.com/mathesar-foundation/mathesar/pull/3476 "Merge pull request #3475 from mathesar-foundation/version_number_in_docs")_
## Maintenance
-- Added a health check endpoint for Mathesar _[#3479](https://github.com/mathesar-foundation/mathesar/pull/3479)_
-- Added Postgres 16 to testing matrix _[#3480](https://github.com/mathesar-foundation/mathesar/pull/3480)_
-- Added MkDocs edit URI _[#3482](https://github.com/mathesar-foundation/mathesar/pull/3482)_
-- Bumped Django from 4.2.8 to 4.2.10 _[#3492](https://github.com/mathesar-foundation/mathesar/pull/3492)_
-- Removed stale code coverage badge _[#3491](https://github.com/mathesar-foundation/mathesar/pull/3491)_
-- Removed NodeJS from Docker production image _[#3474](https://github.com/mathesar-foundation/mathesar/pull/3474)_
-- Improved Docker development image to allow switching between Python versions _[#3504](https://github.com/mathesar-foundation/mathesar/pull/3504)_
+- Added a health check endpoint for Mathesar _[#3479](https://github.com/mathesar-foundation/mathesar/pull/3479 "Add health check endpoint to Mathesar")_
+- Bumped Django from 4.2.8 to 4.2.10 _[#3492](https://github.com/mathesar-foundation/mathesar/pull/3492 "Bump django from 4.2.8 to 4.2.10")_
+- Removed NodeJS from Docker production image _[#3474](https://github.com/mathesar-foundation/mathesar/pull/3474 "Add multiple stages to Dockerfile, remove NodeJS & unnecessary source files from production image")_
+- Added MkDocs edit URI _[#3482](https://github.com/mathesar-foundation/mathesar/pull/3482 "Added MkDocs edit URI")_
+- Removed stale code coverage badge _[#3491](https://github.com/mathesar-foundation/mathesar/pull/3491 "Remove stale code coverage badge")_
+- Post release cleanup _[#3463](https://github.com/mathesar-foundation/mathesar/pull/3463 "Merge pull request #3460 from mathesar-foundation/0.1.5")_
From f2fa5da534d8984fc8402079cede3eba8891825b Mon Sep 17 00:00:00 2001
From: Anish Umale
Date: Thu, 28 Mar 2024 03:14:02 +0530
Subject: [PATCH 59/60] add images
---
docs/docs/releases/0.1.6.md | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/docs/docs/releases/0.1.6.md b/docs/docs/releases/0.1.6.md
index 853e7938a6..443de6bce7 100644
--- a/docs/docs/releases/0.1.6.md
+++ b/docs/docs/releases/0.1.6.md
@@ -14,8 +14,10 @@ See our guide on [upgrading Mathesar to 0.1.6](../administration/upgrade/0.1.6.m
### You can now configure Mathesar's UI to display in Japanese
-The language setting is stored per-user and can be modified when logging in or when editing a user. This changes the text displayed on buttons and other UI elements within Mathesar. It does not change the display of data within your database (e.g. table names, column names, and cell values). We are hoping to support more languages beyond English and Japanese eventually. Please reach out to us if your are interested in helping to add more translations!
-
+The language setting is stored per-user and can be modified when logging in or when editing a user. This changes the text displayed on buttons and other UI elements within Mathesar. It does not change the display of data within your database (e.g. table names, column names, and cell values). We are hoping to support more languages beyond English and Japanese eventually. Please reach out to us if your are interested in helping to add more translations!
+
+![image](https://github.com/mathesar-foundation/mathesar/assets/52523023/f100423a-922c-4b6c-ad22-3c16cd06afde)
+
_[#3486](https://github.com/mathesar-foundation/mathesar/pull/3486 "Enable i18n")_, _[#3484](https://github.com/mathesar-foundation/mathesar/pull/3484 "Updates for file translations/en/LC_MESSAGES/django.po in ja")_, _[#3483](https://github.com/mathesar-foundation/mathesar/pull/3483 "Updates for file mathesar_ui/src/i18n/languages/en/dict.json in ja")_, _[#3472](https://github.com/mathesar-foundation/mathesar/pull/3472 "Separate pluralized string to fix Transifex sync")_, _[#3501](https://github.com/mathesar-foundation/mathesar/pull/3501 "Fix layout problem in Data Explorer actions pane")_
### Text fields now auto-expands on the record page to accommodate longer texts
@@ -24,17 +26,23 @@ _[#3486](https://github.com/mathesar-foundation/mathesar/pull/3486 "Enable i18n"
All text inputs on the record page had the same height, regardless of their content.
+![image](https://github.com/mathesar-foundation/mathesar/assets/52523023/e6ded1de-7b81-49f9-9b2e-7a6311a22d4f)
+
**After**
All text inputs in record page dynamically adjust to accommodate the content seamlessly.
+![image](https://github.com/mathesar-foundation/mathesar/assets/52523023/31e031cc-5c71-447f-9381-c4d6fae03b2d")
+
_[#3470](https://github.com/mathesar-foundation/mathesar/pull/3470 "Make textarea inputs auto-expand to accommodate longer text fields on the record page")_, _[#3488](https://github.com/mathesar-foundation/mathesar/pull/3488 "Fix regression with record selector not filtering")_, [#3495](https://github.com/mathesar-foundation/mathesar/pull/3495 "Prevent record selector inputs from growing taller")
### Mathesar is now compatible with Python versions: 3.10 and 3.11 along with 3.9
-Mathesar now officially supports Python versions 3.10 and 3.11, in addition to the existing 3.9 compatibility. This will provide great flexibilty while building Mathesar from source on an OS that natively ships with relatively newer versions of Python.
+
+Mathesar now officially supports Python versions 3.10 and 3.11, in addition to the existing 3.9 compatibility. This will provide great flexibility while building Mathesar from source on an OS that natively ships with relatively newer versions of Python.
_[#3478](https://github.com/mathesar-foundation/mathesar/pull/3478 "Extend mathesar to support python 3.10 and above")_, _[#3499](https://github.com/mathesar-foundation/mathesar/pull/3499 "Fix CSRF failures when app is behind a reverse proxy")_, _[#3503](https://github.com/mathesar-foundation/mathesar/pull/3503 "Remove 3.12 support from docs")_, [#3504](https://github.com/mathesar-foundation/mathesar/pull/3504 "Parameterize dev service python version")
### Mathesar is now compatible with PostgreSQL 16
+
Mathesar now officially supports, and is tested against, Postgres versions 13, 14, 15 and 16.
_[#3480](https://github.com/mathesar-foundation/mathesar/pull/3480 "Add PG 16 to testing matrix")_
@@ -50,6 +58,7 @@ _[#3489](https://github.com/mathesar-foundation/mathesar/pull/3489 "GH workflow
- Documented upgrade instructions for v0.1.6 _[#3507](https://github.com/mathesar-foundation/mathesar/pull/3507 "Adds upgrade documentation for 0.1.6, fixes existing issues with upgrade docs")_
- Documented mathesar-debug image for Docker based installations _[#3513](https://github.com/mathesar-foundation/mathesar/pull/3513 "Add Debug image docs")_
+- 0.1.6 release notes _[#3506](https://github.com/mathesar-foundation/mathesar/pull/3506 "Release notes v0.1.6")_
- Fixed upgrade instructions for v0.1.5 _[#3469](https://github.com/mathesar-foundation/mathesar/pull/3469 "Merge pull request #3468 from mathesar-foundation/upgrade_instruction_fix")_
- Updated Mathesar's version number in docs _[#3476](https://github.com/mathesar-foundation/mathesar/pull/3476 "Merge pull request #3475 from mathesar-foundation/version_number_in_docs")_
From ed61ebe2909805a6bde206c9b53646dc64bfeb0b Mon Sep 17 00:00:00 2001
From: Anish Umale
Date: Thu, 28 Mar 2024 03:42:59 +0530
Subject: [PATCH 60/60] add description for nodejs removal
---
docs/docs/releases/0.1.6.md | 12 ++++++++----
docs/mkdocs.yml | 1 +
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/docs/docs/releases/0.1.6.md b/docs/docs/releases/0.1.6.md
index 443de6bce7..6fb0c59674 100644
--- a/docs/docs/releases/0.1.6.md
+++ b/docs/docs/releases/0.1.6.md
@@ -32,22 +32,26 @@ All text inputs on the record page had the same height, regardless of their cont
All text inputs in record page dynamically adjust to accommodate the content seamlessly.
-![image](https://github.com/mathesar-foundation/mathesar/assets/52523023/31e031cc-5c71-447f-9381-c4d6fae03b2d")
+![image](https://github.com/mathesar-foundation/mathesar/assets/52523023/31e031cc-5c71-447f-9381-c4d6fae03b2d)
_[#3470](https://github.com/mathesar-foundation/mathesar/pull/3470 "Make textarea inputs auto-expand to accommodate longer text fields on the record page")_, _[#3488](https://github.com/mathesar-foundation/mathesar/pull/3488 "Fix regression with record selector not filtering")_, [#3495](https://github.com/mathesar-foundation/mathesar/pull/3495 "Prevent record selector inputs from growing taller")
### Mathesar is now compatible with Python versions: 3.10 and 3.11 along with 3.9
Mathesar now officially supports Python versions 3.10 and 3.11, in addition to the existing 3.9 compatibility. This will provide great flexibility while building Mathesar from source on an OS that natively ships with relatively newer versions of Python.
+
_[#3478](https://github.com/mathesar-foundation/mathesar/pull/3478 "Extend mathesar to support python 3.10 and above")_, _[#3499](https://github.com/mathesar-foundation/mathesar/pull/3499 "Fix CSRF failures when app is behind a reverse proxy")_, _[#3503](https://github.com/mathesar-foundation/mathesar/pull/3503 "Remove 3.12 support from docs")_, [#3504](https://github.com/mathesar-foundation/mathesar/pull/3504 "Parameterize dev service python version")
### Mathesar is now compatible with PostgreSQL 16
Mathesar now officially supports, and is tested against, Postgres versions 13, 14, 15 and 16.
+
_[#3480](https://github.com/mathesar-foundation/mathesar/pull/3480 "Add PG 16 to testing matrix")_
### NodeJS is no longer a requirement for building Mathesar from source
+We removed NodeJS as a dependency in favour of providing users with pre-built static assest for building Mathesar from source.
+
_[#3489](https://github.com/mathesar-foundation/mathesar/pull/3489 "GH workflow to create draft release with built static files")_
## Bug fix
@@ -57,16 +61,16 @@ _[#3489](https://github.com/mathesar-foundation/mathesar/pull/3489 "GH workflow
## Documentation
- Documented upgrade instructions for v0.1.6 _[#3507](https://github.com/mathesar-foundation/mathesar/pull/3507 "Adds upgrade documentation for 0.1.6, fixes existing issues with upgrade docs")_
-- Documented mathesar-debug image for Docker based installations _[#3513](https://github.com/mathesar-foundation/mathesar/pull/3513 "Add Debug image docs")_
- 0.1.6 release notes _[#3506](https://github.com/mathesar-foundation/mathesar/pull/3506 "Release notes v0.1.6")_
+- Documented mathesar-debug image for Docker based installations _[#3513](https://github.com/mathesar-foundation/mathesar/pull/3513 "Add Debug image docs")_
- Fixed upgrade instructions for v0.1.5 _[#3469](https://github.com/mathesar-foundation/mathesar/pull/3469 "Merge pull request #3468 from mathesar-foundation/upgrade_instruction_fix")_
- Updated Mathesar's version number in docs _[#3476](https://github.com/mathesar-foundation/mathesar/pull/3476 "Merge pull request #3475 from mathesar-foundation/version_number_in_docs")_
+- Added MkDocs edit URI _[#3482](https://github.com/mathesar-foundation/mathesar/pull/3482 "Added MkDocs edit URI")_
+- Removed stale code coverage badge _[#3491](https://github.com/mathesar-foundation/mathesar/pull/3491 "Remove stale code coverage badge")_
## Maintenance
- Added a health check endpoint for Mathesar _[#3479](https://github.com/mathesar-foundation/mathesar/pull/3479 "Add health check endpoint to Mathesar")_
- Bumped Django from 4.2.8 to 4.2.10 _[#3492](https://github.com/mathesar-foundation/mathesar/pull/3492 "Bump django from 4.2.8 to 4.2.10")_
- Removed NodeJS from Docker production image _[#3474](https://github.com/mathesar-foundation/mathesar/pull/3474 "Add multiple stages to Dockerfile, remove NodeJS & unnecessary source files from production image")_
-- Added MkDocs edit URI _[#3482](https://github.com/mathesar-foundation/mathesar/pull/3482 "Added MkDocs edit URI")_
-- Removed stale code coverage badge _[#3491](https://github.com/mathesar-foundation/mathesar/pull/3491 "Remove stale code coverage badge")_
- Post release cleanup _[#3463](https://github.com/mathesar-foundation/mathesar/pull/3463 "Merge pull request #3460 from mathesar-foundation/0.1.5")_
diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml
index fe2b07cc4e..28bb3ba18c 100644
--- a/docs/mkdocs.yml
+++ b/docs/mkdocs.yml
@@ -25,6 +25,7 @@ nav:
- Users & access levels: user-guide/users.md
- Glossary: user-guide/glossary.md
- Releases:
+ - '0.1.6': releases/0.1.6.md
- '0.1.5': releases/0.1.5.md
- '0.1.4': releases/0.1.4.md
- '0.1.3': releases/0.1.3.md