Skip to content

Commit 1cdf5e4

Browse files
authored
Add admin manual and detailed changelog sections
1 parent 3883573 commit 1cdf5e4

File tree

6 files changed

+80
-0
lines changed

6 files changed

+80
-0
lines changed

docs/admin-manual/overview.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
# Overview
3+
4+
In this section, you will find information relevant to the administration and maintenance of the
5+
{{ extra.project }}.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Upgrades
2+
3+
This document describes version specific upgrade instructions.
4+
5+
!!! Note
6+
7+
Always backup your database before performing an upgrade to next Papermerge version
8+
9+
## 3.5.3 (not yet released)
10+
11+
When migration from `3.5.2` to `3.5.3` make sure that you don't have in database table `users` entries with `home_folder_id` or `inbox_folder_id` columns set to NULL - in such case migration will fail.
12+
13+
Though it was possible before 3.5.3 under certain circumstances to create users with either one or both of these two columns set to NULL, it is very unlikely that this case is relevant for you.
14+
In case you have some - please delete these entries (`DELETE users WHERE home_folder_id IS NULL OR inbox_folder_id IS NULL`)
15+
No worries about deleting user entity with NULL value for `home_folder_id` or `home_folder_id` as such entities are stale anyway - they have no documents associated and no login is possible.

docs/admin-manual/version-matrix.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Version Matrix
2+
3+
The individual {{extra.project}} services, can be executed in Docker containers. To retain version compatibility, use only the listed image tags for {{extra.project}} versions.
4+
5+
## {{extra.project}} Versions
6+
7+
The listed versions have been tested. Other combinations might work as well, but can cause side effects, that are not supported by {{extra.project}}.
8+
9+
| Papermerge Version | Docker Image | Auth Server<br>(used only internally) |OCR Worker | Path Template Worker | S3 Worker | i3 Worker | DB | Redis | Solr |
10+
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
11+
| [**3.5.2**](https://github.com/papermerge/papermerge-core/releases/tag/3.5.2) | papermerge/papermerge:3.5.2 | papermerge/auth-server:1.1.3 |papermerge/ocrworker:0.3.1 | papermerge/path-tmpl-worker:0.4 | papermerge/s3worker:0.5 | papermerge/i3worker:0.3 | postgres:16.1 | bitname-redis:7.2 | solr:9.7 |
12+
| [**3.4.1**](https://github.com/papermerge/papermerge-core/releases/tag/3.4.1) | papermerge/papermerge:3.4.1 | papermerge/auth-server:1.0.2 | papermerge/ocrworker:0.3.1 | papermerge/path-tmpl-worker:0.3.2 | papermerge/s3worker:0.4.3 | papermerge/i3worker:0.3 | postgres:16.1 | bitname-redis:7.2 | solr:9.7 |

docs/changelog/3.5/3.5.3.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
# 3.5.3 – Not Yet Released
3+
4+
If you want to see all database schema changes for the 3.5.3 release, have a look at the
5+
[migrations folder](https://github.com/papermerge/papermerge-core/tree/master/papermerge/core/alembic/versions) — specifically, all files containing `__v3_5_3__` in their name.
6+
7+
## Async Instead of Sync
8+
9+
This enhancement is related to performance.
10+
Simply put, the REST API core server can now handle many more concurrent connections.
11+
This is possible because its internal mechanics have changed:
12+
instead of handling connections and database requests synchronously, they are now handled asynchronously.
13+
14+
## Home/Inbox DB Checks
15+
16+
This enhancement introduces the following database schema changes:
17+
`users.home_folder_id` and `users.inbox_folder_id` now have a "NOT NULL" database constraint.
18+
This means that, at the database level, it is guaranteed that a user will always have
19+
an existing home and inbox folder.
20+
21+
To make this technically possible, the `nodes_user_id_fkey` foreign key constraint on the `nodes` table
22+
was changed to be *deferrable*.
23+
24+
The purpose of this change is to prevent situations where a user is created
25+
without an associated home or inbox folder.
26+
27+
## Length Limit on Users Columns
28+
29+
This is a security-related database schema change.
30+
The following columns of the `users` table now have upper length limits:
31+
32+
* `email`: limited to 254 characters
33+
* `password`: limited to 255 characters
34+
* `username`: limited to 150 characters
35+
* `first_name`: limited to 100 characters
36+
* `last_name`: limited to 100 characters

docs/changelog/overview.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Overview
2+
3+
This section provides detailed changelog information of the {{extra.project}}.
4+
A shorter version of this document can be found in the
5+
[Papermerge Core repo](https://github.com/papermerge/papermerge-core/blob/master/changelog.md).

mkdocs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ nav:
3030
- user/group-ownership.md
3131
- user/roles.md
3232
- user/sharing.md
33+
- Administrator Manual:
34+
- "admin-manual/overview.md"
35+
- "admin-manual/version-matrix.md"
36+
- "admin-manual/upgrade-instructions.md"
3337
- SSO:
3438
- sso/overview.md
3539
- OIDC:
@@ -52,6 +56,9 @@ nav:
5256
- settings/ocrworker.md
5357
- settings/i3worker.md
5458
- "pmdump.md"
59+
- Changelog:
60+
- "changelog/overview.md"
61+
- "changelog/3.5/3.5.3.md"
5562
- REST API:
5663
- "rest-api/overview.md"
5764
- "rest-api/reference.md"

0 commit comments

Comments
 (0)