Ana Rosas
69f0a9d33e
Add enable_for_all? condition
2016-06-28 11:35:47 -07:00
Ana Rosas
69cc2eef7d
Check for repository owner instead of current user to validate feature flag
2016-06-23 15:15:31 -05:00
Ana Rosas
41c274b222
Remove 'type' from payload
2016-06-15 14:36:59 +02:00
Ana Rosas
1c99216e23
Fix merge conflicts
2016-06-08 17:51:48 +02:00
Ana Rosas
0038197aab
Assign variable before if statement
2016-05-30 18:10:11 +02:00
Ana Rosas
8655fd19ce
Refacto endpoint
2016-05-30 17:07:17 +02:00
Ana Rosas
68daabafa0
Use only params[:id]
2016-05-27 17:52:55 +02:00
Ana Rosas
00bae7a945
Remove push_matrix method, no need of it
2016-05-27 16:41:07 +02:00
Ana Rosas
ef7811ead9
Small refacto
2016-05-27 16:10:16 +02:00
Ana Rosas
c3e0d6d6bb
Use CancelModel in Builds endpoint
2016-05-27 15:57:19 +02:00
Ana Rosas
fa50bd13de
Abstract enqueue restart service, to use it with Jobs and Builds
2016-05-26 17:45:31 +02:00
Ana Rosas
3c253bb88c
Move stub to before block on restart test
2016-05-23 15:07:33 -05:00
Ana Rosas
2b37d90ffb
Add permission methods to enqueue_build
2016-05-23 15:07:33 -05:00
Ana Rosas
9bd145856b
Add feature flag to enqueue restart build to Hub
2016-05-23 15:07:33 -05:00
Ana Rosas
9bbfb7ec97
Add an equeue service
2016-05-23 15:07:33 -05:00
Ana Rosas
28884f9931
Enqueue build_restart event in Hub
2016-05-18 15:11:04 -05:00
carlad
517a3b04f7
Revert "Revert "Merge branch 'master' of github.com:travis-ci/travis-api""
...
This reverts commit 171b9c57c7
.
2015-01-27 16:22:30 +01:00
Konstantin Haase
171b9c57c7
Revert "Merge branch 'master' of github.com:travis-ci/travis-api"
...
This reverts commit 1b8f77ab36
, reversing
changes made to 79a4a9ad13
.
2015-01-27 14:39:36 +01:00
carlad
d050ebc018
update status code, remove unnecessary line
2015-01-27 12:48:13 +01:00
Tyranja
a9c31fa5e9
Extract cancel and restart builds and jobs into sidekiq worker
...
See below for all the commit messages squashed into this one...
add a test
delete empty space
add job_cancellation worker
change id
change job_id param
add job restart worker
add require to sidekiq.rb
change params
add test for job restart and cancellation
add test for job restart
update build.rb improve build spec
update job restart with correct response, add test to chack for correct response when restarting job
2015-01-26 17:29:13 +01:00
Tyranja
d8674a3715
take out the comments
2015-01-23 15:32:40 +01:00
Tyranja
057e9f0379
add Sidekiq for cancelling build
...
:
add require sidekiq to the sidekiq.rb
update Gemfile.lock
bump travis-sidekiqs
correct require statement
fix another request
connect to the database
add current user
add current user correctly
add current user correctly
add puts to see were in the condition we are
missing invertted comma
add comments to the worker
I HAVE NO IDEA
Revert "I HAVE NO IDEA"
This reverts commit 8bd1259bf4ea1b479f9391847a4700b7b15efe57.
change the id and source to symbols in the params because siedekiq expects that
add more printout
setup database connection, metrics and notification
correct the test
2015-01-23 14:43:54 +01:00
carlad
9b4d121956
refactor buildcancellation worker
2015-01-22 14:41:38 +01:00
carlad
39bd25cc3b
add sidekiq worker, update endpoint
2015-01-21 17:09:24 +01:00
Josh Kalderimis
92dc3f55ec
add 'restart' to the build and job endpoints
2013-11-06 01:18:54 +01:00
Piotr Sarnacki
0cdfa8240c
Add source to cancel_build/job
2013-10-16 17:39:31 +02:00
Piotr Sarnacki
d133528893
Use follower for /builds and /jobs
2013-09-03 14:45:12 +02:00
Mathias Meyer
d141256671
Revert my puny changes for now.
...
Will be fixed in travis-web.
2013-08-22 15:21:09 +02:00
Mathias Meyer
8bde2ddb10
blank
2013-08-22 15:05:45 +02:00
Mathias Meyer
7fb90f3975
end end
2013-08-22 15:02:39 +02:00
Mathias Meyer
c711002577
Only return empty builds hash when there are no ids present.
2013-08-22 14:59:19 +02:00
Mathias Meyer
3a90f08d3b
Disable the /builds endpoint for now.
2013-08-22 14:49:24 +02:00
Piotr Sarnacki
526129b5be
Add more metriks (cancel build/job and restart build/job)
2013-08-21 11:38:29 +02:00
Piotr Sarnacki
f19de9d134
Implement jobs/:id/cancel and builds/:id/cancel endpoints
2013-08-08 14:25:20 +02:00
Piotr Sarnacki
b6a351c766
Convert params['ids'] to array
...
Services like find_builds can accept :ids as a param, but it needs to be
an array, string will be passed to find and converted into integer.
2013-07-09 15:18:31 +02:00
Piotr Sarnacki
f2d768080f
Return last builds on each branch for /builds?branches=true
...
This is a hack to fix travis-ci/travis-web#123 easier. A proper solution
would be to refactor how /branches work.
2013-01-26 01:12:47 +01:00
Sven Fuchs
353b5fa502
use registered services
2012-11-23 21:16:10 +01:00
Sven Fuchs
209dbe2a85
rename services, remove service helpers
2012-10-12 01:28:35 +02:00
Sven Fuchs
903f249cfb
moar refactoring on responders, fix specs
2012-10-09 18:28:46 +02:00
Sven Fuchs
494a85d968
refactor responders
2012-10-09 15:17:10 +02:00
Sven Fuchs
4328ba8649
adapt services changes from travis-core
2012-10-05 13:06:50 +02:00
Sven Fuchs
6bda358786
cleanup and some notes
2012-10-03 13:14:01 +02:00
Sven Fuchs
f6957636fb
refactor to responders, add the cc.xml stuff
2012-10-03 02:19:16 +02:00
Sven Fuchs
5ff58b1d6c
adapt changes for split services
2012-09-29 20:48:31 +02:00
Sven Fuchs
a2d195ecf9
actually turn these objects into json
2012-09-15 12:33:34 +02:00
Sven Fuchs
1fdcec33a4
use services
2012-09-15 12:10:40 +02:00
Piotr Sarnacki
159a8e105b
Implement a few missing endpoints
2012-08-10 13:41:25 +02:00
Konstantin Haase
7baf61054c
rewrite all the things
2012-07-27 15:55:57 +02:00