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
Renée Hendricksen
48e4a2c589
use travis settings for encrypted columns
2016-07-14 17:47:17 -04:00
Renée Hendricksen
35ae19c3a0
Merge branch 'jc-v3-env-vars' into rlh_cleanup3
2016-07-12 17:08:10 -04:00
Renée Hendricksen
8cdbca925b
Merge branch 'master' into jc-v3-env-vars
2016-07-12 17:07:51 -04:00
Renée Hendricksen
2783a69f89
encrpted value and working tests
2016-07-12 14:12:46 -04:00
Piotr Sarnacki
14ea592cd7
Upload SSL Key to GitHub when activating private repository
2016-07-12 11:28:35 +02: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
Joe Corcoran
77dcdaa482
Use travis-settings to manage JSON settings field
...
Since we use repository.settings as a kind of dump for all
sorts of settings, some user-facing and some not, this lets us
leave the db as it is, but pretend to have separate models for each
"kind" of setting.
2016-07-01 23:55:49 -04:00
Ana Rosas
e097c8889e
Enqueue cancel message on build cancel v3 endpoint
2016-06-14 15:15:59 +02:00
Joe Corcoran
5fee54b91b
Fewer object allocations :)
2016-06-09 11:29:17 +02:00
Joe Corcoran
daf534edb7
Don't overwrite settings with defaults
...
Also changes the way the JSON fields are set to force ActiveRecord
to recognise the changes. Is there a better way?
2016-06-08 17:13:05 +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
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
Steffen
13aa741e57
Merge branch 'master' into cronjobs
2016-04-18 09:42:36 +02:00
carlad
00aaf32b1e
add branch_name for request
2016-04-15 17:22:41 +02:00
Steffen
7922ca8e84
Merge branch 'master' into cronjobs
2016-04-05 15:23:03 +02:00
Steffen Kötte
31f6b5793a
refactor cron model and create service
2016-04-04 10:27:06 +02:00
carlad
d1848ba6f9
make settings visible in repository
2016-03-30 12:30:26 +02:00
Steffen Kötte
c037ec7aa3
refactor planned time calculation into separate methods
2016-03-22 10:17:23 +01:00
Steffen Kötte
ac0012b0a2
Merge commit '8a050a468c77f2ad8c5faa99864c0bd7d61b08a0' into cronjobs
...
# Conflicts:
# Gemfile
2016-03-21 10:32:46 +01:00
Hiro Asari
ba142b84c7
Put debug options in debug_otions
...
This depends on https://github.com/travis-ci/travis-migrations/pull/7
2016-03-04 09:04:58 -10:00
Steffen Kötte
8a6f4066ae
refactor methods to calculate next build time
2016-02-01 17:08:11 +01:00
Steffen Kötte
d75daab82f
move cron start to query
2016-02-01 15:13:34 +01:00
Steffen Kötte
64478d50d1
rename next_build_time to next_enqueuing
2016-01-28 13:46:35 +01:00
Steffen Kötte
24b0af35e9
move start cronjob to services
2016-01-28 13:16:53 +01:00
Steffen Kötte
2d2e7aa528
fix job enqueueing
2016-01-21 13:11:18 +01:00
Steffen Kötte
4704992a18
remove token from perform_async call
2016-01-21 10:40:43 +01:00
Steffen Kötte
da33cff0eb
add more tests
...
add first version to start crons
adjust code to return now if cron is overdue
2016-01-18 16:59:10 +01:00
Steffen Kötte
00e15de083
show next build time for cron
2016-01-14 16:12:27 +01:00
Steffen Kötte
0920041375
further changes for new structure with only one cron per branch
2016-01-11 14:14:00 +01:00
Steffen Kötte
b45b3fadf7
changes for new db structure
2016-01-07 15:00:08 +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
2974dccd3b
Merge branch 'master' into cd-v3-parity
2015-11-25 18:18:56 +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
d3b13e8d7c
v3 fix relation of starred_repository to repostiory model
2015-11-24 18:15:17 +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
Piotr Sarnacki
81e11da856
Fix error when default branch tries to be autosaved
...
For some reason when branch from V2 models is being saved, it tries to
also update relationships for V3 models, at least in tests. This fails,
because default_branch association on the V3 Repository model has a
primary key set to [:id, :default_branch]. In theory we use composite
keys plugin, but it seems that it doesn't cover that case and because of
that AR fails with an error "[:id, :default_branch] is not a Symbol"
when it tries to call Model#send with primary_key as an argument.
This commit fixes the issue by overriding the send method on the
Repository model to not fail when AR does
repository.send([:id, :default_branch_name]), when it needs to fetch
a primary key.
This is hacky, but I haven't found a nicer way to get around it.
2015-11-24 15:09:58 +01:00
carlad
714e40beca
more initial work on star/unstar endpoints
2015-11-18 17:43:35 +01:00
carlad
c96e8e2ff1
initial work on star and unstar endpoints
2015-11-16 18:14:31 +01:00
Steffen Kötte
aca632ed15
use branch for storing cron
2015-11-16 14:24:11 +01:00
Steffen Kötte
0a91a69d0d
remove debug code
2015-11-09 16:59:10 +01:00
Lennard Wolf
a2a4737099
Fixed tests broken by cron
2015-11-09 14:03:30 +01:00
Lennard Wolf
772e797aae
add /cron/cron.id/ GET endpoint
2015-11-05 13:31:36 +01:00
Konstantin Haase
3904d9e362
Auto-merged master into rkh-active-broadcasts on deployment.
2015-10-13 13:42:48 +02:00
Konstantin Haase
d7c9a367e9
v3: branches - add default_branch (boolean) property
2015-10-08 18:44:40 +02:00
Konstantin Haase
0eb564388c
v3: broadcasts - filter inactive broadcasts
2015-10-08 18:43:22 +02:00
Konstantin Haase
e03f79513a
reinstate nginx, use it in development, add smare concurrency settings
2015-10-08 13:57:49 +02:00