Ana Rosas
bf20506e09
Merge branch 'master' into ar-enqueue-cancelling-jobs-builds
2016-06-15 16:15:05 +02:00
Ana Rosas
41c274b222
Remove 'type' from payload
2016-06-15 14:36:59 +02:00
Ana Rosas
5949429f75
Enqueue restart message on job/restart v3 endpoint
2016-06-14 17:39:29 +02:00
Ana Rosas
a2d1322b60
Enqueue cancel message on job/cancel v3 endpoint
2016-06-14 17:24:05 +02:00
Ana Rosas
bb7260bc9e
Enqueue restart message on build restart v3 endpoint
2016-06-14 16:46:29 +02:00
Ana Rosas
e097c8889e
Enqueue cancel message on build cancel v3 endpoint
2016-06-14 15:15:59 +02:00
Renée Hendricksen
9ed43941fd
updates for v3 approved by rkh and spruce up the model tests
2016-06-14 15:11:58 +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
5fee54b91b
Fewer object allocations :)
2016-06-09 11:29:17 +02:00
Joe Corcoran
eb0eab5967
Move settings to top level of response
...
To better accommodate nested responses.
2016-06-08 17:18:24 +02:00
Joe Corcoran
daf534edb7
Don't overwrite settings with defaults
...
Also changes the way the JSON fields are set to force ActiveRecord
to recognise the changes. Is there a better way?
2016-06-08 17:13:05 +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
Christopher Weyand
504be84f27
cron return created_at
2016-05-30 10:02:21 +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
13aa741e57
Merge branch 'master' into cronjobs
2016-04-18 09:42:36 +02:00
carlad
00aaf32b1e
add branch_name for request
2016-04-15 17:22:41 +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
Ana Rosas
228b594237
Return LIMIT if everything else fails
2016-04-05 17:09:48 +02:00
Ana Rosas
11ceaed333
Test default limit
2016-04-05 16:47:33 +02:00
Ana Rosas
679bbd7901
Use LIMIT constant as a backup limit number
2016-04-05 16:27:45 +02:00
Ana Rosas
407d2abea1
Use Travis.config to retrieve default values for api_builds_rate_limit
2016-04-05 15:29:49 +02:00
Steffen
7922ca8e84
Merge branch 'master' into cronjobs
2016-04-05 15:23:03 +02:00
Ana Rosas
5fc096f68b
Update rate limit condition
2016-04-05 12:29:35 +02:00
Ana Rosas
0e8fe08f7c
Update limit method and finish test
2016-04-04 16:13:14 +02:00
Steffen Kötte
31f6b5793a
refactor cron model and create service
2016-04-04 10:27:06 +02:00
carlad
f51cf1a1d1
update rakefile to allow heroku deployment, update create.rb with api builds rate limit
2016-03-31 16:54:12 +02:00
carlad
d1848ba6f9
make settings visible in repository
2016-03-30 12:30:26 +02:00
Steffen Kötte
9734e7133f
fix feature flag for_branch endpoint
2016-03-29 16:51:00 +02:00
Jonas Chromik
ca82725e5e
move cron jobs feature flag to permissions
2016-03-22 13:48:51 +01:00
Steffen Kötte
c037ec7aa3
refactor planned time calculation into separate methods
2016-03-22 10:17:23 +01:00
Jonas Chromik
fe76d38230
Merge branch 'master' into cronjobs
2016-03-21 17:08:33 +01:00
carlad
6b145e6f06
update lint service, update spec
2016-03-21 15:39:14 +01:00
Steffen Kötte
ac0012b0a2
Merge commit '8a050a468c77f2ad8c5faa99864c0bd7d61b08a0' into cronjobs
...
# Conflicts:
# Gemfile
2016-03-21 10:32:46 +01:00
carlad
f940bffe3f
more work on lint endpoint
2016-03-18 16:43:18 +01:00
carlad
da0576d995
Merge branch 'master' into cd-v3
2016-03-14 13:36:46 +01:00
Jonas Chromik
5663410c45
minor changes
2016-03-14 12:50:39 +01:00
Christopher Weyand
6c839aebec
feature flag test
2016-03-14 11:03:41 +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