Skip to content

Conversation

arthurarty
Copy link
Owner

What does this PR do?

This PR creates an endpoint that deletes a question from the database.

Description of Task to be completed?

This endpoint will delete an existing question from the database. Only the user who created a question can delete the question.

What are the relevant pivotal tracker stories?

159991729

Screenshots (if appropriate)

image
This screenshot shows an authenticated user deleting one of his questions.
image
This screenshot shows an authenticated user trying to delete a question he did not create.

ARTY-PC\Arty added 2 commits August 28, 2018 15:24
Changes to be committed:
	modified:   tests/test_login.py
Changes to be committed:
	modified:   app/__init__.py
	modified:   app/database.py
	modified:   app/models/question.py
	modified:   tests/test_login.py
@coveralls
Copy link

Pull Request Test Coverage Report for Build 18

  • 23 of 23 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 16: 0.0%
Covered Lines: 52
Relevant Lines: 52

💛 - Coveralls

@arthurarty arthurarty merged commit 6ac532a into develop Aug 28, 2018
@arthurarty arthurarty deleted the delete-question branch August 30, 2018 11:53
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