Commit Graph

1544 Commits

Author SHA1 Message Date
Piotr Sarnacki
cf5915a06b Bump travis-core 2015-11-25 18:11:43 +01:00
Piotr Sarnacki
dbea2f3760 Revert "v3: in access control object, avoid firing multiple permissions queries (even though they are cache hits)"
This reverts commit 4a3357a488.
2015-11-24 15:09:58 +01:00
Piotr Sarnacki
81e11da856 Fix error when default branch tries to be autosaved
For some reason when branch from V2 models is being saved, it tries to
also update relationships for V3 models, at least in tests. This fails,
because default_branch association on the V3 Repository model has a
primary key set to [:id, :default_branch]. In theory we use composite
keys plugin, but it seems that it doesn't cover that case and because of
that AR fails with an error "[:id, :default_branch] is not a Symbol"
when it tries to call Model#send with primary_key as an argument.

This commit fixes the issue by overriding the send method on the
Repository model to not fail when AR does
repository.send([:id, :default_branch_name]), when it needs to fetch
a primary key.

This is hacky, but I haven't found a nicer way to get around it.
2015-11-24 15:09:58 +01:00
Piotr Sarnacki
a31a6cb92b Bump travis-core 2015-11-23 15:52:18 +01:00
Konstantin Haase
4a3357a488 v3: in access control object, avoid firing multiple permissions queries (even though they are cache hits) 2015-11-20 16:24:26 +01:00
Konstantin Haase
8f0b35a0f1 User-Agent-Tracker: check if comment is there 2015-11-20 14:20:02 +01:00
Konstantin Haase
efb91d0a38 move user-agent filter for /auth/github to redis 2015-11-20 13:53:35 +01:00
Konstantin Haase
b138fbcdeb check user agent 2015-11-19 19:59:22 +01:00
Konstantin Haase
8f5a34c7b6 disable /auth/github 2015-11-19 19:37:51 +01:00
Konstantin Haase
4f9cb29775 also add a throttle 2015-11-19 19:29:07 +01:00
Konstantin Haase
28ff2f6848 aggressive blocking on /auth/github 2015-11-19 19:24:18 +01:00
Konstantin Haase
480aac2171 Merge pull request #209 from travis-ci/cd-v3-parity
v3 Add user/:id/sync endpoint
2015-11-10 12:30:27 +01:00
carlad
a6327ec4d2 v3 update spec for user sync 2015-10-30 16:36:38 +01:00
Konstantin Haase
9c9aa3334c allow setting sidekiq worker class 2015-10-30 16:29:09 +01:00
Konstantin Haase
4035b22bf6 allow specifying the sidekiq queue 2015-10-30 15:48:07 +01:00
carlad
426a68f567 v3 add spec for user sync 2015-10-30 12:58:24 +01:00
carlad
26b1d85d43 V3 add user/:id/sync endpoint 2015-10-29 17:57:30 +01:00
Konstantin Haase
b923b21252 v3: expose default sorting mode in service index 2015-10-28 16:13:34 +01:00
Konstantin Haase
b4fa2220a7 Merge pull request #208 from travis-ci/cd-v3-parity
Add owner/github_id/:github_id endpoint
2015-10-28 15:54:38 +01:00
carlad
59d3090da6 Auto-merged master into cd-v3-parity on deployment. 2015-10-28 15:40:26 +01:00
carlad
0339a4f3e6 update owner/find_spec to include owner by github_id 2015-10-28 13:31:35 +01:00
Konstantin Haase
57f31c6573 Merge pull request #207 from travis-ci/rkh-v3-owner-repos-under-repos
API v3: owner/repos => repos/for_owner
2015-10-28 13:25:12 +01:00
Konstantin Haase
df3ec4084a API v3: owner/repos => repos/for_owner 2015-10-28 13:22:04 +01:00
carlad
2e590585fe ;;Merge branch 'cd-v3-parity' of github.com:travis-ci/travis-api into cd-v3-parity 2015-10-28 13:20:56 +01:00
carlad
2c8db7aa61 remove debug output 2015-10-28 13:20:18 +01:00
carlad
f02c9e0a02 Auto-merged master into cd-v3-parity on deployment. 2015-10-28 13:15:57 +01:00
carlad
96f3e554ee Merge branch 'cd-v3-parity' of github.com:travis-ci/travis-api into cd-v3-parity 2015-10-28 13:14:16 +01:00
carlad
245edc5f55 add owner/github_id/:id endpoint 2015-10-28 13:13:02 +01:00
Konstantin Haase
e45d6c9dfe Merge pull request #206 from travis-ci/cd-v3-parity
add jobs endpoint
2015-10-27 12:57:42 +01:00
Konstantin Haase
64dadb7549 v3: jobs query - comment out unused lines for now 2015-10-27 12:50:55 +01:00
carlad
bce9ea5b46 update jobs service, add jobs spec 2015-10-26 19:37:32 +01:00
carlad
dc248302ab add jobs endpoint 2015-10-26 15:57:34 +01:00
Konstantin Haase
588465766f legacy: avoid off by one error in spec that suddenly surfaced 2015-10-22 09:25:53 +02:00
Konstantin Haase
3d171394a6 v3: list more resources in the service index 2015-10-22 09:13:55 +02:00
Konstantin Haase
083355227f v3: add developer program feature flag 2015-10-21 16:57:21 +02:00
carlad
4a23a1e0c5 Update README.md 2015-10-20 14:28:27 +02:00
carlad
7237ad766e Update README.md 2015-10-20 14:27:19 +02:00
carlad
a51ee4cb99 Update README.md 2015-10-20 14:26:14 +02:00
carlad
9bcf83bc09 Update README.md 2015-10-20 14:17:44 +02:00
carlad
10c05434e8 Add to nginx info 2015-10-20 14:17:31 +02:00
carlad
615499489a Update README.md 2015-10-20 14:17:03 +02:00
carlad
58b388db69 Add Nginx as a dependency 2015-10-20 14:15:47 +02:00
carlad
c37e01c911 Update README.md 2015-10-19 16:52:40 +02:00
Konstantin Haase
4a11c22a74 add another avatar spec 2015-10-15 10:40:30 +02:00
Konstantin Haase
099d10f466 Merge pull request #204 from travis-ci/rkh-more-pagination
v3: More pagination and sorting
2015-10-14 14:41:49 +02:00
Konstantin Haase
0fc7c35e0c Auto-merged master into rkh-more-pagination on deployment. 2015-10-14 14:26:42 +02:00
Konstantin Haase
03c982a45a Merge pull request #202 from travis-ci/rkh-active-broadcasts
better broadcasts, cleaner payloads
2015-10-14 14:13:13 +02:00
Konstantin Haase
df8f2537cc v3: list sortable fields in service index 2015-10-13 17:40:58 +02:00
Konstantin Haase
571af14067 v3: add pagination and sortability to repo endpoints 2015-10-13 17:34:31 +02:00
Konstantin Haase
2ebfa1d85b v3: add pagination and sorting to orgs endpoint 2015-10-13 17:09:18 +02:00