Expose a new attribute is_developer_reply in Rating API results (original) (raw)

See: #12097


When fetching the ratings of a given user, we receive both the ratings and replies to the reviews left by this user/developer. We have no way to determine if a given review is a review or a reply, because we don't receive the full addon object along with the review.

We talked about this on IRC with @eviljeff and @diox: it should be possible to add a is_developer_reply boolean attribute to the rating object (by checking if a FK is present but without loading it for better performances).