Roland Geider
898443af17
Merge pull request #2370 from wger-project/dependabot/uv/tqdm-4.68.1
...
Bump tqdm from 4.67.3 to 4.68.1
2026-06-14 13:37:50 +02:00
Github-actions
a5874e8fee
Automatic linting
2026-06-14 11:20:39 +00:00
Roland Geider
0ff2e5d9ea
Add throttling for exercise creation
2026-06-14 12:44:14 +02:00
Roland Geider
6ffb22768b
Put the validator in the correct field
...
"description" is simply the rendered HTML from "description_source"
2026-06-13 15:24:26 +02:00
dependabot[bot]
112d3b3b00
Bump tqdm from 4.67.3 to 4.68.1
...
Bumps [tqdm](https://github.com/tqdm/tqdm ) from 4.67.3 to 4.68.1.
- [Release notes](https://github.com/tqdm/tqdm/releases )
- [Commits](https://github.com/tqdm/tqdm/compare/v4.67.3...v4.68.1 )
---
updated-dependencies:
- dependency-name: tqdm
dependency-version: 4.68.1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-06-05 23:23:09 +00:00
Roland Geider
46fe0696d0
Better classify and handle retriable vs non-retriable errors
2026-06-05 12:22:38 +02:00
Roland Geider
61223427a7
Add task to flush expired long-lived sessions
2026-06-04 14:05:45 +02:00
Roland Geider
6a5ab0696b
Generate and work with keys with pyjwt, python_jose is not needed anymore
2026-06-04 13:52:31 +02:00
Roland Geider
7dc728da81
Consistently use the correct uuid version
...
Even if the backfill would use the right one, but this is cleaner
2026-06-04 13:23:59 +02:00
Roland Geider
ea7844731f
Merge pull request #2367 from wger-project/dependabot/uv/django-redis-7.0.0
...
Bump django-redis from 6.0.0 to 7.0.0
2026-06-04 10:24:20 +02:00
Roland Geider
f36704da97
Small improvement to deletion log handling
...
When an exercise was replaced by another upstream, the sync would correctly update
existing routines and logs, but would not update the cache, causing the structure
data to point at stale exercise data.
Closes https://github.com/wger-project/react/issues/1253
2026-06-03 20:30:20 +02:00
dependabot[bot]
d5a316eb69
Bump django-redis from 6.0.0 to 7.0.0
...
Bumps [django-redis](https://github.com/jazzband/django-redis ) from 6.0.0 to 7.0.0.
- [Release notes](https://github.com/jazzband/django-redis/releases )
- [Changelog](https://github.com/jazzband/django-redis/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/jazzband/django-redis/compare/6.0.0...7.0.0 )
---
updated-dependencies:
- dependency-name: django-redis
dependency-version: 7.0.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-06-03 16:16:28 +00:00
Roland Geider
5af53b39f7
Better handling of no-op operations
...
Powersync may send a delete or put request several times because of retries,
checkpoint replays etc, so the backend must be able to handle this
2026-06-03 12:36:33 +02:00
Roland Geider
ce35914825
Cleanup
2026-06-03 12:16:11 +02:00
Roland Geider
6ec2fefb4a
Add helper to backfill UUID columns
...
This writes the new values in chunks instead of having to touch every row
2026-06-03 12:15:57 +02:00
Roland Geider
e169f1f23b
Data hygiene for user profile API
2026-06-03 11:45:01 +02:00
Roland Geider
2ee51f1dbb
Make the extract extract_info_from_wger_api more robust
...
The API returns nested objects, while the bulk dump doesn't, this commit
makes sure the logic can work with both. Ideally we would probably want
to commit to one format for both but for now that's not necessary.
2026-06-02 20:41:43 +02:00
Roland Geider
caf2fd8315
Remove debug output
2026-06-02 20:05:50 +02:00
Roland Geider
6a12c12b1b
Use TestCase for the login-view test
...
We were firing DB queries, which was making the test flaky
2026-06-02 19:58:22 +02:00
Github-actions
6fd8e29a5d
Automatic linting
2026-06-02 17:31:52 +00:00
Roland Geider
ac570fda97
Fix ingredient sync
...
The API returns the sub-objects as well
2026-06-02 19:31:19 +02:00
Roland Geider
dd225d82d2
Update exercise fixtures
...
The license author is now non-nullable
2026-06-02 19:25:35 +02:00
Roland Geider
77291bdb64
Add ingredient shadow table for ingredients
...
Using the full ingredient table for powersync created a spike during the
first sync, e.g. the WAL was bloating up to 25GB before returning to a normal
size. While this is temporary it would place too big of hard disk requirements
for self hoster for basically no gains.
2026-06-02 19:21:27 +02:00
Roland Geider
f0fd2fb9b9
Merge pull request #2363 from wger-project/dependabot/uv/openfoodfacts-5.1.0
...
Bump openfoodfacts from 5.0.1 to 5.1.0
2026-06-02 15:11:35 +02:00
dependabot[bot]
55e2c0e451
Bump openfoodfacts from 5.0.1 to 5.1.0
...
Bumps [openfoodfacts](https://github.com/openfoodfacts/openfoodfacts-python ) from 5.0.1 to 5.1.0.
- [Release notes](https://github.com/openfoodfacts/openfoodfacts-python/releases )
- [Changelog](https://github.com/openfoodfacts/openfoodfacts-python/blob/develop/CHANGELOG.md )
- [Commits](https://github.com/openfoodfacts/openfoodfacts-python/compare/v5.0.1...v5.1.0 )
---
updated-dependencies:
- dependency-name: openfoodfacts
dependency-version: 5.1.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-05-30 00:38:12 +00:00
pankaj-basnet
d71b0428fa
add unit tests, and add fuzzy/structural name duplicate detection for sqlite as well
...
- Implements cross-database (Postgres/SQLite) duplicate checking for exercise names.
- Uses pg_trgm for Postgres and difflib.SequenceMatcher for fallback.
- Added validation tests for POST and PATCH scenarios including self-edit exclusion.
2026-05-29 10:56:56 +05:45
pankaj-basnet
6b9caa8bd6
feat(api): add similar/duplicate exercise name validation
...
Resolves #2357 .
Implemented duplicate detection in the serialization layer to prevent variations like 'pull ups' and 'pull-ups' from cluttering the database.
- Uses regex normalization to catch exact structural variants.
- Uses PostgreSQL TrigramSimilarity for fuzzy semantic matching.
- Added logic to ensure users can still safely edit existing exercises without triggering false-positive validation errors against themselves.
2026-05-28 01:08:57 +05:45
Roland Geider
28118d2486
Fix test_search_new_code mock returning MagicMock instead of None
2026-05-27 17:02:45 +02:00
Roland Geider
01bff13c51
Restore missing import
2026-05-27 17:02:14 +02:00
Roland Geider
fffd922b96
Fix test_search_new_code mock returning MagicMock instead of None
2026-05-27 17:01:58 +02:00
Roland Geider
85118d215c
Fix linting errors
2026-05-27 16:57:14 +02:00
Roland Geider
08be32c661
Some more tweaking to make the changelog clearer
...
(specially with the upgrade steps)
2026-05-27 16:34:03 +02:00
Roland Geider
3cd525392e
Merge feature/more-allauth into feature/version-2.6
...
# Conflicts:
# CHANGELOG.md
# pyproject.toml
# uv.lock
# wger/core/api/serializers.py
# wger/core/forms.py
# wger/core/tests/test_user_login.py
# wger/core/views/user.py
2026-05-27 16:30:16 +02:00
Roland Geider
8ff749d9d5
Merge powersync into feature/version-2.6
...
# Conflicts:
# CHANGELOG.md
2026-05-27 16:23:36 +02:00
Roland Geider
8739f1ec87
Merge fix/ingredient-thumbnails into feature/version-2.6
2026-05-27 16:22:41 +02:00
Roland Geider
82e6753ca1
Update CHANGELOG.md
2026-05-27 15:30:12 +02:00
Roland Geider
9fe528d8c1
Merge pull request #2356 from anjakDev/fix/unknown-language-code-bug
...
fix: unknown language code is ignored instead of defaulted to english
2026-05-26 14:09:53 +02:00
Roland Geider
612321226e
Merge pull request #2351 from Ewin7/fix/barcode-search
...
feat: trigger Open Food Facts lookup on manual barcode text search
2026-05-26 14:07:23 +02:00
Roland Geider
4078b96658
Merge pull request #2355 from anjakDev/fix/barcode-fetch-result-never-returned
...
fix: barcode fetch result was never returned
2026-05-26 13:02:52 +02:00
Roland Geider
8ac9e9dc4b
Merge pull request #2354 from Marcelluxx/fix/docker-doc-link-2353
...
docs: fix broken Docker documentation link in README.md (#2353 )
2026-05-26 12:55:33 +02:00
Roland Geider
e50551a417
Use correct serializer for nutritional values
2026-05-26 12:16:43 +02:00
Roland Geider
45a02e4929
Add endpoint to issue refresh tokens over the API
2026-05-26 12:15:40 +02:00
Anja Klipic
d15a5a646c
fix: unknown language code is ignored instead of defaulted to english
2026-05-25 21:44:19 +02:00
Roland Geider
52a53d42a3
Consolidate all django-allauth's URLs
2026-05-25 19:27:44 +02:00
Anja Klipic
8483c7c566
fix: barcode fetch result was never returned
2026-05-25 16:29:08 +02:00
Marcello Mendo
c37745bd3c
docs: fix broken Docker documentation link in README.md ( #2353 )
2026-05-24 21:45:16 +02:00
Roland Geider
5c2707b000
Remove the /api/v2/register/ endpoint as well
2026-05-24 19:31:56 +02:00
Roland Geider
ad784d0298
Commit missing file
2026-05-24 19:07:13 +02:00
Dario Coltri
a6cddb94d4
Translated using Weblate (Italian)
...
Currently translated at 100.0% (603 of 603 strings)
Translation: wger Workout Manager/Web App
Translate-URL: https://hosted.weblate.org/projects/wger/web/it/
2026-05-24 00:11:34 +02:00
Ewin7
f6b2bdb528
test: mock search_barcode in search API tests
...
- Mock the search_barcode function instead of fetch_ingredient_from_off.
- Assert barcode search is called with expected arguments
- Added a test ensuring a barcode match is returned directly
2026-05-23 14:34:09 +02:00