We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
See "A motivating example" in issue #290.
It should be possible to make it so that none of the handlers in build.go reference a gorm DB directly, only through a buildRepo.
buildRepo
For example:
platform/handlers/api/build.go
Lines 128 to 144 in ffb20d4
Line 130 should be moved out to the main entry point, and b.ByID(c) should be broken up into
b.ByID(c)
BuildID
buildRepo.ByID(id)
This issue is fixed when handlers/api/build.go no longer refers to the db global variable.
handlers/api/build.go
db
The text was updated successfully, but these errors were encountered:
No branches or pull requests
See "A motivating example" in issue #290.
It should be possible to make it so that none of the handlers in build.go reference a gorm DB directly, only through a
buildRepo
.For example:
platform/handlers/api/build.go
Lines 128 to 144 in ffb20d4
Line 130 should be moved out to the main entry point, and
b.ByID(c)
should be broken up intoBuildID
for the request, andbuildRepo.ByID(id)
call which returns the build ID.This issue is fixed when
handlers/api/build.go
no longer refers to thedb
global variable.The text was updated successfully, but these errors were encountered: