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

database: move db logic to dbutil #724

Merged
merged 1 commit into from
Mar 6, 2019
Merged

Conversation

KeyboardNerd
Copy link
Contributor

incremental clean up

@KeyboardNerd KeyboardNerd requested a review from jzelinskie March 4, 2019 23:55
@KeyboardNerd KeyboardNerd changed the title database: Move MarkNotificationAsRead logic to dbutil database: move db logic in rpc to dbutil Mar 5, 2019
@KeyboardNerd KeyboardNerd changed the title database: move db logic in rpc to dbutil database: move db logic to dbutil Mar 5, 2019
api/v3/util.go Outdated
for _, feature := range affectedFeatures {
// TODO(sidac): This is wrong. Based on this usage, we should not
// return nullable feature at all.
Copy link
Contributor

Choose a reason for hiding this comment

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

Change it to panic then?


defer tx.Rollback()
noti, found, err = tx.FindVulnerabilityNotification(name, limit, oldVulnerabilityPage, newVulnerabilityPage)
return
Copy link
Contributor

Choose a reason for hiding this comment

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

return tx.FindVulnerabilityNotification(name, limit, oldVulnerabilityPage, newVulnerabilityPage)

@jzelinskie jzelinskie added kind/cleanup no functional changes, only reorganization component/database labels Mar 6, 2019
Move all transaction related logic to dbutil to simplify and later unify
the db interface.
@KeyboardNerd KeyboardNerd merged commit b3fe95e into quay:master Mar 6, 2019
@KeyboardNerd KeyboardNerd deleted the ref branch March 6, 2019 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup no functional changes, only reorganization
Development

Successfully merging this pull request may close these issues.

2 participants