Piotr Sarnacki
92616251bb
Revert "Update code for newest ember-model"
...
This reverts commit 1594130ff3
.
2013-09-06 22:14:06 +02:00
Piotr Sarnacki
7c161069f5
Fix problems with transitioning to job
2013-09-06 22:04:25 +02:00
Piotr Sarnacki
1594130ff3
Update code for newest ember-model
2013-09-06 19:37:06 +02:00
Piotr Sarnacki
408cce2d4f
Update ember and ember-model
2013-09-06 19:36:34 +02:00
Piotr Sarnacki
12aaeeef2d
Add records to record arrays in a runloop
...
When adding records just after loading them, the elements in the UI
might have to be updated, which may trigger `get` on associations right
away. As an effect, even if we load a few records on an event (like
repository on build:started event), ember model may end up fetching the
record.
This commit fixes such occurrences by adding record to record arrays in
a run loop, so newly created records will be added at once, after the
event was served.
2013-09-04 21:20:10 +02:00
Mathias Meyer
f4acc21d06
WIP: Code Climate UI integration.
2013-09-03 14:26:02 +02:00
Piotr Sarnacki
4b7f9bb14a
Delegate CurrentUserController#updateLocale to user instance
2013-09-01 14:22:48 +02:00
Lukasz Sarnacki
226c5bb42b
More github references replaced with links
...
Github links will be created for following references:
* @username
* gh-1 (for issue #1 )
2013-09-01 13:43:21 +02:00
Lukasz Sarnacki
4ab6a90b66
Simplified code in github refference linking
2013-09-01 13:36:33 +02:00
Lukasz Sarnacki
44c7c627fb
Replace github refference with link travis-ci/travis-ci#1266
...
Github issue refference is now replaced with github issue url.
This covers following refferences:
* #Num
* User#Num
* User/Project#Num
2013-09-01 13:36:24 +02:00
Piotr Sarnacki
072a5de579
Show first_sync page after routerTransitions
...
This code ensures that we send an event after router is fully
initialized, otherwise it could cause an error.
2013-08-29 16:33:09 +02:00
Piotr Sarnacki
2c5071bbba
Update travis-web-log
2013-08-29 04:05:10 +02:00
Piotr Sarnacki
14d0596249
Update travis-web-log
2013-08-29 03:36:01 +02:00
Piotr Sarnacki
30d273a648
Fix specs
2013-08-29 01:19:35 +02:00
Piotr Sarnacki
27929faf6f
Don't render sidebar
2013-08-29 01:15:57 +02:00
Piotr Sarnacki
f82707b832
Always run deferReadiness()
2013-08-29 01:15:46 +02:00
Piotr Sarnacki
358b7cc0c0
Don't add records to expandable array if they're already there
2013-08-29 01:01:28 +02:00
Piotr Sarnacki
fb120af69e
Use pullRequestNumber from build, not from commit
2013-08-29 01:01:03 +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
08d17fdf2b
Check also for superclass of Travis.AuthRoute
...
Ember.js creates subclasses of given class in container, so we need to
check also superclass
2013-08-27 18:23:17 +02:00
Piotr Sarnacki
b56fa7b9df
Fix getting hooks on profile page
...
Hooks were sometimes not loaded, because user property on
ProfileController was not available. This commit tries one additional
way to get a login - Travis.lookup with controller:currentUser.
2013-08-27 16:11:56 +02:00
Piotr Sarnacki
c0397ae5d4
Fix rendering on firefox
...
Rendering on firefox was broken due to the difference in time when DOM
loads - without deferReadiness it was sometimes failing to add
ember-application element to body
2013-08-27 15:55:29 +02:00
Mathias Meyer
da7cb6f4b0
Add githubLanguage as repository property.
2013-08-27 15:30:42 +02:00
Piotr Sarnacki
33861717ee
Update travis-web-log
2013-08-27 10:37:34 +02:00
Piotr Sarnacki
7be461758c
Fix specs
2013-08-26 17:01:27 +02:00
Mathias Meyer
04545cc066
Add synchronization spinner.
2013-08-26 12:55:11 +02:00
Mathias Meyer
581f9f6858
Include a mustached spinner.
2013-08-26 12:47:35 +02:00
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
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
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
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
Piotr Sarnacki
8daf5b857a
Don't fail if user signs out before router is set up
2013-07-31 13:45:23 +02:00
Piotr Sarnacki
ded00e0182
unloadRecord -> unload
2013-07-31 13:44:56 +02:00
Piotr Sarnacki
92da0c8034
Simplify build/job and tools templates
2013-07-31 13:43:06 +02:00
Piotr Sarnacki
da9a34f06c
Change ED's filter() calls to FilteredArrays
2013-07-31 13:42:06 +02:00
Piotr Sarnacki
9093b2a311
Remove tick from sidebar controller
2013-07-31 13:39:18 +02:00
Piotr Sarnacki
af3f865854
Make routes code more async capable when setting job
...
After changing Ember Data to Ember Model, the default behavior is to
not return promise by default from `find` call. This is better in
general for our use case, because we don't block rendering the UI while
data loads, but we now have to handle cases where model is not yet
loaded in `setupController`
2013-07-31 13:35:47 +02:00
Piotr Sarnacki
373c7f706f
Get rid of hacks from routes
2013-07-31 13:32:23 +02:00
Piotr Sarnacki
670f38542a
Use model.save() for saving records
...
Also, there is no need to use transactions anymore
2013-07-31 13:29:55 +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
Piotr Sarnacki
4d74491401
Remove unused code
2013-07-31 13:29:55 +02:00
Piotr Sarnacki
7fb090fe99
Update ember-model and ember.js
2013-07-31 13:29:54 +02:00
Piotr Sarnacki
359c97cad0
Rewrite specs from jasmine to qunit
2013-07-31 13:29:45 +02:00
Piotr Sarnacki
5fea9d1d7b
Change spec runner to qunit
...
New ember-testing additions can be plugged into qunit without any
changes, so the easiest way to start using it is to rewrite our tests to
qunit.
2013-07-30 17:12:58 +02:00
Piotr Sarnacki
c194c775b9
Merge pull request #195 from floydpink/show-more-button
...
Show loading indicator on 'Show More' click
2013-07-29 18:18:43 -07:00
Piotr Sarnacki
f54054de72
Merge pull request #194 from floydpink/build-job-page-fixes
...
Fix a couple of metadata items on build and job tabs
2013-07-29 17:17:41 -07:00
Floyd Pink
fd98847863
show loading indicator on show-more button click
2013-07-27 16:11:12 -04:00
alonisser
4bc4d10e7d
Add Rst status image format
...
Close #192 .
2013-07-26 23:55:12 -07:00
Floyd Pink
d12bb1e8e4
a) author/committer emails on build page and b) PR on job page
2013-07-26 17:34:03 -04:00
Piotr Sarnacki
76af32013b
Fix updating times on repo page
2013-07-23 17:13:29 +02:00
Piotr Sarnacki
831540af88
Fix link to PR on build/job page
2013-07-17 17:48:56 +02:00
Piotr Sarnacki
74dc2bc339
Reset parts when fetching log
2013-07-16 00:29:45 +02:00
Piotr Sarnacki
8d0d990825
Remove DS.Store
2013-07-09 15:38:09 +02:00
Piotr Sarnacki
d1413516eb
Use double qoutes for a route name in action and linkTo
2013-07-09 13:49:59 +02:00
Piotr Sarnacki
7350d37e91
Remove ember-data, add Ember model, update ember
2013-07-09 13:46:50 +02:00
Piotr Sarnacki
e343161017
Update travis-web-log
2013-06-26 18:54:50 +02:00