Piotr Sarnacki
d5038a4855
Fix allBuilds for ember-model
2013-08-25 14:54:55 +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
020bf12d90
Update ember.js
2013-08-25 14:37:05 +02:00
Piotr Sarnacki
d3ded51a16
Automatically redirect away from 'first_sync' after synced is finished
2013-08-25 14:13:46 +02:00
Piotr Sarnacki
d2ebf4cbcf
Remove indicator from first sync for now
2013-08-25 13:13:58 +02:00
Piotr Sarnacki
b6c2ee418a
Don't require sidebar controller
2013-08-22 16:05:08 +02:00
Piotr Sarnacki
d18cffd1a7
When observing all builds don't request them
...
We use `allBuilds` to observe new incoming builds, so we can put new
builds into the lists (for example when build is started). We use it for
observing purposes only, so we actually don't need to get builds from
the server, we can just register record array and use it later on.
2013-08-22 15:29:12 +02:00
Mathias Meyer
f479cac505
Add copy for the first sync page.
2013-08-21 15:18:06 +02:00
Piotr Sarnacki
766f4e8907
Properly handle job:canceled event
2013-08-13 01:09:02 +02:00
Piotr Sarnacki
c9e677fd86
Allow to cancel jobs after they're started
2013-08-12 17:35:12 +02:00
Piotr Sarnacki
8f91eee610
Display 0 instead of blank field if reposCount is null
2013-08-12 13:16:58 +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
Henrik Hodne
93e7b40346
Squash image size
2013-08-06 20:24:48 -07:00
Piotr Sarnacki
8c3e92faea
Merge branch 'master' into ui-improvements
...
Conflicts:
assets/scripts/app/controllers/repo.coffee
assets/scripts/app/templates/builds/show.hbs
assets/scripts/app/templates/jobs/show.hbs
2013-08-06 13:16:56 +02:00
Piotr Sarnacki
c92720f280
Fix displaying pull request number on builds' list
...
Commit sometimes does not have information about pull request (probably
when payload is coming from pusher).
2013-08-06 13:05:25 +02:00
alonisser
590bd87e38
Change height of status image popup to include all formats
...
Close #196 .
2013-08-05 15:48:14 -07: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
dcb2945092
Buffer pusher updates to RecordArrays until content is set
...
When collections are loading as ajax requests, we may still get pusher
updates, which will try to add records to these collections. In order to
make it work nicely, we should wait until Ajax request finishes (ie.
content of record array is set) and only then add objects from pusher
2013-08-05 13:12:38 +02:00
Piotr Sarnacki
33bce774a3
Add first_sync template
...
First sync will be displayed when user is logged in and first sync is
still taking place
2013-08-05 03:29:19 +02:00
Piotr Sarnacki
b40d0acf9c
Return empty array from userRepos when there is no user
2013-08-05 03:28:43 +02:00
Piotr Sarnacki
acf5d8e9be
Redirect to root after signin in on auth page
2013-08-05 03:27:47 +02:00
Piotr Sarnacki
003c6e7b01
Add unload method on model
2013-08-05 03:24:39 +02:00
Piotr Sarnacki
ce56c95b5f
Change styling for auth template
2013-08-05 03:24:39 +02:00
Piotr Sarnacki
c79725d0e9
Refactor sign in related templates, fix indicator in auth template
2013-08-05 03:24:33 +02:00
Piotr Sarnacki
d248fd11a6
Fix messages on empty repos list
2013-08-05 02:35:47 +02:00
Piotr Sarnacki
218a078164
Fix messages on empty repos list
2013-08-05 02:35:28 +02:00
Piotr Sarnacki
9170795639
Improve auth code in router by using new async stuff ( ❤️ @machty)
2013-08-03 20:48:59 +02:00
Piotr Sarnacki
d9d833d1b4
No need to prefetch repos in recentRepos
...
Repo#withLastBuilds already does a fetch, so this is redundant
2013-08-03 15:11:23 +02:00
Piotr Sarnacki
b2f543f3a2
Don't require sidebar and running jobs, it's not used anyway
2013-08-03 15:10:55 +02:00
Piotr Sarnacki
66ed172888
Refactor the way we insert new records with pusher
...
Previousy I was using find to ensure that the record is materialized,
but the new version is much lighter - it uses Model#load to load the
record directly
2013-08-03 15:09:18 +02:00
Piotr Sarnacki
9cb84f78ee
Update travis-web-log to use setImmediate.js
...
Currently travis-web-log uses setTimeout which makes long logs rendering
much slower than it should be.
2013-08-03 15:07:48 +02:00
Piotr Sarnacki
dd525dd1d2
Update ember-model
2013-08-03 15:07:14 +02:00
Piotr Sarnacki
17d5212d86
Bring back deferReadiness(), it was accidentally removed
2013-07-31 16:18:54 +02:00
Piotr Sarnacki
53951c3691
Don't reload user repositories each time my repos tab is clicked
2013-07-31 16:18:37 +02:00
Piotr Sarnacki
07d2d1ff2a
Check if record is in a record array before adding it
2013-07-31 15:06:06 +02:00
Piotr Sarnacki
27da51fcc1
Don't update entire filtered array when adding record
2013-07-31 14:57:08 +02:00
Piotr Sarnacki
42470fd416
Wrap updateTimes in Ember.run
2013-07-31 13:59:03 +02:00
Piotr Sarnacki
fb41820917
Remove ticker require
2013-07-31 13:57:49 +02:00
Piotr Sarnacki
549efc8046
Add resetData, unload and removeFromCache to Travis.Model
2013-07-31 13:56:19 +02:00
Piotr Sarnacki
647863ca59
Remove require 'store', add require 'adapter'
2013-07-31 13:55:39 +02:00
Piotr Sarnacki
96066709b4
Simplify permissions CP code
2013-07-31 13:55:04 +02:00
Piotr Sarnacki
50e533b116
Log router transitions
2013-07-31 13:54:39 +02:00
Piotr Sarnacki
0ac5b6855e
Use isPullRequest instead of eventType
2013-07-31 13:54:02 +02:00
Piotr Sarnacki
e8809727bf
Ticker is no longer used
2013-07-31 13:52:51 +02:00
Piotr Sarnacki
1951752f47
Wrap ajax callbacks in Ember.run
2013-07-31 13:52:08 +02:00
Piotr Sarnacki
c0cb223aeb
Update Travis.Model to work with Ember Model
2013-07-31 13:51:28 +02:00
Piotr Sarnacki
ccfd116f08
Use Handlebars.helper instead of registerBoundHelper
2013-07-31 13:49:46 +02:00
Piotr Sarnacki
f271622758
Update ExpandableRecordArray to work correctly with Ember Model
2013-07-31 13:49:15 +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
8082d3a6d3
Update loading user to EmberModel's version
2013-07-31 13:45:52 +02:00