Skip to content

Version 2.5#2286

Merged
rolandgeider merged 57 commits intomasterfrom
feature/version-2.5
Apr 15, 2026
Merged

Version 2.5#2286
rolandgeider merged 57 commits intomasterfrom
feature/version-2.5

Conversation

@rolandgeider
Copy link
Copy Markdown
Member

@rolandgeider rolandgeider commented Apr 10, 2026

rolandgeider and others added 30 commits July 19, 2024 16:55
- Remove  dependency (deprecated).
- Add  and  dependencies.
- Add  field to ExerciseTranslation model.
- Update API serializers to handle markdown input.
- Create  for rendering and sanitization.
- Added `migrate_descriptions_to_markdown` command to convert legacy `description` (HTML) content to `description_source` (Markdown) using `markdownify`.
- Migrated to add the `description_source` field to `ExerciseTranslation` and `HistoricalTranslation`.
- Updated `ExerciseTranslation.save()` logic to handle both Markdown source input AND legacy raw HTML input, ensuring the strict `nh3` sanitization is applied in both cases to maintain data integrity.
- Adjusted test expectations (`test_command_migrate_descriptions`, `test_patch_clean_html`) to correctly reflect the strict CommonMark rendering (`<strong>`, `<em>`) and the secure content-stripping behavior of the `nh3` sanitizer.

Now the backend completely replaced `bleach` and adopted Markdown descriptions.
This make the migration happen automatically, and makes sure the exercises don't
end up in a half migrated step or so.
There is now only a single table (simplified) table, which makes it easier
to understand and doesn't require so many joins.
This will make it easier to sync and update them later
# Conflicts:
#	wger/nutrition/consts.py
For this, a new UUID field is added.
Previously these were failing on postgres, but passed on sqlite
This makes it now trivial to sync them to local instances
This was failing on some of the overviews that accessed the session, like
the ingredient one
# Conflicts:
#	CHANGELOG.md
#	wger/exercises/fixtures/exercise-base-data.json
@rolandgeider rolandgeider merged commit f270e57 into master Apr 15, 2026
8 checks passed
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.

3 participants