Skip to content

Add is_developer_reply property to ratings API responses#9099

Merged
diox merged 2 commits into
mozilla:masterfrom
diox:is-developer-reply-rating-property
Aug 8, 2018
Merged

Add is_developer_reply property to ratings API responses#9099
diox merged 2 commits into
mozilla:masterfrom
diox:is-developer-reply-rating-property

Conversation

@diox

@diox diox commented Aug 7, 2018

Copy link
Copy Markdown
Member

@diox
diox requested a review from eviljeff August 7, 2018 16:15
Comment thread docs/topics/api/overview.rst Outdated
https://github.com/mozilla/addons-server/issues/8794
* 2018-07-18: added ``previews`` property to discovery API ``addons`` object. This change was also backported to the `v3` API. https://github.com/mozilla/addons-server/issues/8863
* 2018-07-20: dropped ``downloads`` property from the collection add-ons results. https://github.com/mozilla/addons-server/issues/8944
* 2018-08-09: added ``is_developer_reply`` property to ratings. This changed was also backported to the `v3` API. https://github.com/mozilla/addons-server/issues/8993

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will update as it won't make the tag.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sooner we get #8899 done the sooner we can stop this risky modification of the "frozen" v3 API 😿

Comment thread docs/topics/api/overview.rst Outdated
https://github.com/mozilla/addons-server/issues/8794
* 2018-07-18: added ``previews`` property to discovery API ``addons`` object. This change was also backported to the `v3` API. https://github.com/mozilla/addons-server/issues/8863
* 2018-07-20: dropped ``downloads`` property from the collection add-ons results. https://github.com/mozilla/addons-server/issues/8944
* 2018-08-09: added ``is_developer_reply`` property to ratings. This changed was also backported to the `v3` API. https://github.com/mozilla/addons-server/issues/8993

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sooner we get #8899 done the sooner we can stop this risky modification of the "frozen" v3 API 😿

'slug': addon.slug
}

def get_is_developer_reply(self, obj):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

observation: a property that could be on the Rating model itself. Not that it'd give us anything extra, really.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I've looked through the code and we wouldn't really make use of that property anywhere. Generally we care more about the fact that a rating has a reply than the fact that it is a reply.

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.

Expose a new attribute is_developer_reply in Rating API results

2 participants