From 745c6d2debec1f9a7294bb1cc6b7baca392a7b6a Mon Sep 17 00:00:00 2001 From: Manfred Touron <94029+moul@users.noreply.github.com> Date: Wed, 29 Apr 2020 00:58:29 +0200 Subject: [PATCH] feat: new build filters --- .gitignore | 1 + api/yolopb.proto | 12 + deployments/yolo.berty.io/docker-compose.yml | 2 +- gen.sum | 2 +- go.mod | 1 + go.sum | 2 + pkg/yolopb/yolopb.pb.go | 504 +++++++++++++------ pkg/yolosvc/api_buildlist.go | 39 +- pkg/yolosvc/db.go | 4 +- 9 files changed, 407 insertions(+), 160 deletions(-) diff --git a/.gitignore b/.gitignore index a4070abe..36245db4 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ vendor/ coverage.txt packrd/ *-packr.go +*.tmp # Junk files *~ diff --git a/api/yolopb.proto b/api/yolopb.proto index 82903bb2..ab90c9d6 100644 --- a/api/yolopb.proto +++ b/api/yolopb.proto @@ -66,6 +66,18 @@ message BuildList { // filter builds without any artifacts bool with_artifacts = 3; + + // only a specific build by its ID or yolo_id + repeated string build_id = 4 [(gogoproto.customname) = "BuildID"]; + + // builds of a specific project by its ID or yolo_id + repeated string project_id = 5 [(gogoproto.customname) = "ProjectID"]; + + // filter on builds that contain at least on of these artifacts + repeated string artifact_id = 6 [(gogoproto.customname) = "ArtifactID"]; + + // filter by build driver (GitHub, CircleCI, ...) + Driver build_driver = 7; } message Response { repeated Build builds = 1; diff --git a/deployments/yolo.berty.io/docker-compose.yml b/deployments/yolo.berty.io/docker-compose.yml index f5e7eed7..257c49ed 100644 --- a/deployments/yolo.berty.io/docker-compose.yml +++ b/deployments/yolo.berty.io/docker-compose.yml @@ -1,4 +1,4 @@ -'3.7' +version: '3.7' services: yolo: diff --git a/gen.sum b/gen.sum index 58267e2a..66af9932 100644 --- a/gen.sum +++ b/gen.sum @@ -1,2 +1,2 @@ -2d4f1e50102f4fb7abee09ef9fe99db71b42ce5b ./api/yolopb.proto +03358e35f45045264eb68d4e7a030bb6abafe6f8 ./api/yolopb.proto 5f89db7501ad372ae483dc81772e1f15f38e0dbe Makefile diff --git a/go.mod b/go.mod index 2f5c92c7..7d2a0af7 100644 --- a/go.mod +++ b/go.mod @@ -18,6 +18,7 @@ require ( github.com/jinzhu/gorm v1.9.12 github.com/jszwedko/go-circleci v0.3.0 github.com/karrick/godirwalk v1.15.6 // indirect + github.com/mr-tron/base58 v1.1.3 github.com/oklog/run v1.1.0 github.com/patrickmn/go-cache v2.1.0+incompatible github.com/peterbourgon/ff/v2 v2.0.0 diff --git a/go.sum b/go.sum index a74407d4..19f6a709 100644 --- a/go.sum +++ b/go.sum @@ -240,6 +240,8 @@ github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/mr-tron/base58 v1.1.3 h1:v+sk57XuaCKGXpWtVBX8YJzO7hMGx4Aajh4TQbdEFdc= +github.com/mr-tron/base58 v1.1.3/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= diff --git a/pkg/yolopb/yolopb.pb.go b/pkg/yolopb/yolopb.pb.go index 8d8e79dd..002f0a0e 100644 --- a/pkg/yolopb/yolopb.pb.go +++ b/pkg/yolopb/yolopb.pb.go @@ -684,6 +684,14 @@ type BuildList_Request struct { ArtifactKinds []Artifact_Kind `protobuf:"varint,2,rep,packed,name=artifact_kinds,json=artifactKinds,proto3,enum=yolo.Artifact_Kind" json:"artifact_kinds,omitempty"` // filter builds without any artifacts WithArtifacts bool `protobuf:"varint,3,opt,name=with_artifacts,json=withArtifacts,proto3" json:"with_artifacts,omitempty"` + // only a specific build by its ID or yolo_id + BuildID []string `protobuf:"bytes,4,rep,name=build_id,json=buildId,proto3" json:"build_id,omitempty"` + // builds of a specific project by its ID or yolo_id + ProjectID []string `protobuf:"bytes,5,rep,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + // filter on builds that contain at least on of these artifacts + ArtifactID []string `protobuf:"bytes,6,rep,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"` + // filter by build driver (GitHub, CircleCI, ...) + BuildDriver Driver `protobuf:"varint,7,opt,name=build_driver,json=buildDriver,proto3,enum=yolo.Driver" json:"build_driver,omitempty"` } func (m *BuildList_Request) Reset() { *m = BuildList_Request{} } @@ -740,6 +748,34 @@ func (m *BuildList_Request) GetWithArtifacts() bool { return false } +func (m *BuildList_Request) GetBuildID() []string { + if m != nil { + return m.BuildID + } + return nil +} + +func (m *BuildList_Request) GetProjectID() []string { + if m != nil { + return m.ProjectID + } + return nil +} + +func (m *BuildList_Request) GetArtifactID() []string { + if m != nil { + return m.ArtifactID + } + return nil +} + +func (m *BuildList_Request) GetBuildDriver() Driver { + if m != nil { + return m.BuildDriver + } + return Driver_UnknownDriver +} + type BuildList_Response struct { Builds []*Build `protobuf:"bytes,1,rep,name=builds,proto3" json:"builds,omitempty"` } @@ -2175,154 +2211,158 @@ func init() { func init() { proto.RegisterFile("yolopb.proto", fileDescriptor_a62788fcb176084a) } var fileDescriptor_a62788fcb176084a = []byte{ - // 2348 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b,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0, 0x4e, 0x02, 0x4c, 0xdb, 0x8c, 0x8c, 0x31, - 0x65, 0xd6, 0x38, 0x98, 0x7f, 0x49, 0xe3, 0xe6, 0x6d, 0xc8, 0xef, 0x11, 0x6f, 0xb4, 0xa6, 0x41, - 0xc9, 0xc4, 0x3f, 0x9b, 0x60, 0xca, 0xd6, 0x00, 0xca, 0x26, 0xa6, 0x81, 0xef, 0x51, 0xdc, 0xa4, - 0x50, 0xef, 0xe2, 0xa3, 0xee, 0x64, 0x1c, 0x3c, 0x19, 0x3c, 0xc3, 0x43, 0x46, 0xd7, 0xb6, 0x63, - 0x45, 0xf4, 0x01, 0x2c, 0x1f, 0x13, 0xe6, 0xf4, 0x83, 0x10, 0xbb, 0xbe, 0x65, 0x13, 0x6f, 0x64, - 0x64, 0x36, 0x32, 0x9b, 0x65, 0xb3, 0xce, 0xc5, 0x7b, 0xb1, 0x74, 0x6d, 0x6b, 0xee, 0x11, 0xbd, - 0x03, 0x85, 0x81, 0xc5, 0x86, 0x8e, 0x50, 0xad, 0x6c, 0x57, 0x5a, 0x7c, 0x41, 0x5a, 0x1d, 0x2e, - 0x32, 0x65, 0x4f, 0xf3, 0x57, 0x59, 0x28, 0xee, 0x33, 0x8b, 0x4d, 0x68, 0x72, 0x58, 0xbf, 0xc8, - 0x26, 0xbc, 0xbc, 0x09, 0xc5, 0x49, 0xc0, 0xe7, 0x22, 0xdc, 0x14, 0x4c, 0xd5, 0x42, 0x37, 0xa0, - 0x68, 0x0f, 0xfa, 0x38, 0x0c, 0x8d, 0xec, 0x46, 0x66, 0x53, 0x33, 0x0b, 0xf6, 0xe0, 0x41, 0x18, - 0xa2, 0x06, 0x54, 0xbc, 0x41, 0x1f, 0x7b, 0x8c, 0x30, 0x82, 0xa9, 0x01, 0xc2, 0x06, 0xbc, 0xc1, - 0x03, 0x25, 0x51, 0x0a, 0x41, 0xe8, 0x8b, 0x49, 0x1a, 0x95, 0x48, 0x61, 0x4f, 0x49, 0xd0, 0x6d, - 0x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e2, 0x35, 0xe2, 0x55, 0x62, 0xcb, - 0x1d, 0x86, 0x0c, 0x28, 0x8d, 0x31, 0xa5, 0xd6, 0x08, 0x1b, 0x25, 0xc1, 0xbf, 0xa8, 0xc9, 0x27, - 0x44, 0x99, 0x15, 0xaa, 0x00, 0xe5, 0xeb, 0x4c, 0x48, 0xd9, 0xed, 0x30, 0xf4, 0x00, 0x2a, 0x07, - 0xc4, 0x23, 0xd4, 0x91, 0x5e, 0xb4, 0x6b, 0x78, 0x81, 0xc8, 0x70, 0x87, 0xa1, 0xbb, 0x00, 0x92, - 0xc8, 0xfd, 0x49, 0xe8, 0x8a, 0x64, 0xa0, 0x75, 0x6a, 0xb3, 0x69, 0x43, 0x93, 0x6c, 0x7e, 0x6a, - 0x3e, 0x32, 0x35, 0xa9, 0xf0, 0x34, 0x74, 0x79, 0xaa, 0x19, 0x84, 0x96, 0x37, 0x74, 0x44, 0x56, - 0xd0, 0x4c, 0xd5, 0x42, 0xff, 0x07, 0x45, 0x3b, 0x24, 0x47, 0x38, 0x14, 0xd9, 0xa0, 0x1e, 0xe1, - 0xb2, 0x2b, 0x64, 0xa6, 0xea, 0x43, 0xef, 0x43, 0x99, 0x3a, 0x7e, 0xc8, 0x38, 0x66, 0x6a, 0x22, - 0x52, 0x65, 0x36, 0x6d, 0x94, 0xf6, 0xb9, 0xac, 0xd7, 0x35, 0x4b, 0xa2, 0xb3, 0x67, 0xa3, 0xa7, - 0x50, 0x73, 0x2c, 0x9a, 0x60, 0x1a, 0x16, 0x10, 0xae, 0xa7, 0x59, 0xda, 0xd9, 0x78, 0x35, 0x6d, - 0xdc, 0x92, 0xe8, 0x3c, 0xf0, 0x43, 0x4c, 0x46, 0xde, 0x21, 0x3e, 0xb9, 0xb7, 0x6b, 0x51, 0xb1, - 0xab, 0xbd, 0x6e, 0xd3, 0xac, 0x3a, 0x16, 0x8d, 0xa9, 0x89, 0xfe, 0x1f, 0x80, 0xbb, 0x95, 0xb3, - 0x31, 0x0e, 0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x1b, 0xdd, 0x07, 0x18, 0x86, 0xd8, 0x62, 0xd8, 0xee, 0x5b, 0x4c, 0x6c, 0x74, 0x65, 0x7b, + 0xad, 0x25, 0x89, 0xaa, 0x15, 0x11, 0x4a, 0xeb, 0xb3, 0x88, 0x3f, 0x3a, 0xe5, 0x2f, 0xa7, 0x8d, + 0xcc, 0x17, 0xff, 0x68, 0x64, 0x4c, 0x4d, 0xd9, 0xed, 0x30, 0xee, 0x64, 0x12, 0xd8, 0x91, 0x93, + 0xfc, 0x75, 0x9c, 0x28, 0xbb, 0x1d, 0xce, 0x2b, 0x05, 0xca, 0x2c, 0x86, 0x8d, 0x82, 0xd8, 0xc1, + 0x95, 0xc4, 0x56, 0xb4, 0x38, 0x2f, 0x60, 0x53, 0xf6, 0xa3, 0x8f, 0xa1, 0x3a, 0xf4, 0xc7, 0x81, + 0x8b, 0x55, 0xbc, 0xe2, 0x35, 0xe2, 0x55, 0x62, 0xcb, 0x1d, 0x86, 0x0c, 0x28, 0x8d, 0x31, 0xa5, + 0xd6, 0x08, 0x0b, 0xd4, 0x68, 0x66, 0xd4, 0xe4, 0x13, 0xa2, 0xcc, 0x0a, 0x55, 0x80, 0xf2, 0x75, + 0x26, 0xa4, 0xec, 0x76, 0x18, 0x7a, 0x00, 0x95, 0x03, 0xe2, 0x11, 0xea, 0x48, 0x2f, 0xda, 0x35, + 0xbc, 0x40, 0x64, 0xb8, 0xc3, 0x78, 0xfe, 0x48, 0x02, 0xea, 0x4f, 0x42, 0x57, 0x90, 0x98, 0xca, + 0x1f, 0xc9, 0x42, 0x4f, 0xcd, 0x47, 0xa6, 0x26, 0x15, 0x9e, 0x86, 0x2e, 0xa7, 0xc8, 0x41, 0x68, + 0x79, 0x43, 0x47, 0xb0, 0x99, 0x66, 0xaa, 0x16, 0xfa, 0x16, 0x14, 0x55, 0x82, 0x54, 0xcf, 0x48, + 0x10, 0xd5, 0xc7, 0x73, 0x9a, 0x3a, 0x7e, 0x28, 0x52, 0xaf, 0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 0x1d, 0x89, 0x06, 0x55, 0x29, 0x1d, 0x9c, 0xae, 0x94, 0x38, + 0x18, 0x54, 0x51, 0x7b, 0x5d, 0x30, 0x28, 0xa4, 0x59, 0x13, 0xe6, 0xf8, 0xa1, 0x82, 0x41, 0xba, + 0x66, 0xe2, 0xce, 0x77, 0x44, 0xf7, 0x99, 0xc8, 0x21, 0x57, 0x47, 0xce, 0xd7, 0x65, 0xa8, 0x26, + 0x35, 0x5e, 0x6d, 0xfc, 0xbc, 0x06, 0x05, 0x46, 0x98, 0x1b, 0xa1, 0x47, 0x36, 0x92, 0xa8, 0x2a, + 0x9e, 0x87, 0xaa, 0xd2, 0x95, 0x50, 0x55, 0x4e, 0xa1, 0xaa, 0x15, 0x55, 0x6f, 0x9a, 0x30, 0x36, + 0x4e, 0xef, 0x47, 0xba, 0x88, 0xbb, 0x5e, 0x55, 0x73, 0x17, 0x40, 0xc6, 0x11, 0xda, 0x95, 0xb9, + 0x76, 0x47, 0x48, 0x85, 0xb6, 0x54, 0x58, 0xa4, 0xc6, 0xea, 0x05, 0xd4, 0xf8, 0xbf, 0xcd, 0x84, + 0xcf, 0x14, 0xf1, 0x52, 0x4a, 0x46, 0x1e, 0xc6, 0xd4, 0x18, 0x9d, 0xfe, 0x43, 0xd0, 0x79, 0xeb, + 0xe5, 0xb4, 0x71, 0x5b, 0xe2, 0x6d, 0x6c, 0x79, 0x27, 0xdb, 0xfc, 0xe7, 0xde, 0x38, 0x9c, 0x5b, + 0xa9, 0x12, 0x29, 0x6a, 0x46, 0x5e, 0x43, 0x7c, 0x44, 0xf0, 0x31, 0x0e, 0xa9, 0xe1, 0x5c, 0xc3, + 0x6b, 0x6c, 0x25, 0xbd, 0x9a, 0x51, 0x73, 0x31, 0x6b, 0xc9, 0xf5, 0xcb, 0xa2, 0x67, 0x57, 0x2a, + 0x8b, 0xd2, 0xd9, 0x7e, 0x78, 0x71, 0xb6, 0x47, 0x27, 0x97, 0x68, 0xf1, 0x18, 0x6e, 0x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0x7c, 0x6d, 0x80, 0x43, 0x76, 0xd2, 0x62, 0x78, + 0xe8, 0xb4, 0xb9, 0xf7, 0x76, 0x70, 0x38, 0x6a, 0xcb, 0x07, 0xeb, 0x41, 0x51, 0x1c, 0x66, 0x1f, + 0xfe, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xe2, 0x53, 0x5c, 0x9d, 0xc1, 0x1e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2863,6 +2903,38 @@ func (m *BuildList_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.BuildDriver != 0 { + i = encodeVarintYolopb(dAtA, i, uint64(m.BuildDriver)) + i-- + dAtA[i] = 0x38 + } + if len(m.ArtifactID) > 0 { + for iNdEx := len(m.ArtifactID) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ArtifactID[iNdEx]) + copy(dAtA[i:], m.ArtifactID[iNdEx]) + i = encodeVarintYolopb(dAtA, i, uint64(len(m.ArtifactID[iNdEx]))) + i-- + dAtA[i] = 0x32 + } + } + if len(m.ProjectID) > 0 { + for iNdEx := len(m.ProjectID) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ProjectID[iNdEx]) + copy(dAtA[i:], m.ProjectID[iNdEx]) + i = encodeVarintYolopb(dAtA, i, uint64(len(m.ProjectID[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.BuildID) > 0 { + for iNdEx := len(m.BuildID) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BuildID[iNdEx]) + copy(dAtA[i:], m.BuildID[iNdEx]) + i = encodeVarintYolopb(dAtA, i, uint64(len(m.BuildID[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } if m.WithArtifacts { i-- if m.WithArtifacts { @@ -4540,6 +4612,27 @@ func (m *BuildList_Request) Size() (n int) { if m.WithArtifacts { n += 2 } + if len(m.BuildID) > 0 { + for _, s := range m.BuildID { + l = len(s) + n += 1 + l + sovYolopb(uint64(l)) + } + } + if len(m.ProjectID) > 0 { + for _, s := range m.ProjectID { + l = len(s) + n += 1 + l + sovYolopb(uint64(l)) + } + } + if len(m.ArtifactID) > 0 { + for _, s := range m.ArtifactID { + l = len(s) + n += 1 + l + sovYolopb(uint64(l)) + } + } + if m.BuildDriver != 0 { + n += 1 + sovYolopb(uint64(m.BuildDriver)) + } return n } @@ -6068,6 +6161,121 @@ func (m *BuildList_Request) Unmarshal(dAtA []byte) error { } } m.WithArtifacts = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BuildID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowYolopb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthYolopb + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthYolopb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BuildID = append(m.BuildID, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProjectID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowYolopb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthYolopb + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthYolopb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProjectID = append(m.ProjectID, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArtifactID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowYolopb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthYolopb + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthYolopb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ArtifactID = append(m.ArtifactID, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BuildDriver", wireType) + } + m.BuildDriver = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowYolopb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BuildDriver |= Driver(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipYolopb(dAtA[iNdEx:]) diff --git a/pkg/yolosvc/api_buildlist.go b/pkg/yolosvc/api_buildlist.go index 5f92f3e0..4f2162e5 100644 --- a/pkg/yolosvc/api_buildlist.go +++ b/pkg/yolosvc/api_buildlist.go @@ -5,14 +5,16 @@ import ( "fmt" "berty.tech/yolo/v2/pkg/yolopb" + "moul.io/godev" ) func (svc service) BuildList(ctx context.Context, req *yolopb.BuildList_Request) (*yolopb.BuildList_Response, error) { + fmt.Println(godev.PrettyJSON(req)) if req == nil { req = &yolopb.BuildList_Request{} } if req.Limit == 0 { - req.Limit = 30 + req.Limit = 50 } if !req.WithArtifacts { req.WithArtifacts = len(req.ArtifactKinds) > 0 @@ -24,17 +26,38 @@ func (svc service) BuildList(ctx context.Context, req *yolopb.BuildList_Request) Model(&yolopb.Build{}) switch { - case len(req.ArtifactKinds) > 0: + case len(req.BuildID) > 0: query = query. - Joins("JOIN artifact ON artifact.has_build_id = build.id AND artifact.kind IN (?)", req.ArtifactKinds). - Preload("HasArtifacts", "kind IN (?)", req.ArtifactKinds) - case req.WithArtifacts: - query = query. - Joins("JOIN artifact ON artifact.has_build_id = build.id", req.ArtifactKinds). + Where("id IN (?) OR yolo_id IN (?)", req.BuildID, req.BuildID). Preload("HasArtifacts") - default: + case len(req.ArtifactID) > 0: query = query. + Joins("JOIN artifact ON artifact.has_build_id = build.id AND (artifact.id IN (?) OR artifact.yolo_id IN (?))", req.ArtifactID, req.ArtifactID). Preload("HasArtifacts") + default: + switch { + case len(req.ArtifactKinds) > 0: + query = query. + Joins("JOIN artifact ON artifact.has_build_id = build.id AND artifact.kind IN (?)", req.ArtifactKinds). + Preload("HasArtifacts", "kind IN (?)", req.ArtifactKinds) + case req.WithArtifacts: + query = query. + Joins("JOIN artifact ON artifact.has_build_id = build.id", req.ArtifactKinds). + Preload("HasArtifacts") + default: + query = query. + Preload("HasArtifacts") + } + + if req.BuildDriver != yolopb.Driver_UnknownDriver { + query = query.Where(&yolopb.Build{ + Driver: req.BuildDriver, + }) + } + + if len(req.ProjectID) > 0 { + query = query.Joins("JOIN project ON project.id = build.has_project_id AND (project.id IN (?) OR project.yolo_id IN (?))", req.ProjectID, req.ProjectID) + } } query = query. diff --git a/pkg/yolosvc/db.go b/pkg/yolosvc/db.go index 7c9b102d..253cc665 100644 --- a/pkg/yolosvc/db.go +++ b/pkg/yolosvc/db.go @@ -3,13 +3,13 @@ package yolosvc import ( "context" "crypto/sha256" - "encoding/base64" "fmt" "strings" "time" "berty.tech/yolo/v2/pkg/yolopb" "github.com/jinzhu/gorm" + "github.com/mr-tron/base58" "go.uber.org/zap" "moul.io/zapgorm" ) @@ -109,7 +109,7 @@ func beforeCreate(scope *gorm.Scope) { table := scope.TableName() id := field.Field.String() hash := sha256.Sum256([]byte(id)) - encoded := base64.StdEncoding.EncodeToString(hash[:]) + encoded := base58.Encode(hash[:]) prefix := strings.ToLower(table[:1]) yoloID := fmt.Sprintf("%s:%s", prefix, encoded) err := scope.SetColumn("yolo_id", yoloID)