carlad
c47e2dd4eb
Merge branch 'master' into jc-v3-logs
2016-08-08 11:42:28 +02:00
carlad
c8f94e90ed
add webmock, update spec
2016-08-05 16:31:53 +02:00
carlad
a7128fa1b3
add debug output
2016-08-05 15:33:30 +02:00
Renée Hendricksen
885ae009f4
fix the reported error on crons
2016-08-04 15:05:20 -04:00
carlad
85c9570b87
add renderers for logpart and logparts, update log query, fix specs
2016-08-04 19:47:17 +02:00
carlad
1691119142
update log find method, log db connection, add logs_db default config
2016-08-04 13:46:40 +02:00
carlad
cd12ba5402
remove method from model, add logic to query
2016-08-03 15:48:34 +02:00
carlad
7fc0f7fe78
add new method for log_part, add comments
2016-08-03 12:20:36 +02:00
Renée Hendricksen
8655579a94
clean up the debug output
2016-08-03 00:17:11 -04:00
Renée Hendricksen
779b6a569e
don't allow one error to stop all crons from running
2016-08-02 23:49:47 -04:00
Renée Hendricksen
abe7b13605
better output
2016-08-02 23:16:00 -04:00
Renée Hendricksen
0dc7e2743c
take intentional error out to see real errors
2016-08-02 22:56:13 -04:00
Renée Hendricksen
d42362eacc
looks like Raven isn't getting the reports because the dyno doesn't exist long enough for the http request to get out :(
2016-08-02 22:49:02 -04:00
Renée Hendricksen
1788e0c0fb
more output for the strange behavior on staging
2016-08-02 22:42:32 -04:00
Renée Hendricksen
20d4df8af3
test output for staging
2016-08-02 22:34:49 -04:00
Renée Hendricksen
6ca063cf3d
adding an error to see if I get it from Sentry
2016-08-02 21:26:04 -04:00
Renée Hendricksen
d0a143d76a
ensure that the Time.now builds get started and tag the Sentry errors from cron
2016-08-02 19:44:33 -04:00
carlad
a3d69bb65e
add log_part model in comments
2016-08-02 17:36:21 +02:00
carlad
8192a43396
uncomment some bits
2016-08-02 16:04:42 +02:00
carlad
9b7da3519a
establish connection to logs db, update result, update query
2016-08-02 16:02:52 +02:00
carlad
7cb4b89883
add s3 log search
2016-08-01 16:36:08 +02:00
carlad
b17a9b5572
update ruby syntax
2016-07-29 17:42:44 +02:00
carlad
8e71c4501d
first stab at log query
2016-07-29 17:02:07 +02:00
carlad
14866201ff
resolve conflict
2016-07-29 14:02:50 +02:00
carlad
aaaf699bcf
add comment
2016-07-29 13:51:24 +02:00
Ana Rosas
9b5893b07c
Remove old code references from v3 endpoints
2016-07-28 15:09:07 +02:00
carlad
beb3e6ca60
Merge branch 'jc-v3-logs' of github.com:travis-ci/travis-api into jc-v3-logs
2016-07-28 14:24:08 +02:00
carlad
72be42b88f
move capture_exception to correct method, update spec
2016-07-26 17:36:02 +02:00
carlad
c00cdbaff7
crons only
2016-07-25 19:30:45 +02:00
Joe Corcoran
316947b7c0
Add simplest log endpoint
...
Just an excuse to get all the boilerplate classes in place :)
2016-07-19 18:10:34 +02:00
Joe Corcoran
1a07e199b5
Better style in error handling
2016-07-01 23:55:49 -04:00
Joe Corcoran
871b915515
Add env vars endpoints
...
This adds API V3 endpoints for querying, creating, modifying and
deleting environment variables.
It has no concept of encryption yet and should be considered a work in
progress.
We should also talk about the slightly off-track approach in the
EnvVars::Create service – maybe there's a way to standardise the
querying and rendering for post requests?
☕
2016-07-01 23:55:49 -04:00
Ana Rosas
69f0a9d33e
Add enable_for_all? condition
2016-06-28 11:35:47 -07:00
Ana Rosas
bfb68bf931
Merge branch 'master' into ar-improve-feature-flag
2016-06-23 17:07:36 -05:00
Ana Rosas
69cc2eef7d
Check for repository owner instead of current user to validate feature flag
2016-06-23 15:15:31 -05:00
Piotr Sarnacki
32dd8d9f93
Mark current_build as experimental
2016-06-22 14:19:31 +02:00
Piotr Sarnacki
fcb0e7cde4
Rename current_build_id sort option to current_build
2016-06-22 14:19:31 +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
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