Skip to content

feat: implement weight progression based on RiR baseline (#2041)#2312

Open
pankaj-basnet wants to merge 7 commits into
wger-project:masterfrom
pankaj-basnet:feat/rir-progression-config--wger-2041
Open

feat: implement weight progression based on RiR baseline (#2041)#2312
pankaj-basnet wants to merge 7 commits into
wger-project:masterfrom
pankaj-basnet:feat/rir-progression-config--wger-2041

Conversation

@pankaj-basnet

Copy link
Copy Markdown
Contributor

Overview

This PR implements a new progression logic that allows users to calculate workout weights as a percentage of a "RiR=0" baseline.

Proposed Changes

  • Abstract Config: Added RIR_PERCENT to StepChoices and defined MAX_COMPOUND_RIR.
  • Weight Models: Added rir_baseline field to WeightConfig and MaxWeightConfig.
  • Logic: Updated SlotEntry.get_rir_baseline to auto-detect the baseline from previous logs if not manually set.
  • API: Updated WeightConfigSerializer to expose the new field.

  • modified: wger/manager/models/abstract_config.py
  • modified: wger/manager/models/weight_config.py
  • modified: wger/manager/api/serializers.py
  • modified: wger/manager/models/slot_entry.py
  • added: wger/manager/migrations/0024_weight_config_rir_baseline.py

Related Issue(s)

Please check that the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Code has been formatted to avoid unnecessary diffs (ruff format && isort .)
  • If the feature is big enough or if there are manual steps needed (deployment
    changes etc.), write a small writeup in CHANGELOG.md

…p--opensource-backend

get latest commits code changes from wger offical repo upstream
…t weight progression

- **Abstract Config**: Added RIR_PERCENT to StepChoices.
- **Weight Models**: Added rir_baseline field to WeightConfig and MaxWeightConfig.
    modified:   wger/manager/models/abstract_config.py
    modified:   wger/manager/models/weight_config.py
…ry.py

modified:   wger/manager/models/slot_entry.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.

Add Progression Calculation Based on RIR Value

1 participant