Skip to content

Release 2.7 - #2483

Open
rolandgeider wants to merge 172 commits into
masterfrom
feature/release-2.7
Open

Release 2.7#2483
rolandgeider wants to merge 172 commits into
masterfrom
feature/release-2.7

Conversation

@rolandgeider

Copy link
Copy Markdown
Member

dylans-dev and others added 30 commits May 11, 2026 17:00
This can happen if e.g. the user deleted their user and is still logged in
on the app
…h-sync)(wger#2328)

Changes:
* Schema: Added 'is_official' flag and UniqueConstraint to measurements.Category.
* Migrations: Created schema migration (0007) and data backfill migration (0008).
* API (Serializer/Views): Re-pointed WeightEntry endpoint to read/write from Measurement models using the official 'body_weight' category.
* API (Filters): Updated WeightEntryFilterSet to map legacy 'weight' params to the new 'value' column.
* Legacy: Marked WeightEntry model as deprecated.
- Replaced date, time_start, and time_end fields with datetime_start and datetime_end
- Updated logging logic to map workouts crossing midnight correctly
- Adjusted statistics and trophies calculations to use local timezones
- Added data migration to preserve legacy workout dates
- Fixed test suites to support multi-day sessions
This is not needed, as externally synced entries can be found through other
fields, such as the external_id
Measurement categories can optionally point to another category, In practice, this
will just be something like blood pressure since these values only make sense in a
pair. Others can be interesting while combined (heart rate and steps), but are valid
on their own.
# Conflicts:
#	wger/utils/viewsets.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants