Commit graph

13 commits

Author SHA1 Message Date
Daniel Oliveira
abc83303ee solve build.go conflict 2015-04-24 18:19:48 -06:00
Brad Rydzewski
da350989d3 fixed minor queue glitches 2015-04-24 14:25:03 -07:00
Daniel Oliveira
987e85f261 About this commit:
1. server/builds.go:92 used SetStatus(). Replaced with SetBuildStatus().
2. Added a index check in SetBuildTask() and return an error in case the tasks number is > than build.tasks size.
2015-04-23 13:39:36 -06:00
Daniel Oliveira
4edf385d1c About this commit:
1. server/builds.go:92 used SetStatus(). Replaced with SetBuildStatus().
2. Added a index check in SetBuildTask() and return an error in case the tasks number is > than build.tasks size.
2015-04-23 12:15:17 -06:00
Daniel Oliveira
d13c1caebf About this commit:
1. server/builds.go:92 uses SetStatus().
2. The other APIs we talked about: Status(), StatusList(), we were able to move out.
3. The repo_del_test.go code merge into repo_test.go
4. Unit tests for the other build APIs added.
   - We are facing a crash in: github.com/drone/drone/datastore/bolt.(*DB).SetBuildTask(0xc208056080, 0x5e15d0, 0x15, 0x1, 0xc208036940, 0x0, 0x0)
     which seems to be related to the note in: build.go:207 (// TODO check index to prevent nil pointer / panic)
5. With these new tests we get over 86% plus test cover for bolt package.
2015-04-22 19:49:16 -06:00
Brad Rydzewski
cd18645784 contemplating nested storage of tasks and statuses 2015-04-15 23:45:24 -07:00
Brad Rydzewski
0c3f9e5bde REST cleanup. Idiomatic naming of datastore funcs 2015-04-14 22:04:38 -07:00
Brad Rydzewski
eda3cfbe4b added logging when login or hook fails. helps troubleshoot common issues 2015-04-11 15:46:30 -07:00
Brad Rydzewski
ab3df4bd65 added some initial code for build list. will revisit. 2015-04-10 23:11:41 -07:00
Brad Rydzewski
087f92f41f tokens, last build 2015-04-10 22:22:55 -07:00
Ben Schumacher
46114f1231 Rework BoltDB util functions to use bolt.Tx instead of DB along with updates to existing API that leverage these to use Bolt's transaction wrapping functions. 2015-04-10 15:01:03 -06:00
Ben Schumacher
7bff8b3185 Add sequencing logic into the InsertBuild and test 2015-04-10 10:14:02 -06:00
Brad Rydzewski
d9fd23a6df experimental branch. playing around with boltdb 2015-04-07 01:20:55 -07:00