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
Jonas Chromik
ca82725e5e
move cron jobs feature flag to permissions
2016-03-22 13:48:51 +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
carlad
086932df11
v3 merge with master to fix default_branch spec error, fix services/repository spec
2015-11-25 19:17:33 +01:00
carlad
c2168d62f1
v3 update specs to accomodate starred, unstar and star
2015-11-25 18:08:53 +01:00
Lennard Wolf
a2a4737099
Fixed tests broken by cron
2015-11-09 14:03:30 +01:00
Konstantin Haase
4cc50009aa
v3: remove repository.last_build
2015-10-08 19:01:03 +02:00
Konstantin Haase
860edf37bf
v3: fix specs
2015-10-08 18:45:26 +02:00
carlad
211637e247
v3 make specs use v3 models, update representations of build and job, make some indentation pretty
2015-09-02 16:21:41 +02:00
carlad
210f368de4
v3 update all relevant specs with job_ids payload
2015-08-27 14:36:11 +02:00
carlad
720d8aa284
add @representation attribute to payload and update specs
2015-08-25 17:21:02 +02:00
Piotr Sarnacki
bff7f76c33
v3: Implement fetching repository by slug
2015-05-21 12:29:04 +02:00
Konstantin Haase
2f19ba3357
API v3: don't load all builds when eagerloading repository.last_build
2015-05-05 17:01:03 +02:00
Konstantin Haase
fb8e6825db
v3: expose build.previous_state
2015-04-30 16:25:14 +02:00
Konstantin Haase
ae7de12bec
v3: add build.event_type
2015-04-30 16:17:55 +02:00
Konstantin Haase
2b0ae177fa
v3: expose repo access permissions in payload
2015-04-29 11:31:05 +02:00
Konstantin Haase
ae31a57541
v3: add @href to denormalized repository.owner
2015-04-28 18:14:36 +02:00
Konstantin Haase
a3a9f1282a
v3: add ?include=, detect circular dependencies in renderer
2015-03-09 16:56:02 +01:00
Konstantin Haase
7c6dc9a54c
v3: full request create implementation and specs
2015-03-04 18:35:25 +01:00
Konstantin Haase
c968bbaab1
v3: use branches table for default_branch, eager load on /repos endpoint to avoid N+1 queries
2015-02-23 22:54:28 +01:00
Konstantin Haase
515b815069
v3: properly expose default_branch and last build for that branch in repo payload
2015-02-18 14:14:39 +01:00
Konstantin Haase
7fce1b93f3
v3: add /build/:id endpoint
2015-02-18 13:47:04 +01:00
Konstantin Haase
c2f087ea8d
fix after hook in spec
2015-02-18 13:38:29 +01:00
Konstantin Haase
32c2d9b0b9
v3: add @href to payloads
2015-02-17 15:48:12 +01:00
Konstantin Haase
3567a759c2
v3: initial stab at request creation api
2015-02-11 10:05:08 +01:00