-
Notifications
You must be signed in to change notification settings - Fork 42
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
Implement the Delete handler for the datasource service #5062
Conversation
Signed-off-by: Radoslav Dimitrov <[email protected]>
5a9abd0
to
8e83409
Compare
defer func(stx serviceTX) { | ||
err := stx.Rollback() | ||
if err != nil { | ||
fmt.Printf("failed to rollback transaction: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's not use fmt.Printf
, you can build a zerologger from the context.Context
instance.
... Aaaaaand I just realized I missed this in another review. @teodor-yanev can you submit a fix for the Create
function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, hahaha, copy pasta! I can fix both here, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM, let's add some tests.
Signed-off-by: Radoslav Dimitrov <[email protected]>
Great, I was in the process of writing the tests but opened the PR first to get the feedback, thanks! 👍 |
Signed-off-by: Radoslav Dimitrov <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing the logging in Create as well
Summary
The following PR implements the delete handler for the datasource service.
Fixes: #5045
Change Type
Mark the type of change your PR introduces:
Testing
Outline how the changes were tested, including steps to reproduce and any relevant configurations.
Attach screenshots if helpful.
Review Checklist: