Ana Rosas
bb7260bc9e
Enqueue restart message on build restart v3 endpoint
2016-06-14 16:46:29 +02:00
Ana Rosas
75460b2427
Use Travis::Enqueue::Services::CancelModel on v3 build cancel endpoint
2016-06-13 18:16:16 +02:00
Joe Corcoran
fba9a87c39
Add settings to API V3
...
This adds /repo/{repository.id}/settings endpoints for reading
and updating repo settings.
Main points:
1. Sets up Settings as a first class resource instead of as an
attribute of Repository
2. Adds new meta-programmed method to Query for accessing all
prefixed params as a hash.
2016-06-08 15:59:52 +02:00
Buck Doyle
b649bb5a0f
Remove duplicated sorting configuration ( #274 )
...
As noted by @rkh in the API introduction.
2016-06-06 15:08:00 -04:00
Piotr Sarnacki
7317d6b265
Rename current_build sort to current_build_id
...
This a quick workaround for sorting by current_build. When the field
that we use to sort is the same as one of the associations name API V3
will try to join the association. So in this case it will try to join
:current_build, which fails. This needs a better solution, but I want to
get this working for now.
2016-06-06 16:40:41 +02:00
Piotr Sarnacki
dbe0a75a22
Specify a table when sorting by current_build_id
...
Otherwise in some circumstances postgres may complain about
disambiguity.
2016-06-06 14:13:46 +02:00
carlad
1d3a2ebb67
add error rescue for cron start method
2016-05-24 15:20:40 +02:00
Piotr Sarnacki
659dc4d992
Add current_build to repositories payload
...
This commit adds current_build (which is based on
repositories.current_build_id) to repositories payload. It also adds
ability to sort by current_build.
2016-05-17 14:11:09 +02:00
Piotr Sarnacki
13d9c97501
Revert "Merge pull request #257 from travis-ci/ps-current-build"
...
This reverts commit 52bebad05c
, reversing
changes made to 9d386efa4c
.
2016-05-11 17:13:40 +02:00
Piotr Sarnacki
c9b93982c9
Add current_build to repositories payload
...
current_build is the most recent build that is either completed or
running
2016-05-11 16:55:47 +02:00
Steffen
f186c16669
Merge branch 'master' into cronjobs
2016-04-22 10:33:40 +02:00
carlad
30d73782c8
add error check to build restart and cancel
2016-04-20 11:33:20 +02:00
carlad
379a63bf00
fix spelling of canceled, remove debug output
2016-04-20 11:08:29 +02:00
carlad
506e0f0f7a
add check for state on job restart and cancel
2016-04-19 15:26:28 +02:00
Steffen Kötte
7e7f1b212b
refactor cron start
2016-04-14 12:53:23 +02:00
Steffen Kötte
0b2585de45
remove cronjobs and disallow creating if branch does no longer exist on GitHub
2016-04-12 11:33:30 +02:00
Jonas Chromik
ca82725e5e
move cron jobs feature flag to permissions
2016-03-22 13:48:51 +01:00
Steffen Kötte
ac0012b0a2
Merge commit '8a050a468c77f2ad8c5faa99864c0bd7d61b08a0' into cronjobs
...
# Conflicts:
# Gemfile
2016-03-21 10:32:46 +01:00
carlad
f512975e6a
change sort to builds.started_at
2016-03-11 15:05:46 +01:00
carlad
b784eaee82
add sort_by default_branch.last_build builds.id
2016-03-11 14:41:24 +01:00
carlad
3182513798
add sort_by default_branch builds.id
2016-03-11 14:39:28 +01:00
Steffen Kötte
ca5820e2e3
send user id with cron build payload
2016-02-25 13:49:12 +01:00
Steffen Kötte
77ec852be6
send empty credentials hash
2016-02-11 14:43:33 +01:00
Steffen Kötte
3fa9c09c0c
move cron creation to query
2016-02-01 16:50:10 +01:00
Steffen Kötte
0d1dbaadd7
move start all to query
2016-02-01 16:29:23 +01:00
Steffen Kötte
be01b36f05
move find cron for repository to query
2016-02-01 16:20:50 +01:00
Steffen Kötte
98a75e5931
move find cron for branch to correct query
2016-02-01 15:23:15 +01:00
Steffen Kötte
d75daab82f
move cron start to query
2016-02-01 15:13:34 +01:00
Steffen Kötte
0920041375
further changes for new structure with only one cron per branch
2016-01-11 14:14:00 +01:00
Steffen Kötte
e4aec173ee
Merge commit 'bddd9952a74d1eddad5d5a255419e07c836b286d' into addCron
...
Conflicts:
spec/v3/services/owner/find_spec.rb
spec/v3/services/repositories/for_current_user_spec.rb
spec/v3/services/repositories/for_owner_spec.rb
spec/v3/services/repository/find_spec.rb
2015-12-17 10:11:20 +01:00
Konstantin Haase
dece76ce5b
v3: avoid handing repository back to the query
2015-12-01 17:25:09 +01:00
Konstantin Haase
afb6fe286b
v3: SQL "NOT IN ()" never matches
2015-11-26 18:17:19 +01:00
carlad
8d3acfe9bb
v3 fix existing specs for un/star endpoints and starred filter
2015-11-26 14:00:42 +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
af3087446c
v3 adjust repo model, query and service for filtering by starred - not working
2015-11-24 18:03:15 +01:00
carlad
02f5035100
comment out
2015-11-24 12:31:50 +01:00
carlad
9793010e28
v3 add filter for d=starred repos - not working yet
2015-11-20 19:02:39 +01:00
carlad
fb483689e9
V3 start implementing filter for starred repos
2015-11-20 17:23:59 +01:00
carlad
02d3fad23f
v3 refator un/star endpoints
2015-11-20 13:20:03 +01:00
carlad
0f4a29c31c
refactor un/star querys from service to query
2015-11-19 19:02:12 +01:00
Steffen
18ea7853bf
Merge branch 'master' into addCron
2015-11-19 13:39:50 +01:00
carlad
714e40beca
more initial work on star/unstar endpoints
2015-11-18 17:43:35 +01:00
carlad
c96e8e2ff1
initial work on star and unstar endpoints
2015-11-16 18:14:31 +01:00
Steffen Kötte
aca632ed15
use branch for storing cron
2015-11-16 14:24:11 +01:00
Lennard Wolf
ec37deb17c
add /repo/repo.id/crons GET endpoint
2015-11-05 15:22:10 +01:00
Lennard Wolf
772e797aae
add /cron/cron.id/ GET endpoint
2015-11-05 13:31:36 +01:00
Lennard Wolf
046a63b60a
add find for cron
2015-11-05 11:43:58 +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