Commit graph

22 commits

Author SHA1 Message Date
Brad Rydzewski
4c847296d4 refactoring toward multi-binary project layout 2015-05-17 11:10:43 -07:00
Brad Rydzewski
85256d3a22 backported 0.4 changes to existing database 2015-05-11 00:45:31 -07:00
Daniel Oliveira
ba159976a0 Fixing TODO comments in code /cc @oliveiradan
1. server/login.go:49 (// TODO(bradrydzewski) return an error message instead). Added error message if authorization fails.
2. server/repos.go:178 (TODO(bradrydzewski) verify repo not exists). Added a checking for the repo and return an error in case it does not exist.
3. server/queue.go:170:  // TODO (bradrydzewski) change this interface to accept an io.Reader. All references to the API change been in question SetLogs() have been modified.
4. remote/github/github.go:106  // Fixed a crash in case *repo_.Language is nil , when de-referencing it. This could happen when a repo only has a readme, so github hasn't set the language yet.
5. ./server/queue.go:170:  // TODO (bradrydzewski) change this interface to accept an io.Reader. All references to the API change been in question SetLogs() have been modified.
6. .remote/github/github.go:106  // Fixed a crash in case *repo_.Language is nil , when de-referencing it. This could happen when a repo only has a readme, so github hasn't set the language yet.
2015-05-08 10:47:40 -06:00
Brad Rydzewski
0690a85bd3 Merge pull request #994 from benschumacher/testify-mocks
Alternative pattern for API unit tests (versus #991)
2015-04-30 21:07:21 -07:00
Brad Rydzewski
ad80facbbd websocket output working 2015-04-29 19:57:43 -07:00
Brad Rydzewski
ca931cd9eb ability to persist agent data 2015-04-29 15:26:22 -07:00
Brad Rydzewski
4071ea73a0 removed commented code no longer used from datastore 2015-04-29 11:19:39 -07:00
Ben Schumacher
e033a1a4a5 Alternative pattern for API unit tests 2015-04-27 15:48:21 -06:00
Daniel Oliveira
0579df7584 repo_test.go conflict resolution 2015-04-23 11:28:03 -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
0cd5dc1a5b Merge remote-tracking branch 'upstream/bolt' into bolt 2015-04-21 13:09:02 -07:00
Brad Rydzewski
85e17393fa some stubs for build config 2015-04-21 13:08:56 -07:00
Daniel Oliveira
3f2d72daf0 Code changes related to PR #986 and Issue #984. Comments deleted 2015-04-20 19:57:50 -06:00
Daniel Oliveira
09d5c6f011 Code changes related to PR #986 and Issue #984 2015-04-20 18:39:32 -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
1ad5e3f597 repo subscriptions functioning in datastore w/ index 2015-04-13 21:39:05 -07:00
Brad Rydzewski
54e4250df9 ability to limit (or not) the log output 2015-04-12 23:08:55 -07:00
Brad Rydzewski
66990a95b4 initial work on tokens 2015-04-12 22:32:32 -07:00
Brad Rydzewski
950e4f4090 storing user repos index inside users object, for now 2015-04-08 22:18:25 -07:00
Brad Rydzewski
9298f16155 added handlers, rest, angular skeleton 2015-04-08 15:43:59 -07:00
Brad Rydzewski
d9fd23a6df experimental branch. playing around with boltdb 2015-04-07 01:20:55 -07:00