-
-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding exercises to sets seems to be broken on latest version when attributes are missing. #1269
Comments
Hi! Yes you are right. Did you add any exercise on your instance or just synced them? |
I do indeed have a couple exercises I added myself, so I suspect that those are indeed breaking things. |
That's probably it, it was previously not really clear what language an added exercise had. I'll remove the ENGLISH_SHORT_NAME parameter so that this doesn't crash |
mhhh, if english is not available it should return the first available translation. Can you run |
Yes running that command gives me the following output: manage.py exercises-health-check output
|
yeah, those without any translations are definitely the problem, the other ones shouldn't cause any problems. I'm not sure how they could have been created in the first place, perhaps we should add some checks that prevent the server from starting? In any case you can just delete those (and wait till the cache clears):
I also don't think this is the cause of your other issue, after all you get a name in the autocompleter (a "base" is just the base data for an exercise such as category, muscles, images, etc., the translations are only the language specific things such as name or description) |
Yeah at the moment I couldn't access the exercise list either in the workout selector because of the missing translations. But maybe a better way would be to just not show these exercises to the end user? And maybe give some feedback to the admin users by flagging them for missing fields? As for the origin, I think this might have happened because of a failed migration to the new format? |
did you manage to get this running again? |
This will be handled in #1319, closing here |
I actually just ran into this error using the docker-compose example. My linked issue is here: I'm on the latest wger build, |
Steps to Reproduce
Try to add an exercise to a set, it seems the exercise seems to be missing the ENGLISH_SHORT_NAME attribute, then it proceeds to crash and throws a 500 error. I already synced all exercises from upstream to make sure all attributes are there, but I think the attribute error should either be caught our fail more gracefully.
Expected results:
Be able to browse all exercises and select them.
Actual results:
Returned a 500 error.
Logs
The text was updated successfully, but these errors were encountered: