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

Check and Throw error when ID is Non-existent, when method is update … #135

Merged
merged 5 commits into from
Feb 16, 2024

Conversation

TraciebelWairimu
Copy link
Contributor

…and Test cases for the same

IMPORTANT: Where possible all PRs must be linked to a Github issue

Fixes #130

Engineer Checklist

  • I have run ./gradlew spotlessApply to check my code follows the project's style guide
  • I have built and run the efsity jar to verify my change fixes the issue and/or does not break the application

importer/main.py Outdated
Comment on lines 495 to 498
if response[1] == 200:
return True
else:
return False
Copy link
Member

Choose a reason for hiding this comment

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

you can simplify this to use a single return statement

@Wambere Wambere force-pushed the 130-Throw-Error-NonExisting-ID branch from 74970f9 to 0bffa2b Compare February 15, 2024 17:19
@Wambere Wambere changed the title Check and Throw error when ID is Non-existent, when method is update … DNM: Check and Throw error when ID is Non-existent, when method is update … Feb 15, 2024
@Wambere
Copy link
Contributor

Wambere commented Feb 15, 2024

Added a DNM until we get the tests working

@Wambere Wambere requested a review from pld February 15, 2024 20:01
@Wambere Wambere changed the title DNM: Check and Throw error when ID is Non-existent, when method is update … Check and Throw error when ID is Non-existent, when method is update … Feb 15, 2024
Copy link
Member

@pld pld left a comment

Choose a reason for hiding this comment

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

lgtm!

@Wambere Wambere merged commit 721d7fe into main Feb 16, 2024
4 checks passed
@Wambere Wambere deleted the 130-Throw-Error-NonExisting-ID branch February 16, 2024 05:14
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.

Throw error when updating a non-existing id
3 participants