Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Update CHANGELOG.md

Roland Geider82e6753ca1f9
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9344377b3..e045b112e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,23 +5,27 @@
## New features
-### Offline mode (mobile app)
+### Offline mode (mobile app) 🥳
Adds the necessary backend changes to (finally!) support offline mode in the
mobile app. The data is saved in a local sqlite database and synced with the
-server when the network is reachable again.
+server when the network is reachable again. Basically the whole application
+can be used without internet, with few exceptions such as
-The downside to this is that there are a handful of manual steps needed, see below.
+* routines (needs some backend logic to calculate the routine data)
+* gallery (due to the image upload)
+* account actions like changing the email, etc.
+
+Buttons and menus will be grayed out if they can't currently be used.
### Social login and 2FA
It's now possible to login with social auth providers like Google, Facebook, etc.
+Also, we now support two-factor authentication like security codes or passkeys.
-*****
-!!! TODO !!!: add link to readthedocs
-*****
+* https://wger.readthedocs.io/en/latest/administration/mfa.html
+* https://wger.readthedocs.io/en/latest/administration/social_auth.html
-Also, we now support two-factor authentication like security codes or passkeys.
### Others
@@ -45,34 +49,41 @@ Also, we now support two-factor authentication like security codes or passkeys.
## Upgrade steps
-* If you are using docker, make sure to pull the latest changes from the docker repo
- as there is a new service ("powersync") and configs (e.g. for nginx/Caddy).
-
-* Set the `PS_DATABASE_URI` with the wger db password in the usual format
- `postgres://<user>:<password>@<host>:<port>/<dbname>`. Note that if you didn't
- change the default db config, you just need to update the docker compose files,
- and you're good to go.
-
-* The Postgres container in the docker-compose setup now reads its credentials
- (`POSTGRES_USER`, `POSTGRES_PASSWORD`, `POSTGRES_DB`) from `prod.env` instead
- of having them hardcoded in the yaml file. As above, you only need to change
- this if you are using some non-standard password.
+* If you are using docker, make sure to pull the latest changes from the
+ [docker repo](https://github.com/wger-project/docker) as there is a new service
+ ("powersync") and configs (e.g. for nginx/Caddy).
* `SIGNING_KEY` is replaced by `JWT_PRIVATE_KEY` and `JWT_PUBLIC_KEY`.
Run `docker compose exec web ./manage.py generate-jwt-keys` to generate a new pair.
-* The powersync service needs its own dedicated user and schema inside the Postgres
- database to store its sync state, this can be configured in `PS_STORAGE_PG_URI`
- if you want to change the defaults. Afterwards just run
+* The new powersync service needs its own dedicated user and schema inside the
+ Postgres database to store its sync state, run
`docker compose exec web ./manage.py setup-powersync-storage` to apply.
+ If you want to change the defaults, this can be configured in `PS_STORAGE_PG_URI`.
+
+* Make sure you have set `SITE_URL` with your server's URL
+
+* *(ignore if you didn't change the db password)* Set the `PS_DATABASE_URI` with
+ the wger db password in the usual format `postgres://<user>:<password>@<host>:<port>/<dbname>`.
-* Make sure you have set the value for `SITE_URL`.
+* *(ignore if you didn't change the db password)* The Postgres container in the
+ docker-compose setup now reads its credentials (`POSTGRES_USER`, `POSTGRES_PASSWORD`,
+ `POSTGRES_DB`) from `prod.env` instead of having them hardcoded in the yaml file.
## Breaking changes
-The type for the ID for Measurement and MeasurementCategory was changed from integer
-to string (UUID). This was made to allow for clients to generate IDs locally and affects
-`/api/v2/measurement-category/` and `/api/v2/measurement/`.
+*(only relevant if you have your own scripts or interact with the REST API)*
+
+The type for the ID was changed from integer to string (UUID) for several models,
+to allow clients to generate IDs locally. This affects the following endpoints:
+* `/api/v2/measurement-category/`
+* `/api/v2/measurement/`
+* `/api/v2/nutritionplan/` and `/api/v2/nutritionplaninfo/`
+* `/api/v2/meal/`
+* `/api/v2/mealitem/`
+* `/api/v2/nutritiondiary/`
+* `/api/v2/workoutsession/`
+* `/api/v2/workoutlog/`
**`/api/v2/login/` and `/api/v2/register/` endpoints removed.** These endpoints returned
a permanent token, use the allauth ones instead (JWT based). If you still need a permanent