Stop exposing license text in versions API (original) (raw)
The versions list API exposes the license text for each version returned, which is wasteful. We should only return it for the version detail endpoint. This would speed up the add-on versions page endpoint as mentioned in #14131.
For backwards-compatibility we should only do this in v5, at least for now. Ideally we should also defer the field in the ORM to avoid even fetching the text from the database.