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

[ITG-64,ITG-41,ITG-42] Routing and GET task implementation #6

Merged

Conversation

tgargula
Copy link
Contributor

@tgargula tgargula commented Apr 3, 2022

Details

  • implement GET /tasks/task_id endpoint
  • add react-router-dom
  • implement routing
  • redirect after clicking task details

Links

@tgargula tgargula self-assigned this Apr 3, 2022
Comment on lines +27 to +32
@blueprint.response(200, TaskSchema)
def get(self, task_id):
try:
return Task.query.get(task_id) or abort(404)
except DataError:
abort(404)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

  1. if a correct UUID is passed -> returns a result if it exists. If not, responds with 404 (line 30)
  2. if an incorrect UUID is passed -> DataError is caught and also responds with 404 (line 32)

@bkulawska please, test if your implementation of DELETE works. I got some errors in an abort function when I tried to pass message kwarg as you did.

… github.com:it-goats/it-goats into feature/ITG-64-przekierowanie-do-szczegolow-zadania
cabra/src/pages/Home.tsx Outdated Show resolved Hide resolved
cabra/src/pages/TaskDetails.tsx Outdated Show resolved Hide resolved
@tgargula tgargula requested a review from john-sonz April 4, 2022 19:46
Copy link
Collaborator

@john-sonz john-sonz left a comment

Choose a reason for hiding this comment

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

:shipit: :shipit: :shipit: :shipit: :shipit:

@tgargula tgargula merged commit 9260550 into develop Apr 4, 2022
@tgargula tgargula deleted the feature/ITG-64-przekierowanie-do-szczegolow-zadania branch April 4, 2022 21:13
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

2 participants