Commit Graph

346 Commits

Author SHA1 Message Date
Aakriti Gupta
9ab4111f33 Remove feature flip from requests endpoint 2016-07-20 11:20:19 +02:00
Ana Rosas
75ef3a6367 Remove old code references from v2 endpoints 2016-07-20 11:17:50 +02:00
Ana Rosas
54e9d2fd06 Get type of model in order to call correct restart event 2016-07-11 15:20:34 -05:00
Ana Rosas
f544f3b15a Requests endpoint receives build_id and job_id 2016-07-11 15:14:30 -05:00
Ana Rosas
b234ad73be Use repo owner instead of current user 2016-07-11 14:29:05 -05:00
Ana Rosas
2ab8af6659 Use build:restart event 2016-07-11 14:29:05 -05:00
Ana Rosas
564e95be6b Use params instead of payload and return error message 2016-07-11 14:29:04 -05:00
Ana Rosas
db193cb541 Use new restart service on request endpoint 2016-07-05 10:25:54 -05:00
Igor Wiedler
d84d3983b8 update rack-attack to 5.0.0.beta1, use safelist/blocklist terminology 2016-07-05 12:58:58 +02:00
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
Sven Fuchs
25f74defe5 try fixing updating github oauth scopes 2016-06-21 14:00:04 +02:00
Sven Fuchs
6603990fe4 trigger sync in the auth endpoint, not the user model 2016-06-20 16:59:55 +02:00
Sven Fuchs
da4c7f26e6 fix auth endpoint 2016-06-20 15:04:38 +02:00
Sven Fuchs
84ebb6b24e move tracking github oauth scopes out of the user model, and into Travis::Github::Oauth 2016-06-19 17:33:03 +02:00
Sven Fuchs
0f1e697abd delete github/services/sync_user and user_mailer, remove action_mailer 2016-06-19 15:04:39 +02:00
Sven Fuchs
a6658fa4d3 get rid of spec_helper_core 2016-06-19 14:35:54 +02: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
1c9212ef08 Refacto on restart endpoint for Jobs 2016-06-01 14:57:55 +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
6de524d84c Enqueue restarting jobs for the Hub 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
29f80ab31b Use CancelModel on Jobs endpoint 2016-05-27 16:15:41 +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
1863f5bd0c Enqueue restarting jobs for the Hub 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
Josh Kalderimis
bbba45990d a little method splitting action good times
and high 5 @carlad
2015-12-04 17:31:06 +01:00
carlad
82f280f5d3 convert timesptamps to i for better integration w customerio 2015-12-04 17:11:18 +01:00
Josh Kalderimis
8132258b2c tiny updates to how we update the customer io info
- alway fetch the primary email and don't save it to the user model as this may not match what is on github
- move some bits into their own methods
- high 5 @carlad for her awesome work
2015-12-04 17:06:22 +01:00
carlad
ff68df9fb5 fix syntax error 2015-12-04 16:13:52 +01:00
carlad
553700d402 add email to user 2015-12-04 16:10:44 +01:00
carlad
94c2edfbe1 remove debug messages and add rescues 2015-12-04 15:23:55 +01:00
carlad
13e6959b21 convert ahsh to string 2015-12-04 14:52:53 +01:00
carlad
d42e337996 convert timestamp to s 2015-12-04 13:14:14 +01:00
carlad
a638aee0ff bump core, add log output 2015-12-04 13:08:14 +01:00
carlad
a7fa8f6a6f update first_log_in 2015-12-04 12:53:51 +01:00
carlad
98080beeaf revert to json true 2015-12-03 16:47:26 +01:00
carlad
16817ff98e trying json false 2015-12-03 16:35:53 +01:00
carlad
28fde8333a remove json 2015-12-03 16:30:04 +01:00
carlad
a3e83659f7 tidy up customerio code 2015-12-03 15:57:14 +01:00
carlad
cc14ebac48 fix syntax error 2015-12-03 15:26:58 +01:00