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

#164069240 view edit history of comment #42

Merged
merged 1 commit into from
Mar 21, 2019

Conversation

wasibani-roy
Copy link
Contributor

@wasibani-roy wasibani-roy commented Mar 21, 2019

What does this PR do?
This PR enables a user of a comment view edits made to a comment on a given article

Description of Task to be completed?
Ensure authenticated user can view edit history of there comment

How should this be manually tested?

  • Clone the repo and cd into Ah-backend-aquaman

  • git checkout ft-track-comment-history-164069240

  • pip install -r requirements.txt

  • python manage.py makemigrations

  • python manage.py migrate

  • python manage.py runserver

  • Register and then login into the system

  • The below endpoint will be used to view your edit history

      GET http://127.0.0.1:8000/api/articleslug/comments/commentID/history
    

Any background context you want to provide?
N/A

What are the relevant pivotal tracker stories?
#164069240

Screenshot

Retrieve edit history
Screenshot 2019-03-21 at 16 39 07

self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
self.assertIn("Not found", response.data["detail"])

# def test_update_a_comment_not_yours(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey @wasibani-roy, I realize you have commented code,you could consider refactoring.

@wasibani-roy wasibani-roy force-pushed the ft-track-comment-history-164069240 branch from b17a6d1 to 41e6bbe Compare March 21, 2019 12:50
BagzieGracious
BagzieGracious previously approved these changes Mar 21, 2019
CryceTruly
CryceTruly previously approved these changes Mar 21, 2019
- Ensure that authenticated users can view edit history of their comments

[Starts #164069240]
@wasibani-roy wasibani-roy force-pushed the ft-track-comment-history-164069240 branch from 41e6bbe to cf655fe Compare March 21, 2019 13:44
@codeclimate
Copy link

codeclimate bot commented Mar 21, 2019

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

View more on Code Climate.

@marthamareal marthamareal merged commit 4cc71b1 into develop Mar 21, 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

6 participants