Commit Graph

149 Commits

Author SHA1 Message Date
Sven Fuchs
3a7850cd02 abstract out styles for menu from profile 2012-11-12 12:12:57 +01:00
Piotr Sarnacki
a039da5dd1 Fix showMore
We use ArrayProxy with SortableMixin as container for builds, so
it needs to proxy load method to expandable record array.

closes #49
2012-11-10 16:34:01 +01:00
Piotr Sarnacki
630de8efc3 We should display travis token, not github one in profile 2012-11-10 15:47:34 +01:00
Sven Fuchs
d94b001e81 restore isLoaded for repos controller 2012-11-10 04:21:49 +01:00
Piotr Sarnacki
d19d5003d0 Don't error out when the only response is result: true 2012-11-08 03:37:22 +01:00
Piotr Sarnacki
3b3de51017 Enable js testing on travis 2012-11-07 17:54:29 +01:00
Piotr Sarnacki
14b5d4c9b9 Fix specs 2012-11-07 17:01:36 +01:00
Piotr Sarnacki
cc1df67272 We don't need to check isComplete now
We load records based on the tries to load attributes that are not
loaded yet, so isComplete is obsolete now.
2012-11-06 20:30:38 +01:00
Piotr Sarnacki
b164e5f1a8 Load commit from build:started event payload
Commit fields come in with build:started payload. We should split it
into 2 separate keys in the payload, like:

    {
      build:  { .... },
      commit: { .... }
    }

but I can't change pusher v1 API at the moment, due to backwards
compatibility with the old client. We will be able to remove this manual
extraction as soon as we switch to pusher v2 API.
2012-11-06 14:34:18 +01:00
Piotr Sarnacki
380f89435b startedAt attribute for job is not needed in created state 2012-11-06 14:30:46 +01:00
Piotr Sarnacki
6a1bc67fa7 Remove console.log 2012-11-06 12:06:51 +01:00
Piotr Sarnacki
b66e5a9bb3 Fix missing commit in UI on job:started event 2012-11-06 12:06:09 +01:00
Piotr Sarnacki
49f1c74a12 Extend message on loaded models and fix undefined ke problem 2012-11-06 11:47:12 +01:00
Piotr Sarnacki
a91657c128 We don't keep duration for jobs
We always just return finished at and started at for jobs, so just let
travis always calculate duration from those fields.
2012-11-06 11:45:33 +01:00
Piotr Sarnacki
90474edd8b Pass repo instead of slug in showJob
The old version saves us some requets, but is harder to maintain, also
repos in workers should now be sideloaded from pusher payload.
2012-11-05 22:35:01 +01:00
Piotr Sarnacki
eebbe6f77b Sort builds on builds/PRs/branches tabs 2012-11-04 15:56:28 +01:00
Piotr Sarnacki
dff93c93fe Don't require some of the attributes for incomplete records
When build or job is not finished, we don't need to load the record
because of them, they will be loaded when 'finished' events come in.
2012-10-31 16:10:42 +01:00
Piotr Sarnacki
eef8e55cfe Check if key is defined in incomplete checks 2012-10-31 14:56:17 +01:00
Piotr Sarnacki
baa95d590d Check if data is an object
I couldn't reproduce it locally, but I got this exception once. This
implementation will need to be rewritten after upgrading to newest
ember, so I'll leave it as it is for now.
2012-10-31 00:48:46 +01:00
Piotr Sarnacki
e897008a2d Remove events tab for now 2012-10-31 00:48:46 +01:00
Piotr Sarnacki
6bf5bd3356 Needed to move part of incomplete impl. to store
When using get with path (eg. get('foo.bar.baz')), get method is called
only on the current object and computed property will be called. Because
there is no easy way to overwrite the computed property, I moved
incomplete record loading to ember-data. It's not DRY and it should be
rewritten, but I don't want to do it at this point as we will need to
completely rewrite it when upgrading ember-data.
2012-10-31 00:46:13 +01:00
Piotr Sarnacki
73055be147 Merge branch 'deployment-plus-plus'
Conflicts:
	assets/scripts/lib/travis/expandable_record_array.coffee
	public/scripts/app.js
	public/scripts/min/app.js
	public/styles/app.css
	public/version
2012-10-30 02:25:02 +01:00
Piotr Sarnacki
be2a1cf8a3 Use isComplete on build page to not show incomplete record 2012-10-30 02:23:41 +01:00
Piotr Sarnacki
d1ab28abcc Remove console.log entry 2012-10-30 02:23:41 +01:00
Piotr Sarnacki
5ae7e1d046 Check also associations for incomplete records 2012-10-28 23:43:17 +01:00
Piotr Sarnacki
4c1c4586fa Handle case where key on data needs Ember.set
I'm not really sure what cauese a field to be defined as such setter,
but it sometimes happens.
2012-10-28 23:43:17 +01:00
Piotr Sarnacki
fee6fc6cad payload.job.id is not always present in worker:updated event 2012-10-28 23:43:16 +01:00
Piotr Sarnacki
d3d7f6b83c Don't add repository on worker events if it already exists
It's best to do that, because worker payload is usually outdated. If
there is no info on repo yet, it's worth to add it, but if it already
exists, we will most likely end up with inconsistent situation.
2012-10-28 23:43:16 +01:00
Piotr Sarnacki
987185be54 Fix build link when updating builds through pusher 2012-10-28 23:43:16 +01:00
Piotr Sarnacki
3f0babcf55 Fix adding builds to a build list on pusher event 2012-10-28 23:43:15 +01:00
Piotr Sarnacki
6b40f127a1 Check also associations for incomplete records 2012-10-27 04:45:57 +02:00
Piotr Sarnacki
a8e85dc714 Handle case where key on data needs Ember.set
I'm not really sure what cauese a field to be defined as such setter,
but it sometimes happens.
2012-10-27 03:50:16 +02:00
Piotr Sarnacki
63e2a9add6 payload.job.id is not always present in worker:updated event 2012-10-27 03:43:01 +02:00
Piotr Sarnacki
40ef7107f4 Don't add repository on worker events if it already exists
It's best to do that, because worker payload is usually outdated. If
there is no info on repo yet, it's worth to add it, but if it already
exists, we will most likely end up with inconsistent situation.
2012-10-27 03:11:15 +02:00
Piotr Sarnacki
94bff24f2c Fix build link when updating builds through pusher 2012-10-27 00:50:34 +02:00
Piotr Sarnacki
5eb3ab3b01 Fix adding builds to a build list on pusher event 2012-10-26 22:35:10 +02:00
Piotr Sarnacki
a7faec7479 Make sure that repo.slug is loaded for queue urls 2012-10-24 22:37:24 +02:00
Piotr Sarnacki
231f3b8723 Load worker related records from pusher payload 2012-10-24 11:28:01 +02:00
Konstantin Haase
a1fb0ff2be bump up auth timeout 2012-10-23 21:25:22 +02:00
Piotr Sarnacki
f64d488973 Set locale to 'en' by default 2012-10-23 03:33:39 +02:00
Piotr Sarnacki
a63ac52458 Remove layout views, just change template on application 2012-10-23 01:40:05 +02:00
Piotr Sarnacki
939212302a Fix loading page with #L<line-number>
Ember changed a way HistoryLocation works and it no longer calls
getURL(). I'm monkey patching it, but I will submit a pull request to
fix it.
2012-10-22 21:45:43 +02:00
Piotr Sarnacki
349a4d104e Fix scrolling issues for 'Follow logs' 2012-10-22 21:30:26 +02:00
Piotr Sarnacki
72f14fb594 Do not trigger unnecessary reloads when locale *could* have changed 2012-10-22 21:29:51 +02:00
Piotr Sarnacki
3fdd2d50ab Get back to old version of log number scrolling 2012-10-22 21:29:14 +02:00
Piotr Sarnacki
c02f4d860b Fix errors with reload 2012-10-22 19:54:53 +02:00
Piotr Sarnacki
300ad58516 Fix incomplete implementation
While testing in the wild I spotted a few problems with it:

* it didn't work for camel case names.
* it was sometimes setting loaded data too late - it needed to use find
  and then save data on the record. Instead it should save data in
  special array saved on store, indexed by clientId
* there is already method to get attributes in ember-data, it just
  doesn't work with Travis.Foo.get('attributes'), it needs
  Ember.get(Travis.Foo, 'attributes') - it makes implementation much
  shorter
2012-10-22 02:54:48 +02:00
Piotr Sarnacki
6cfddfd882 Change log.isLoaded to view.job.log.isLoaded
For some weird reason Ember errors out when it's called directly on
context (which is job in this place).
2012-10-21 20:48:24 +02:00
Piotr Sarnacki
6513d5c675 Update ember.js 2012-10-21 18:53:52 +02:00
Piotr Sarnacki
60740a8d3d Remove router hacks
I've implemented things that we need into Ember. We're running from my
fork for now, ideally those changes will be merged into official repo.
2012-10-20 16:36:53 +02:00