-
-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3517 from mathesar-foundation/master
Merge pull request #3494 from mathesar-foundation/0.1.6
- Loading branch information
Showing
13 changed files
with
238 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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. Pull 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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# Mathesar 0.1.6 | ||
|
||
## Summary | ||
|
||
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._ | ||
|
||
## Upgrading to 0.1.6 | ||
|
||
See our guide on [upgrading Mathesar to 0.1.6](../administration/upgrade/0.1.6.md). | ||
|
||
## Improvements | ||
|
||
### 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! | ||
|
||
![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 | ||
|
||
**Before** | ||
|
||
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 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 | ||
|
||
- 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")_ | ||
- 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")_ | ||
- Post release cleanup _[#3463](https://github.com/mathesar-foundation/mathesar/pull/3463 "Merge pull request #3460 from mathesar-foundation/0.1.5")_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
default_app_config = 'mathesar.apps.MathesarConfig' | ||
|
||
__version__ = "0.1.5" | ||
__version__ = "0.1.6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters