2.0

wger-project/wger2.0May 1, 2021by rolandgeider

AI Summary

Major release introducing nutrition diary, reps-in-reserve support, and Open Food Facts integration with ~70,000 new ingredients. Significant UX improvements and breaking changes to command naming.

Key Highlights

  • Nutrition diary for daily calorie tracking
  • Reps-in-reserve (RiR) support in workouts
  • ~70,000 new ingredients via Open Food Facts
  • Exercise grouping for translations and variations
  • BMI display on weight graph
  • kJoules alongside kcal in nutritional plans
  • Breaking change: subcommand naming changed (dashes instead of underscores)

Breaking Changes

  • Subcommands for wger now use dashes in their names (i.e. create-settings instead of create_settings)

New Features

  • Add nutrition diary to log the daily calories
  • Support for reps-in-reserve (RiR) in workout plans and logs
  • Improved user experience, on desktop and mobile
  • Around 70000 new ingredients with Open Food Facts import
  • Group common exercise information such as muscles
  • Group similar exercises such as wide grip, reverse, etc.
  • Improved info endpoints for exercises and ingredients
  • Show BMI on weight graph
  • Allow user to edit and delete body weight entries
  • Show kJoules as well as kcal in nutritional plan
  • Check name similarity when adding exercises
  • Return the muscle background images in the REST API

Full Release Notes

## Upgrade steps from 1.9:

* Update python libraries pip3 install -r requirements.txt
* Install yarn and sass (e.g. sudo npm install -g yarn sass)
* Update CSS and JS libraries yarn install
* Compile the CSS yarn build:css:sass
* Run migrations python3 manage.py migrate
* Update data python3 manage.py loaddata licenses.json languages.json language_config.json
* Load new ingredients (note that this will overwrite any ingredients that you might have added) wger load-online-fixtures
* Update static files (only production): python3 manage.py collectstatic
* Subcommands for wger now use dashes in their names (i.e. create-settings instead of create_settings)


## 🚀 Features:

* Add nutrition diary to log the daily calories actually taken #284, #501 and #506 (thanks @WalkingPizza and @oconnelc)
* Support for reps-in-reserve (RiR) in workout plans and logs #479 (thanks @SkyNetIndustry)
* Improved user experience, on desktop and mobile #337
* Around 70000 new ingredients with Open Food Facts import with more to come #422 (thanks @harlenesamra, @nikithamurikinati and @jcho1)
* Group common exercise information such as muscles, etc. for more easy translations, data management, etc. #448 (thanks @nikithamurikinati, @harlenesamra, @jcho17, @vaheeshta and @jeevikaghosh)
* Group similar exercises such as wide grip, reverse, etc. #555 (thanks @ryowright)
* Improved info endpoints for exercises and ingredients, this saves additional API calls #411
* Show BMI on weight graph #462 (thanks @Svn-Sp)
* Allow user to edit and delete body weight entries #478 (thanks @beingbiplov)
* Show kJoules as well as kcal in nutritional plan #568 (thanks @nopinter and @derekli17)
* Check name similarity when adding exercises to avoid duplicates #551 (thanks @lydiaxing, @eq8913, @Hita-K)
* Return the muscle background images in the REST API #547 (thanks @gengkev)

## 🐛 Bug Fixes:

#368, #379, #426 (thanks @austin-leung), #499, #505, #504, #511, #516, #522, #554 and #560 (thanks @sandilsranasinghe), #564, #565, #615, #560 (thanks @bradsk88), #617 (thanks @Sidrah-Madiha), #636, #640, #642, #648, #650

## 🧰 Maintenance:

* Moved translations to weblate #266
* Improved docker and docker-compose images #340
* Updated many libraries to last version (bootstrap, font awesome, etc.)
* Use yarn to download CSS/JS libraries
* Improvements to documentation (e.g. #494)
* Improved cache handling #246 (thanks @louiCoder)
* Others: #450 (thanks @Rkamath2), #631 (thanks @harlenesamra), #664 (thanks @calvinrw),