Skip to content
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

#163474852 bg make get article return average rating #43

Merged
merged 1 commit into from
Jan 25, 2019

Conversation

SokoPaulSokool
Copy link
Contributor

@SokoPaulSokool SokoPaulSokool commented Jan 25, 2019

What does this PR do?

It ensures that the return article endpoint returns the average rating of the article

Description of Task to be completed?

When fetching the article it has to return the average rating of the article.

How to test

Create an article with this endpoint /api/articles

Get a single article on this endpoint /api/articles/slug

check if the avg-rating is returned

Screen shots

Before

image

After

image

- add avg_rating to the CreateArticleViewSerializer

[Deliver #163474852]
@bibangamba bibangamba requested a deployment to ah-backend-athena-stagin-pr-43 January 25, 2019 06:37 Abandoned
@JaymesKat
Copy link

@SokoPaulSokool Please add a screenshot of the data returned from the endpoint.

@SokoPaulSokool
Copy link
Contributor Author

Done

@JaymesKat JaymesKat merged commit 744d076 into develop Jan 25, 2019
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.

None yet

4 participants