-
-
Notifications
You must be signed in to change notification settings - Fork 332
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 #3539 from mathesar-foundation/0.1.7
Release 0.1.7
- Loading branch information
Showing
34 changed files
with
1,785 additions
and
105 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
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
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.7 | ||
|
||
## 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.7. | ||
|
||
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.7 from the repository | ||
|
||
``` | ||
git pull https://github.com/mathesar-foundation/mathesar.git | ||
git checkout 0.1.7 | ||
``` | ||
|
||
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.7/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# REST API | ||
|
||
Mathesar has a REST API that the front end uses to interact with the backend. | ||
|
||
For Mathesar's beta release, we are actively transitioning to a new [RPC-style API](https://wiki.mathesar.org/projects/2024/architecture-transition/rpc/) and will soon be phasing out the REST API entirely. | ||
|
||
The REST API is not documented and is not intended to be used by third-party developers. | ||
|
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,92 @@ | ||
# RPC API | ||
|
||
Mathesar has an API available at `/api/rpc/v0/` which follows the [JSON-RPC](https://www.jsonrpc.org/specification) spec version 2.0. | ||
|
||
## About | ||
|
||
### Status | ||
|
||
We are currently in the process of [transitioning](https://wiki.mathesar.org/projects/2024/architecture-transition/rpc/) our API architecture from a [RESTful](rest.md) API to this RPC-style API, and we hope to have all functionality available through the RPC API by Mathesar's beta release. | ||
|
||
!!! caution "Stability" | ||
The RPC API is not yet stable and may change in the future, even after we've completed the transition to the RPC API architecture. If you build logic that depends on this API, be mindful that it may change in the future without warning or notice. | ||
|
||
### Usage | ||
|
||
To use an RPC function: | ||
|
||
- Call it with a dot path starting from its root path. | ||
- Always use named parameters. | ||
- Ensure that your request includes HTTP headers for valid session IDs, as well as CSRF cookies and tokens. | ||
|
||
!!! example | ||
|
||
To call function `add_from_known_connection` from the `connections` section of this page, you'd send something like: | ||
|
||
`POST /api/rpc/v0/` | ||
|
||
```json | ||
{ | ||
"jsonrpc": "2.0", | ||
"id": 234, | ||
"method": "connections.add_from_known_connection", | ||
"params": { | ||
"nickname": "anewconnection", | ||
"db_name": "mynewcooldb" | ||
}, | ||
} | ||
``` | ||
|
||
--- | ||
|
||
::: mathesar.rpc.connections | ||
options: | ||
members: | ||
- add_from_known_connection | ||
- add_from_scratch | ||
- DBModelReturn | ||
|
||
## Responses | ||
|
||
### Success | ||
|
||
Upon a successful call to an RPC function, the API will return a success object. Such an object has the following form: | ||
|
||
```json | ||
{ | ||
"jsonrpc": "2.0", | ||
"id": 234, | ||
"result": <any> | ||
} | ||
``` | ||
|
||
The `result` is whatever was returned by the underlying function. | ||
|
||
### Errors | ||
|
||
When an error is produced by a call to the RPC endpoint, we produce an error of the following form: | ||
|
||
```json | ||
{ | ||
"jsonrpc": "2.0", | ||
"id": 234, | ||
"error": { | ||
"code": <int>, | ||
"message": <str> | ||
} | ||
} | ||
``` | ||
|
||
The `code` is a negative integer. Some codes are produced according to the [JSON-RPC spec](https://www.jsonrpc.org/specification#error_object). | ||
|
||
Other error codes are grouped according to the library that produced the Exception: | ||
|
||
- `builtins`: -31xxx | ||
- `psycopg` or `psycopg2`: -30xxx | ||
- `django`: -29xxx | ||
- `mathesar` (our code): -28xxx | ||
- `db` (our code): -27xxx | ||
- `sqlalchemy`: -26xxx | ||
- other: -25xxx | ||
|
||
Unrecognized errors from a given library return a "round number" code, so an unknown `builtins` error gets the code -31000. |
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,48 @@ | ||
# Mathesar 0.1.7 | ||
|
||
## Summary | ||
|
||
Mathesar 0.1.7 introduces linked table navigation from the data cell context menu. This release also fixes the regeneration of exploration share URLs and removes the 'group' suffix in the Data Explorer column names. | ||
|
||
_This page provides a comprehensive list of all changes in the release._ | ||
|
||
## Upgrading to 0.1.7 | ||
|
||
See our guide on [upgrading Mathesar to 0.1.7](../administration/upgrade/0.1.7.md). | ||
|
||
## Improvements | ||
|
||
### Linked Table Navigation from Cell Context Menu | ||
|
||
Users can now navigate to linked tables from the cell context menu, providing a more seamless experience when working with linked data. | ||
|
||
![image](https://github.com/mathesar-foundation/mathesar/assets/845767/3015b1e8-7038-41b3-a9ec-59a4d55780d0) | ||
|
||
_[#3526](https://github.com/mathesar-foundation/mathesar/pull/3526 " Navigate to linked table via cell context menu ")_ | ||
|
||
## Bug fixes | ||
|
||
### Fixed Regeneration of Exploration Share URL | ||
|
||
Fixed an issue where clicking "Regenerate Link" for a shared exploration failed to create a new URL and resulted in a 404 API request. Now, users will see a successful API call with a new, regenerated share URL. | ||
|
||
_[#3521](https://github.com/mathesar-foundation/mathesar/pull/3521 "Fix regeneration of exploration share URL")_ | ||
|
||
### Remove 'group' Suffix in Data Explorer | ||
|
||
Resolved an issue in the Data Explorer where the grouping column name was incorrectly suffixed with 'group'. Now, the original column names are preserved when summarizing data. | ||
|
||
_[#3357](https://github.com/mathesar-foundation/mathesar/pull/3357 "Removed the 'group' suffix in Data Explorer")_ | ||
|
||
## Documentation | ||
|
||
- Upgrade Instructions for 0.1.7 _[#3534](https://github.com/mathesar-foundation/mathesar/pull/3534 "Upgrade instructions for 0.1.7")_ | ||
|
||
## Maintenance | ||
|
||
- Bump Django from 4.2.10 to 4.2.11 _[#3496](https://github.com/mathesar-foundation/mathesar/pull/3496 "Bump django from 4.2.10 to 4.2.11")_ | ||
- Made Release Notes Script Portable _[#3529](https://github.com/mathesar-foundation/mathesar/pull/3529 "Made release notes script portable.")_ | ||
- Removed Stray Changes Post Script Update _[#3530](https://github.com/mathesar-foundation/mathesar/pull/3530 "Removed stray change left over from #3529")_ | ||
- Integrated Changes from Previous Release Preparation _[#3517](https://github.com/mathesar-foundation/mathesar/pull/3517 "Merge pull request #3494 from mathesar-foundation/0.1.6")_ | ||
- Added Demo Target in Dockerfile for Future Deployments _[#3523](https://github.com/mathesar-foundation/mathesar/pull/3523 "Add demo target to Dockerfile")_ | ||
- New RPC Endpoint Implementation for Superuser Functions _[#3524](https://github.com/mathesar-foundation/mathesar/pull/3524 "Modern rpc prototype")_ |
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
Oops, something went wrong.