dmwm / dbs2go

DBS server written in Go
MIT License
5 stars 4 forks source link

Implement inserting FileLumiList in InsertFile for Issue #20 #21

Closed d-ylee closed 2 years ago

d-ylee commented 2 years ago

Implement inserting FileLumiList in InsertFile for Issue #20. Also includes basic integration tests for /blocks and /files API.

Inserting FileLumiList is based on dbs/bulkblocks.go. As such, the logic in dbs/bulkblocks.go is moved to the function SelectFileLumiListInsert in dbs/filelumis.go.

The type RunLumi was only used in dbs/files.go. This was also removed after replacing the type of dbs.FileRecord.FILE_LUMI_LIST to dbs.FileLumi: https://github.com/d-ylee/dbs2go/blob/a0fd6829ec283975820163e4c0cd96f56976bef5/dbs/files.go#L397.

Some of Issue #7 was included in the integration test: https://github.com/d-ylee/dbs2go/blob/a0fd6829ec283975820163e4c0cd96f56976bef5/test/int_files.go#L254