Skip to content

Conversation

@FilipCuper
Copy link

@FilipCuper FilipCuper commented Oct 9, 2025

  • Migrated from /exercise/search/ to /exerciseinfo/ endpoint
  • Updated query parameters (term->name__search, language->language__code)
  • Added data transformation from exerciseinfo format to ExerciseSearchResponse
  • Added error handling for invalid responses"

- Migrated from /exercise/search/ to /exerciseinfo/ endpoint
- Updated query parameters (term->name__search, language->language__code)
- Added data transformation from exerciseinfo format to ExerciseSearchResponse
- Added error handling for invalid responses"
@rolandgeider
Copy link
Member

sorry, I meant we completely throw away ExerciseSearchResponse and just return regular exercise objects! then we don't have to keep two things around that basically do the same thing

FilipCuper and others added 5 commits October 10, 2025 11:01
- Removed ExerciseSearchResponse transformation layer
- Changed searchExerciseTranslations to return Exercise[] directly
- Updated NameAutocompleter to work with Exercise objects
- Updated ExerciseOverview callback to use Exercise.id
- Uses ExerciseAdapter for data transformation
- Updated searchResponse mock data to use Exercise objects
- Added Exercise import in NameAutocompleter.test.tsx
- Updated test assertions to use expect.any(Exercise)"
@coveralls
Copy link
Collaborator

Coverage Status

coverage: 75.155% (-0.03%) from 75.183%
when pulling 8d0a770 on FilipCuper:fix/exercise-search-endpoint-1127
into 01fc233 on wger-project:master.

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