Skip to content

Conversation

@rolandgeider
Copy link
Member

@rolandgeider rolandgeider commented Nov 21, 2024

Backend changes for the flexible routines

wger-project/react#975
wger-project/flutter#682

This is just a first version, will probably need to work a bit more on it
While this is not 100% correct, it is a clearer name
This can be used for example to label the different date ranges or weeks, or set
other info such as "deload", etc.
This has only the information the client needs to render the workout day
This field is now a charfield so that new options can be added
This allows us to know which entries were part of a dropset or similar
It makes no sense to require this if the weight and repetitions values
themselves are optional
Logs aren't used to compute the structure
This is mentioned in the docs and is not as important nowadays anyway
Otherwise, reloading would cause a 404
This is consistent with the other endpoints
This adds a minimum required server version, similar to the one used for
the mobile app. This allows to better handle API changes. We also now use
the packaging package to parse and compare versions, instead of using our
own code.
# Conflicts:
#	wger/exercises/tests/test_exercise.py
#	wger/exercises/tests/test_exercise_translation.py
#	wger/nutrition/management/commands/sync-ingredients.py
#	wger/settings_global.py
@rolandgeider rolandgeider merged commit 6ee5c19 into master Mar 20, 2025
13 of 16 checks passed
@rolandgeider rolandgeider deleted the feature/flexible-routines branch September 24, 2025 11:22
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.

Support lifting programs, especially those that don't fit within a week

3 participants