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

#164069235 User should be able to see the time it takes to read an article #23

Closed
wants to merge 1 commit into from

Conversation

Peace-Apple
Copy link
Contributor

What does this PR do?

This PR adds a feature that enables a user to see the time it takes to read an article.

How should this be manually tested?

  • Clone this repository
  • cd into the directory Ah-backend-aquaman
  • Checkout the branch ft-article-read-time-164069235
  • Create and activate your virtual environment
  • pip install -r requirements.txt
  • python manage.py makemmigrations
  • python manage.py migrate
  • Source your .env file
  • python manage.py runserver
  • Sign up, verify your email and login
  • Then navigate to the endpoint http://127.0.0.1:8000/api/articles/ and post an article
  • Thereafter using the same endpoint http://127.0.0.1:8000/api/articles/ get back the articles
  • You will be able to see the readtime associated with that article

What are the relevant pivotal tracker stories?

#164069235

Screenshots

After creating your account, verifying your account and logging in, copy the token and paste it into the token field

image

Then proceed to the articles endpoint and post an article

image

When you get back the articles, you are able to see the time it takes to read that article

image

BagzieGracious
BagzieGracious previously approved these changes Mar 14, 2019
Copy link
Contributor

@BagzieGracious BagzieGracious left a comment

Choose a reason for hiding this comment

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

Thank you for good work @Peace-Apple, i have tested your PR and it works.

… an article

- add readtime as a field in articles model
- include readtime in articles serializer class
- call method to calculate the read time of article as it is posted
- call method to calculate the read time of article updated

[Finishes #164069235]
@Peace-Apple Peace-Apple force-pushed the ft-article-read-time-164069235 branch from c0e39d2 to 3426c04 Compare March 14, 2019 14:53
@codeclimate
Copy link

codeclimate bot commented Mar 14, 2019

Code Climate has analyzed commit 3426c04 and detected 0 issues on this pull request.

View more on Code Climate.

@Peace-Apple Peace-Apple deleted the ft-article-read-time-164069235 branch March 14, 2019 16:58
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.

2 participants