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
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
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
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
carlad
3182513798
add sort_by default_branch builds.id
2016-03-11 14:39:28 +01:00
Konstantin Haase
afb6fe286b
v3: SQL "NOT IN ()" never matches
2015-11-26 18:17:19 +01:00
carlad
8d3acfe9bb
v3 fix existing specs for un/star endpoints and starred filter
2015-11-26 14:00:42 +01:00
carlad
937cc0267a
v3 fix filtering by unstarred and n+1 query
2015-11-25 16:30:42 +01:00
carlad
baa1881bf7
v3 change name of starred_repository to star
2015-11-24 18:59:16 +01:00
carlad
af3087446c
v3 adjust repo model, query and service for filtering by starred - not working
2015-11-24 18:03:15 +01:00
carlad
02f5035100
comment out
2015-11-24 12:31:50 +01:00
carlad
9793010e28
v3 add filter for d=starred repos - not working yet
2015-11-20 19:02:39 +01:00
carlad
fb483689e9
V3 start implementing filter for starred repos
2015-11-20 17:23:59 +01:00
Konstantin Haase
571af14067
v3: add pagination and sortability to repo endpoints
2015-10-13 17:34:31 +02:00
Sven Fuchs
426a4f3a69
ignore invalidated repos on the Repositories query
2015-07-14 14:35:56 +02:00
Konstantin Haase
59835c80f6
API v3: remove n+1 query from owner page endpoint
2015-05-05 16:43:52 +02:00
Konstantin Haase
61ae7e669e
v3: allow expanding build.commit
2015-04-30 17:08:52 +02:00
Konstantin Haase
075e2d1c6c
v3: avoid n+1 query for last_build on the default branch when loading a list of repositories
2015-04-28 22:08:27 +02:00
Konstantin Haase
d8f1075491
start working on repos by owner endpoint
2015-04-27 17:01:41 +02:00
Konstantin Haase
eb88cf6a2a
v3: avoid N+1 queries when eager loading repository relations
2015-03-10 15:59:04 +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
5f2dc47e07
no longer use models from travis-core in queries
2015-02-23 16:50:51 +01:00
Konstantin Haase
737a31ad23
v3: add /orgs endpoint, fixes travis-pro/api-v3#1
2015-01-27 15:50:21 +01:00
Konstantin Haase
2e4771ccd2
v3: move find repos logic to query object, allow filtering by private and active
2015-01-27 14:30:35 +01:00