Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#12886·habitica

empty Challenge Summary field is not replaced by Title in all API routes

Author: AlysCreated Dec 15, 2020Updated Jun 23, 2026
Labelssection: Challengespriority: mediumtype: medium level coding

First some background information:

Challenges have a summary field but it's not mandatory. That's because if we'd made it mandatory when we added it to the challenge model, that would have been a breaking change for the API. If you view a Challenge that does not have a summary in the Challenge's own page, then you see the Challenge's title in the place where the summary would go (but if you look at the raw data in the database, you see that the summary is empty). For example, this challenge has no summary: https://habitica.com/challenges/930711e5-5958-4789-8758-c4aff17e8c51

All that is working as required.

However when you fetch Challenges using the api/v3/challenges/user route, empty summary fields are not populated with the Challenges' titles.

Similarly, when you view Challenges in the sidebar of a Guild, empty summary fields are not populated with the Challenges' titles. See the screeshot below for an example from the Duolinguists of Habitica Guild (the third Challenge has no summary).

image

I'm marking this as suggestion-discussion for the staff to make a decision about whether the summary fields should be auto-populated in those two cases.

Thanks to cTheDragons for reporting this.

Source: HabitRPG/habitica

View original on GitHubView discussion on GitHub