Commit Graph

62 Commits

Author SHA1 Message Date
Sven Fuchs
7315efed5f remove extra comma 2014-10-14 15:29:12 +02:00
Sven Fuchs
fa8a00194a remove stale prefix 2014-10-13 15:00:04 +02:00
Sven Fuchs
5130726389 restore CHANNEL_PREFIX, but check if it is already present 2014-10-13 14:59:31 +02:00
Sven Fuchs
1951784c28 add private attribute to repo, prefix job channels based on the private status, otherwise use what api hands over 2014-10-13 14:59:25 +02:00
Piotr Sarnacki
4fc599f767 Revert dd46161 and 2ccade4
Duration on job was not specified, beacuse we actually don't return
duration from the API, it's always calculated based on startedAt and
finishedAt, that's why it's obsolete. It doesn't hurt to have it defined
on the Job model, but there's no need to do it.
2014-08-15 06:05:04 +02:00
Piotr Sarnacki
dd46161487 Duration is not returned before build is finished 2014-08-14 22:47:56 +02:00
Piotr Sarnacki
2ccade46a4 Fix some of the issues with duration sometimes not showing up
* duration was not actually defined in Travis.Job, which may have caused
  bugs when combined with partial record loading (so for example it was
  ok on a refresh, but may have been broken on update)
* notStarted was not a dependency of duration
2014-08-14 22:39:49 +02:00
Piotr Sarnacki
2677f3f613 Fix specs 2014-07-15 13:23:01 +02:00
Piotr Sarnacki
412baaa79c Specify proper dependencies in job's and build's properties 2014-06-26 18:01:34 +02:00
Piotr Sarnacki
6cb866408d Don't return finishedAt, startedAt, duration for not started jobs/builds 2014-06-20 16:05:45 +02:00
Henrik Hodne
1b7aba494a
fix(models): update the endpoint used to restart jobs and builds
/requests is deprecated
2014-01-30 17:19:15 -06:00
Hiro Asari
9e2a8cb218 Merge branch 'master' into hh-annotations
Conflicts:
	assets/scripts/app/controllers/job.coffee
	assets/scripts/app/models/job.coffee
2014-01-24 10:18:58 -05:00
Piotr Sarnacki
9c7606ff96 Don't try to format date if it does not exist 2013-10-01 14:29:55 +02:00
Piotr Sarnacki
4bb331686c Fix finishedAt tooltips and show dates in local time zone 2013-10-01 11:25:40 +02:00
Piotr Sarnacki
fc77800f8e Build.number and Job.number should be treated as strings 2013-09-16 18:53:14 +02:00
Piotr Sarnacki
18ba86eca0 Remove stuff not used in travis-web anymore 2013-08-28 14:17:26 +02:00
Piotr Sarnacki
34ae33f087 Fix filtering for queue and running jobs 2013-08-27 23:26:08 +02:00
Piotr Sarnacki
eb35a0e1c6 Merge branch 'master' into ui-improvements
Conflicts:
	assets/scripts/app/controllers.coffee
2013-08-25 14:46:03 +02:00
Piotr Sarnacki
c9e677fd86 Allow to cancel jobs after they're started 2013-08-12 17:35:12 +02:00
Piotr Sarnacki
0217b20943 Implement missing pieces for cancel build
We allow to cancel only created builds at this point.
2013-08-09 23:06:19 +02:00
Piotr Sarnacki
d94816ec8f Remove unneeded code
This piece of code was used in order to load repos associated to jobs
when the latter were loaded from pusher. This was needed because jobs
events do not have repository record passed in pusher payload, so when
job was added with pusher and link to the job was displayed in "Running
Jobs" or in workers on right sidebar, Ember was loading missing repos.
We don't need this code anymore as there is no right sidebar.

Additionally after changes in Ember.js, it's possible to pass primitives
to linkTo. Previously the link to record needed to be constructed as
following:

    {{#linkTo "job" job.repo job}}Link to repo{{/linkTo}}

The drawback of such code is that repo would have been instantiated in
such case. Now, we can do something like this:

    {{#linkTo "job" job.repositorySlug job}}Link to repo{{/linkTo}}

so as long as we have information about repository slug in the job data,
such hacks are not be needed.
2013-08-05 13:14:58 +02:00
Piotr Sarnacki
c0cb223aeb Update Travis.Model to work with Ember Model 2013-07-31 13:51:28 +02:00
Piotr Sarnacki
f92c592f2d Add pusher receive related stuff to App (previously it was in store) 2013-07-31 13:47:55 +02:00
Piotr Sarnacki
da9a34f06c Change ED's filter() calls to FilteredArrays 2013-07-31 13:42:06 +02:00
Piotr Sarnacki
823c8441be Change EmberData properties/relationships into EmberModel versions
DS.attr -> Ember.attr
DS.belongsTo -> Ember.belongsTo
DS.hasMany -> Ember.hasMany
2013-07-31 13:29:55 +02:00
Henrik Hodne
1b8ec432dc Initial annotation support 2013-07-10 17:49:47 -07:00
Piotr Sarnacki
985e218981 Fix odd behavior on running jobs list and on queued jobs list
In order to not load too many repositories when not needed I was using
construct of repoData on Job and Worker models. repoData was a simple
object with id and slug attributes, which was used to generate url for a
repo. That way I didn't have to instantiate Repo object for generating
urls. The problem is that our API does not return repositorySlug along
with Job record, so the value of repositorySlug was overwritten and in
consequence repoData was becoming empty.

I could change the API, but I feel that the whole repoData concept is
flawed. A bit better solution is to load incomplete repository data into
the store (just an id and a slug) and then instantiate repo record - as
long as it will not need to provide other fields than an id and a slug,
we will not have to do an ajax request.
2013-05-15 17:23:53 +02:00
Mathias Meyer
61c0f5179d Add Blue Box as the default sponsor of a test run. 2013-05-10 23:19:07 +02:00
Piotr Sarnacki
c7561ee13e Properly display matrix keys when build does not have all keys
When additional items are included into matrix via 'matrix.include' key
in .travis.yml they may contain config keys, which are not available on
build.

For example build can contain only 'rvm' key, but we may add the
following include:

    matrix:
      include:
        - rvm: '2.0.0'
          env: 'FOO=bar'

In such case, we need to take into account also keys from additional
job, not only from the build.

(closes #172)
2013-04-06 01:48:32 +02:00
Piotr Sarnacki
d5bfa092b0 Don't setup pusher if we don't have key
That way we don't need to even fire anything pusher related when running
tests
2013-03-27 20:06:09 +01:00
Piotr Sarnacki
bca00d78f6 We don't even need to check repo.slug, repoSlug, should be always available 2013-03-14 16:00:41 +01:00
Piotr Sarnacki
a726f5a730 Typo 2013-03-14 15:58:03 +01:00
Piotr Sarnacki
181ecd227a Don't access repo object when it's not needed to not send ajax requests 2013-03-14 15:55:18 +01:00
Piotr Sarnacki
b1edd8e510 Bring back log engine from master 2013-03-12 22:52:39 +01:00
Piotr Sarnacki
1408276609 Changes for ember-data revision 12
Sideload changed a way of loading records associated with the main
record. Now, to make it simple, sideloaded records must be always in
plural form.
2013-03-08 17:04:44 +01:00
Sven Fuchs
8a2ba379aa unsubscribe from log channels 2013-03-05 17:14:00 +01:00
Piotr Sarnacki
1f3f0559bc Fix build and job configs 2013-02-26 08:57:03 +01:00
Piotr Sarnacki
e96abff0e6 Hack for one to many relationship changes 2013-02-26 04:36:47 +01:00
Piotr Sarnacki
553495c56c Add @svenfuchs' log reimplementation 2013-02-22 17:00:50 +01:00
Piotr Sarnacki
50a69cccad Don't do request to get repos every time home page is reloaded 2013-02-21 23:22:53 +01:00
Piotr Sarnacki
a3f8e0ff7d Add missing mappings to adapter 2013-02-21 23:22:51 +01:00
Piotr Sarnacki
f0e95ddd3f Main view mostly works on new router 2013-02-21 23:22:51 +01:00
Piotr Sarnacki
ad6f9e59c7 Display running jobs 2013-02-07 13:20:41 +01:00
Piotr Sarnacki
5fbf153ed9 Use /jobs/:id/log.txt endpoint for fetching logs 2013-01-27 02:46:18 +01:00
Piotr Sarnacki
5b0b7d7002 Fix isAttributeLoaded checks
We can't check 'isFinished' when model is asked for
isAttributeLoaded('state'). In such situation, it will go to isFinished
and call @get('state'), which will trigger isAttributeLoaded('state')
again.
2012-12-10 14:26:44 +01:00
Sven Fuchs
d005f241ba fix things after rebase 2012-12-09 15:16:27 +01:00
Sven Fuchs
395918a406 use states instead of result 2012-12-09 15:16:27 +01:00
Sven Fuchs
f6975e5b02 add cancel menu items 2012-12-09 15:16:27 +01:00
Sven Fuchs
038b6b0572 clear log on job:requeued hax 2012-12-01 16:36:55 +01:00
Sven Fuchs
808e341227 split requeueBuild vs requeueJob 2012-12-01 03:13:17 +01:00