carlad
7be5bf6fec
Auto-merged master into cd-first-log-in on deployment.
2015-12-03 15:05:22 +01:00
carlad
0ecbd8b237
add customerio gem and event
2015-12-03 15:04:50 +01:00
carlad
a4bce14a73
move method to handshake
2015-12-03 13:02:52 +01:00
carlad
83b6bed184
fix variable name
2015-12-03 12:59:12 +01:00
carlad
f602ce0989
initial work: add check for frist log in
2015-12-03 12:52:34 +01:00
carlad
6acf267a04
try to add a check for first_log_in
...
but according to rkh it's possibly in the wrong place. What if there's no user??
2015-12-02 17:38:28 +01:00
carlad
7304606687
bump travis-core
2015-12-02 15:16:41 +01:00
Hiro Asari
619ff93057
Update travis-core
...
In particular, to have https://github.com/travis-ci/travis-core/pull/499
2015-12-02 08:53:53 -05:00
carlad
f7cd49f194
Merge pull request #220 from travis-ci/cd-v3
...
v3: adds star, unstar endpoints, adds starred filter, adds specs
2015-12-01 17:30:26 +01:00
Konstantin Haase
dece76ce5b
v3: avoid handing repository back to the query
2015-12-01 17:25:09 +01:00
carlad
b6186890c4
v3: remove webmock gem
2015-12-01 16:53:42 +01:00
carlad
06b5e0af15
v3: fix specs
2015-12-01 16:51:04 +01:00
carlad
c0d562cb7d
Merge branch 'master' into cd-v3-parity
2015-12-01 15:10:35 +01:00
carlad
50e198beee
v3: tidy specs for star, unstar, enable, disable
2015-12-01 15:02:10 +01:00
carlad
54ffac9916
v3: complete enable and disable repo specs
2015-12-01 14:56:33 +01:00
carlad
221b309653
v3: add webmock for disable repo spec
2015-12-01 12:36:43 +01:00
carlad
620e38a2a0
v3: add spec for disable repo (unfinished)
2015-11-30 19:37:50 +01:00
carlad
dfdfe651af
v3: complete specs for star and unstar
2015-11-30 19:36:49 +01:00
carlad
5d6b25a2b4
v3: add specs for disable repo
2015-11-30 17:51:50 +01:00
carlad
01591cefa5
v3: fix specs for services/repositories
2015-11-26 18:30:14 +01:00
Konstantin Haase
afb6fe286b
v3: SQL "NOT IN ()" never matches
2015-11-26 18:17:19 +01:00
carlad
24d5efda95
v3 update spec for services/repositories
2015-11-26 17:39:03 +01:00
carlad
2b8d7e420b
Update README.md
2015-11-26 16:48:10 +01:00
carlad
8d3acfe9bb
v3 fix existing specs for un/star endpoints and starred filter
2015-11-26 14:00:42 +01:00
carlad
086932df11
v3 merge with master to fix default_branch spec error, fix services/repository spec
2015-11-25 19:17:33 +01:00
carlad
2974dccd3b
Merge branch 'master' into cd-v3-parity
2015-11-25 18:18:56 +01:00
Piotr Sarnacki
cf5915a06b
Bump travis-core
2015-11-25 18:11:43 +01:00
carlad
c2168d62f1
v3 update specs to accomodate starred, unstar and star
2015-11-25 18:08:53 +01:00
carlad
937cc0267a
v3 fix filtering by unstarred and n+1 query
2015-11-25 16:30:42 +01:00
carlad
baa1881bf7
v3 change name of starred_repository to star
2015-11-24 18:59:16 +01:00
carlad
d3b13e8d7c
v3 fix relation of starred_repository to repostiory model
2015-11-24 18:15:17 +01:00
carlad
af3087446c
v3 adjust repo model, query and service for filtering by starred - not working
2015-11-24 18:03:15 +01:00
Piotr Sarnacki
7eb2617e48
Add branch_is_default info to commits
2015-11-24 16:07:23 +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
carlad
02f5035100
comment out
2015-11-24 12:31:50 +01:00
carlad
4095090992
Merge branch 'master' into cd-v3-parity
2015-11-24 11:54:49 +01:00
Piotr Sarnacki
a31a6cb92b
Bump travis-core
2015-11-23 15:52:18 +01:00
carlad
9793010e28
v3 add filter for d=starred repos - not working yet
2015-11-20 19:02:39 +01:00
carlad
77aabcb78f
Merge branch 'master' into cd-v3-parity
2015-11-20 17:24:34 +01:00
carlad
fb483689e9
V3 start implementing filter for starred repos
2015-11-20 17:23:59 +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
carlad
02d3fad23f
v3 refator un/star endpoints
2015-11-20 13:20:03 +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
carlad
95ad9a6b56
v3 add starred to standard representation for repo
2015-11-19 19:17:46 +01:00