Commit Graph

9047 Commits

Author SHA1 Message Date
Roland Geider
fc952f0d48 Fix tests 2026-05-18 17:02:55 +02:00
Roland Geider
cbb78c1e5c Merge remote-tracking branch 'origin/master' into powersync 2026-05-18 16:54:49 +02:00
Roland Geider
a9d4b29a89 Read the PS_DATABASE_URI variable, if set 2026-05-18 15:04:33 +02:00
Roland Geider
1664ed6196 Use correct date form for birthday 2026-05-18 12:12:06 +02:00
Roland Geider
b2637541ea Merge pull request #2343 from Ewin7/fix/off-product-name
Fix: Handle missing product_name in Open Food Facts import
2026-05-18 11:20:25 +02:00
Roland Geider
ebd1fe4e30 Small tweaks to the language detection logic, add simple tests 2026-05-18 11:15:26 +02:00
Roland Geider
ca460d15ae Merge pull request #2341 from wger-project/dependabot/uv/faker-40.18.0
Bump faker from 40.15.0 to 40.18.0
2026-05-18 11:05:24 +02:00
Roland Geider
af1aeee204 Move the email changing logic to allauth
This also takes care of having to deal with the data of two forms in the prefs

# Conflicts:
#	settings/settings_global.py

Fixes #2342
2026-05-18 10:58:45 +02:00
Ewin7
3a065088bd style: ruff formatting:
- ruff format && isort .
2026-05-17 17:01:54 +02:00
Ewin7
e0bda16a66 fix: relax product_name check for Open Food Facts import
- Removed 'product_name' from OFF_REQUIRED_TOP_LEVEL check.
- Added fallback logic to handle products that only provide localized product names (e.g., product_name_en, product_name_de).
- KeyError throw if no product name exists in any language.
2026-05-17 16:45:22 +02:00
dependabot[bot]
589867f66b Bump faker from 40.15.0 to 40.18.0
Bumps [faker](https://github.com/joke2k/faker) from 40.15.0 to 40.18.0.
- [Release notes](https://github.com/joke2k/faker/releases)
- [Changelog](https://github.com/joke2k/faker/blob/v40.18.0/CHANGELOG.md)
- [Commits](https://github.com/joke2k/faker/compare/v40.15.0...v40.18.0)

---
updated-dependencies:
- dependency-name: faker
  dependency-version: 40.18.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-14 23:24:44 +00:00
Roland Geider
f3c0932a95 Add tests and authorization checks for gym mass-email 2026-05-14 17:27:14 +02:00
Roland Geider
407a0aab0c Improve handling of emails in our auth backend 2026-05-14 16:55:23 +02:00
Roland Geider
8ca02c43c8 Add safe URL handling for license attribution links 2026-05-14 16:16:46 +02:00
Roland Geider
de2d6d7e6b Add validators for downloaded images and videos 2026-05-14 16:06:13 +02:00
Roland Geider
4e7c0c3446 Add sanity checks for ingredient sync 2026-05-14 15:46:17 +02:00
Roland Geider
81058b9443 Fix ingredient permission issue 2026-05-14 15:34:04 +02:00
Roland Geider
08277ea89a Simplify querystring creation on the exercise admin template 2026-05-14 14:57:30 +02:00
Roland Geider
42791ff9bd Update to django 6
We also needed to revert django-prometheus to 2.4.0 since 2.4.1 is not compatible with
django 6 anymore, and it seems there's some problems with the status of the package:
https://github.com/django-commons/django-prometheus/issues/494
2026-05-14 14:57:30 +02:00
Roland Geider
c5584805c5 Merge pull request #2283 from wger-project/dependabot/uv/invoke-3.0.3
Bump invoke from 2.2.1 to 3.0.3
2026-05-14 14:53:33 +02:00
dependabot[bot]
f455d08066 Bump invoke from 2.2.1 to 3.0.3
Bumps [invoke](https://github.com/pyinvoke/invoke) from 2.2.1 to 3.0.3.
- [Commits](https://github.com/pyinvoke/invoke/compare/2.2.1...3.0.3)

---
updated-dependencies:
- dependency-name: invoke
  dependency-version: 3.0.3
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-14 12:49:42 +00:00
Roland Geider
e6f69abb76 Merge pull request #2267 from wger-project/dependabot/npm_and_yarn/picomatch-4.0.4
Bump picomatch from 4.0.3 to 4.0.4
2026-05-14 14:49:24 +02:00
Roland Geider
530ca9c049 Fix test and linting 2026-05-13 21:21:16 +02:00
Roland Geider
c89e078628 Extract version from version.py for docker image tagging 2026-05-13 21:15:53 +02:00
Roland Geider
5e53249211 Merge remote-tracking branch 'origin/master' into powersync
# Conflicts:
#	CHANGELOG.md
#	uv.lock
#	wger/manager/models/log.py
#	wger/manager/models/session.py
2026-05-13 21:15:32 +02:00
Github-actions
d7596ac043 Automatic linting 2026-05-13 18:40:40 +00:00
Roland Geider
72dc042c32 Merge pull request #2339 from wger-project/feature/exercise-submission
Improvements to exercise submission api
2026-05-13 20:40:20 +02:00
Roland Geider
ed74adc0a6 Remove trailing space 2026-05-13 20:36:58 +02:00
Roland Geider
3c4dde0d1d Update CHANGELOG.md 2026-05-13 20:33:52 +02:00
Roland Geider
d96aa9efb6 Handle case where no language could be detected
Also, drop the from_all_languages(), we did some tests and this doesn't
change much
2026-05-13 20:28:25 +02:00
Github-actions
aed774647d Automatic linting 2026-05-13 17:51:48 +00:00
Roland Geider
2443d59d32 Better new lines 2026-05-13 19:51:23 +02:00
Roland Geider
f3cdf9f61d Fix links to readthedocs 2026-05-13 19:51:23 +02:00
Roland Geider
9a682b8881 Refactor contributor extraction logic
We can now also generate a rst file which we can use in the documentation repo
2026-05-13 19:51:23 +02:00
Roland Geider
25bf2156d3 Also omit the settings folder in the coverage report 2026-05-13 19:51:23 +02:00
E. Ta.
48954a1e29 Translated using Weblate (Arabic (Saudi Arabia))
Currently translated at 56.3% (340 of 603 strings)

Translation: wger Workout Manager/Web App
Translate-URL: https://hosted.weblate.org/projects/wger/web/ar_SA/
2026-05-13 13:14:17 +00:00
Roland Geider
019664e3b1 Translated using Weblate (German)
Currently translated at 90.0% (543 of 603 strings)

Translation: wger Workout Manager/Web App
Translate-URL: https://hosted.weblate.org/projects/wger/web/de/
2026-05-13 13:14:15 +00:00
Roland Geider
dc7ae81a39 Merge pull request #2337 from wger-project/dependabot/uv/requests-2.34.0
Bump requests from 2.33.1 to 2.34.0
2026-05-13 14:31:10 +02:00
dependabot[bot]
f0bc924e28 Bump requests from 2.33.1 to 2.34.0
Bumps [requests](https://github.com/psf/requests) from 2.33.1 to 2.34.0.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.33.1...v2.34.0)

---
updated-dependencies:
- dependency-name: requests
  dependency-version: 2.34.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-13 11:40:45 +00:00
Roland Geider
20c5e42509 Enable parallel test execution for coverage report 2026-05-13 13:38:58 +02:00
Roland Geider
38302c51e7 Merge pull request #2336 from wger-project/dependabot/uv/coverage-7.14.0
Bump coverage from 7.13.5 to 7.14.0
2026-05-13 13:33:06 +02:00
Roland Geider
ab9038cf81 Merge pull request #2335 from wger-project/dependabot/uv/urllib3-2.7.0
Bump urllib3 from 2.6.3 to 2.7.0
2026-05-13 13:16:22 +02:00
Roland Geider
caf312b07e Also handle deleted and merged exercises 2026-05-12 17:07:39 +02:00
Roland Geider
116a979368 Improve exercise history overview 2026-05-12 16:46:15 +02:00
Roland Geider
1a7bb4c7f3 Reverting history is only possible with a POST 2026-05-12 15:37:20 +02:00
Roland Geider
73df8abbcc Simplify and consolidate serializer behaviour
Now the correct language is checked when submitting exercises as well as when
editing existing ones, which is the intended behaviour anyway. Missing tests
have also been added.
2026-05-12 15:22:56 +02:00
Roland Geider
e8a4cb71dd Correctly generate activity stream entries when submitting exercises 2026-05-12 14:13:45 +02:00
Roland Geider
a914109745 Call the correct super()-method 2026-05-12 13:17:06 +02:00
Roland Geider
ff5974232e Allow filtering exercise edits 2026-05-12 12:59:23 +02:00
Roland Geider
3401ef0f27 Cleanup clear-cache command
This was basically doing nothing, but was suggesting otherwise. Now the only
option is to clear the complete cache.
2026-05-12 11:52:23 +02:00