Piotr Sarnacki
aaf35365b1
Don't process pusher events immediately when running in background
...
When user has Travis CI's web page open in the background we should not
process pusher events immediately, because she will not see the changes
on a page anyway. During peak hours we can get several messages per
second, which requires some CPU work almost all the time. By using
visibility API we can detect if the tab with Travis CI is in the
background and if that's the case we will process pusher messages in
batches every 5 minutes. This is much better for the CPU, because it
means one bigger spike every few minutes and additionally some of the
updates don't have to be done (for example if we get several job:started
events, Ember's run loop will process only last one when it comes to
rendering 'current' build).
2013-05-29 16:54:12 +03:00
Piotr Sarnacki
8004766cfe
Don't set sortProperties to null
...
Sorting could be triggered on controller and then when tab would be
switched, nullified sortProperties can result in an error.
2013-05-29 13:51:21 +03:00
Piotr Sarnacki
05859a5a3c
Use visibility.js to run timer updates
...
Visibility.js provides a thin wrapper over page visibility API, which
allows to detect if page is currently visible by user. This allows us to
stop live updates when it's not needed. This is especially easy in case
of timers, because Visibility.js provides setInterval replacement, which
runs given code only when page is visible.
A lot of ❤️ for @tchack, who showed me visibility.js!
2013-05-29 13:42:51 +03:00
Piotr Sarnacki
4288e79044
Change Ember.run.later to setTimeout in periodic actions
...
It seems that running Ember.run.later periodically can cause CPU usage
to increase over time. Such increase adds up to already increasing CPU
usage because of data amount growing.
This commit tries to mitigate the issue by using setTimeout instead
2013-05-29 11:17:58 +03:00
Mathias Meyer
b761536d80
Add newsletter link to "Community" menu.
2013-05-24 16:19:31 +02:00
Henrik Hodne
e659659861
Download 2x images from Gravatar
...
This will make them look nicer on Retina screens. We may want to make
them even bigger if people are increasing the size of the page on
Travis, but doing that causes all kinds of alignment issues, so it's not
necessary to do now, I think.
2013-05-22 13:09:24 +02:00
Piotr Sarnacki
22c1710e14
Update user data after sign in
2013-05-21 19:30:19 +02:00
Piotr Sarnacki
dd33378c47
Show repo on repos list even if it's not complete, but has lastBuildId
2013-05-21 14:59:32 +02:00
Mathias Meyer
7831fbc70b
Move join links from sidebar into the top menu.
2013-05-20 15:56:13 +02:00
Mathias Meyer
be432528d8
Disable stats menu item for now.
...
Until a proper stats page is back, that is.
2013-05-17 07:54:27 +02:00
Henrik Hodne
e1877e13e7
Fix typo, commiter -> committer
2013-05-16 22:27:03 +02:00
Piotr Sarnacki
d0f7c75795
Remove sidebar elements, which need to query API
...
This reverts commit b6e89073dc
.
2013-05-16 13:55:18 +02:00
Piotr Sarnacki
a4fccf800a
Don't use id for flash view
...
When logging out and then logging back in, there is sometimes an error
when registering flash view, which says that it can't register 2 views
with the same id. We don't need to use id here, so I just changed id to
class
2013-05-16 13:33:07 +02:00
Piotr Sarnacki
d8b96a960d
Always send afterSignIn event
2013-05-16 13:16:53 +02:00
Piotr Sarnacki
90ffeaf085
Allow to override sign in and sign out callbacks on routes
2013-05-16 12:46:58 +02:00
Piotr Sarnacki
eb065a0eee
Sort owned repositories
2013-05-16 02:10:10 +02:00
Piotr Sarnacki
b432a39fb4
Don't try to connect outlet if current view is desteoyed
2013-05-16 01:56:05 +02:00
Piotr Sarnacki
563c1f8773
destroyed -> isDestroyed
2013-05-16 01:51:57 +02:00
Piotr Sarnacki
685cf1074f
Initialize _outlets if it's null
2013-05-16 01:48:06 +02:00
Piotr Sarnacki
ebb5f17058
Fix tests with new Ember version
2013-05-15 18:46:41 +02:00
Piotr Sarnacki
e21bee6494
Make sure that commit data is always fresh by using #with
...
Commit data in job and build view is sometimes unbound, make sure it's
refreshed when commit does change.
2013-05-15 17:23:54 +02: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
Piotr Sarnacki
1fa040d9a3
Set container on View
...
After updating Ember it complains that using defaultContainer was
deprecated, in order to silence the deprections I just set the container
so it does not uses defaultContainer
2013-05-15 17:23:53 +02:00
Piotr Sarnacki
dddf66b8cf
Don't refresh duration when record is loading
2013-05-15 17:23:52 +02:00
Piotr Sarnacki
d65f733f28
Log router transitions
2013-05-15 17:23:52 +02:00
Piotr Sarnacki
b6e89073dc
Revert "Revert "Revert "Remove sidebar elements, which need to query API
...
This reverts commit 9ca1833103
.
2013-05-15 17:23:52 +02:00
Piotr Sarnacki
3f30f3eec9
sign out before resetting app
2013-05-15 17:23:51 +02:00
Piotr Sarnacki
99c3ad770c
Router changes for new ember.js
2013-05-15 17:23:50 +02:00
Piotr Sarnacki
47630b5bab
Use view.jobIdForLog instead of showDownloadLog
...
The latter is not always refreshed, I don't have time to debug it more
thoroughly
2013-05-15 17:23:48 +02:00
Piotr Sarnacki
070d863588
No need to do hacks with Location header or Content-Type anymore
2013-05-15 17:23:48 +02:00
Josh Kalderimis
da35b52a56
Merge branch 'master' of https://github.com/travis-ci/travis-web
2013-05-13 10:56:03 +02:00
Mathias Meyer
f7618bef8b
There's a capital H in GitHub.
2013-05-11 08:38:23 +02:00
Mathias Meyer
6230224412
Remove Fork me sidebar.
2013-05-10 23:50:25 +02:00
Mathias Meyer
61c0f5179d
Add Blue Box as the default sponsor of a test run.
2013-05-10 23:19:07 +02:00
Josh Kalderimis
55a58f275d
remove the (i) from the top right of the tabs
...
the (i) is a miscommunication as it looks like it is to give information about the tabs instead of pop down descriptions underneath each of the repos in the recent and 'my repos' lists.
2013-05-10 19:54:52 +02:00
Mathias Meyer
9bce26ea3e
Change repository header to link to Travis repo.
...
Linking this to GitHub is cause for confusion, even for myself.
The tiny octocat now points to GitHub instead.
2013-05-10 16:49:15 +02:00
Piotr Sarnacki
df9db80c42
A few improvements for tabs on repos list
...
* if user is logged out, the default tab should be 'recent'
* when user logs in, the tab is switched to 'my repositories'
* when user logs out, my repositories is hidden again and tab is
switched to 'recent'
2013-04-30 02:45:16 +02:00
Piotr Sarnacki
e23d16c135
Sign out user before running tests
2013-04-29 23:00:13 +02:00
Piotr Sarnacki
9ca1833103
Revert "Revert "Remove sidebar elements, which need to query API""
...
This reverts commit e6b8562054
.
2013-04-29 14:53:56 +02:00
Fiona Tay
8152f4f2d6
Add placeholder for search input
2013-04-29 14:53:55 +02:00
Fiona Tay
3b53aca586
Fix minor spelling mistakes
2013-04-29 14:53:55 +02:00
Piotr Sarnacki
d2e103bc36
Revert "Remove sidebar elements, which need to query API"
...
This reverts commit d0009176f9
.
2013-04-29 14:53:55 +02:00
Fiona Tay
5cf2c65d2f
make 'My Repos' come before 'Recent' in sidebar
2013-04-17 20:12:33 -07:00
Piotr Sarnacki
d0009176f9
Remove sidebar elements, which need to query API
...
We have problems with timeouts and thus we want to lower API load
2013-04-16 20:46:56 +02:00
Piotr Sarnacki
dbbd82c825
Move GroupView into proper location
2013-04-15 18:55:22 +02:00
Piotr Sarnacki
1198809979
Move WorkersView and JobsView to Travis.SidebarView namespace
...
Travis.JobsView already exists, so I need to put those views in some
other namespace, but so that they're available without instantiating
SidebarView
2013-04-08 00:36:21 +02:00
Piotr Sarnacki
31f25ed4f8
Move WorkersView and JobsView to Travis namespace
...
That way those views can be overriden easily
2013-04-08 00:25:05 +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
8a69df0126
For some reason passing event breaks on chrome
2013-04-05 19:42:53 +02:00
Piotr Sarnacki
957d8a01ab
Merge branch 'sidebar-tabs'
...
Conflicts:
assets/scripts/spec/support/conditions.coffee
2013-04-05 19:26:24 +02:00
Piotr Sarnacki
d414c47833
Don't render links if slug is missing
2013-04-05 19:25:30 +02:00
Piotr Sarnacki
39d0202d7a
Fix specs, add styling for firefox
2013-04-05 18:09:00 +02:00
Piotr Sarnacki
cf23f81c40
Typo in tools view: hasPermissions -> hasPermission
2013-04-04 17:18:41 +02:00
Piotr Sarnacki
2f6e8082ac
Show pull request title also in job view
2013-04-03 13:27:52 +02:00
Piotr Sarnacki
7996358f01
Fix fetching log in firefox when Location header is unavailable
2013-04-02 20:17:24 +02:00
Piotr Sarnacki
17923af973
Fix expanding folds on firefox
2013-03-29 23:25:05 +01:00
Piotr Sarnacki
ce6862e6a0
Always poll for changes when user is syncing
2013-03-29 22:15:19 +01:00
Sven Fuchs
63c0c50ec2
Merge branch 'master' into sf-log
2013-03-29 16:04:18 +01:00
Piotr Sarnacki
2537daf0eb
Try to fix error on setting duration when record is reloading
2013-03-28 23:42:32 +01:00
Piotr Sarnacki
6e632f7033
Don't set content for a controller automatically in some of the routes
...
Ember by default sets controller's `model` property which may cause
weird race conditions when connected with a way we handle setting up
controller's content - most of the time we bind things.
2013-03-28 23:28:58 +01: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
c9f08417f7
Keep pullRequestNumber on build not on commit
2013-03-27 14:06:03 +01:00
Piotr Sarnacki
ea3ea61146
Fix ordering on workers lists
...
Emebr does not allow to use mixin on create, it needs to be passed to
extend().
(closes #151 )
2013-03-25 00:41:05 +01:00
Piotr Sarnacki
406dd06952
Merge pull request #162 from jwswj/142-ShowPrTitle
...
Show Pull Request title when available #142
2013-03-24 13:58:57 -07:00
Piotr Sarnacki
74f4a7b110
Fix the log view for finished logs
2013-03-22 10:13:26 +01:00
Sven Fuchs
300e91133c
Merge branch 'master' into sf-log
...
Conflicts:
assets/scripts/app/views/log.coffee
2013-03-22 02:14:55 +01:00
Sven Fuchs
894f321a8f
some style tweaks to the sidebar tabs /cc @drogus
2013-03-22 02:14:00 +01:00
Piotr Sarnacki
f1adbf8f20
Improve log handling
...
* don't fetch log content on Travis.Log init
* use timeout in ChunkBuffer instead of Ember.run.later
* remove timeout when log is finalized
2013-03-22 01:25:23 +01:00
Piotr Sarnacki
5d049fd7de
Destroy groups in running jobs after they're emptied
2013-03-21 23:46:27 +01:00
Piotr Sarnacki
010754da8a
Use container as a context to lookup delegated call
2013-03-20 19:05:36 +01:00
Piotr Sarnacki
f87fe183e4
Keep application class at TravisApplication and move it to separate file
...
It helps when application class needs to be reopened before creating
application
2013-03-20 00:00:05 +01:00
Piotr Sarnacki
c0d23f5579
Be more specific when catching 'URL not found' error, also add test
2013-03-19 21:39:38 +01:00
Piotr Sarnacki
65254b70da
Fix cutting too long logs
2013-03-19 16:07:21 +01:00
Jason Smale
ed69690167
Got pull request data being stored and displayed correctly
2013-03-18 10:36:31 +11:00
Jason Smale
63c461e86b
Merge branch 'master' into 142-ShowPrTitle
...
Conflicts:
assets/scripts/app/templates/builds/show.hbs
2013-03-18 09:43:29 +11:00
Jason Smale
275b160d7d
Reverted back to old Pull Request listing layout
2013-03-18 09:35:45 +11:00
Jason Smale
10209bbc26
Added structure, but pull request data not accessible in view
2013-03-18 09:24:58 +11:00
Sven Fuchs
4dba587673
Merge branch 'master' into sf-log
2013-03-16 06:45:36 +01:00
Piotr Sarnacki
aedddd8afe
Display only jobs and workers in tabs
2013-03-15 19:22:24 +01:00
Piotr Sarnacki
b06d7f9628
Tabs on the sidebar, the beginning based on @svenfuchs work
2013-03-15 16:30:28 +01:00
Piotr Sarnacki
de21e7bebc
Handle not-found routes #159
2013-03-15 10:43:07 +01:00
Piotr Sarnacki
d590b06d17
Leave currentUser connected to controller, but check for id
2013-03-15 10:28:35 +01:00
Piotr Sarnacki
1b01581fb4
Use regular params instead of event in My Repositories list ( closes #157 )
2013-03-15 10:22:58 +01:00
Sven Fuchs
80a0186464
Merge branch 'master' into sf-log
2013-03-14 22:46:07 +01:00
Piotr Sarnacki
febf40fd76
Fix pull requests view to show PR number
2013-03-14 20:37:57 +01:00
Piotr Sarnacki
3e3bb97591
Clean lineNumber on transitions
2013-03-14 19:32:56 +01:00
Piotr Sarnacki
3cd47d41b8
Clean lineNumber on transitions
2013-03-14 18:31:06 +01:00
Sven Fuchs
95e58f5f38
remove double PreView definition
2013-03-14 18:05:59 +01:00
Piotr Sarnacki
46643e8315
Run Travis.Repo.find() before using recent repos
...
Becuase we use filter() now to get just the repos with the last build
into the sidebar, it will not fetch the request automatically.
2013-03-14 18:01:13 +01:00
Sven Fuchs
abdb912ade
Merge branch 'master' into sf-log
2013-03-14 17:59:17 +01:00
Piotr Sarnacki
b847dbd664
Reset line numebr on each request
2013-03-14 17:56:50 +01:00
Sven Fuchs
ff6e126e45
fix lineNumberClicked
2013-03-14 17:35:39 +01:00
Sven Fuchs
c011cfafcd
fix line numbering
2013-03-14 17:18:34 +01:00
Sven Fuchs
e1a667407f
fix after rebase
2013-03-14 16:29:22 +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
Sven Fuchs
2331e8e006
re-add limit and scroll, fix positioning of messages
2013-03-14 15:48:42 +01:00
Sven Fuchs
c0a4fed836
use travis-web-log/sf-dom
2013-03-14 15:47:59 +01:00
Piotr Sarnacki
296bff56f1
Fix specs
2013-03-14 15:43:19 +01:00
Piotr Sarnacki
2013492371
Remove debug console.logs
2013-03-14 15:12:07 +01:00
Piotr Sarnacki
bdb552100a
Always use currentItem to get log context
2013-03-14 15:10:56 +01:00
Piotr Sarnacki
3d3c0fc3b2
Jekyll is not the same as github flavoured markdown
2013-03-14 15:01:45 +01:00
Piotr Sarnacki
79f1dc448f
Revert "move log subscrition to a log controller"
...
This was causing the log to not refresh sometimes when switching from
one repo to another, I'm reverting for now, we will have to have another
look.
This reverts commit 2e8b74160c
.
Conflicts:
assets/scripts/app/controllers/build.coffee
assets/scripts/app/models/build.coffee
assets/scripts/app/templates/builds/show.hbs
assets/scripts/app/views/log.coffee
assets/scripts/vendor/log.js
2013-03-14 10:07:35 +01:00
Piotr Sarnacki
2eab278736
Add ChunkBuffer to log
2013-03-13 00:13:51 +01:00
Piotr Sarnacki
b1edd8e510
Bring back log engine from master
2013-03-12 22:52:39 +01:00
Piotr Sarnacki
03dbe11c55
Merge branch 'master' into ps-ember-update
2013-03-12 14:03:03 +01:00
Piotr Sarnacki
25d09c453a
Merge pull request #131 from fionatay/master
...
Correct spelling in translation key
2013-03-12 05:54:56 -07:00
Piotr Sarnacki
63559f4c4c
Show appropriate message when the repository has no builds
2013-03-11 20:11:43 +01:00
Piotr Sarnacki
8fab8448c2
Show appropriate message if repository was not found
2013-03-11 19:47:59 +01:00
Piotr Sarnacki
a529231f1f
No need to use vnd extensions if version is already given
2013-03-11 18:15:58 +01:00
Piotr Sarnacki
05926e0010
Fix fetching worker name
2013-03-09 22:01:06 +01:00
Piotr Sarnacki
b289d3966b
Finish ChunkBuffer implementation and integrate it with Artifact
2013-03-09 22:01:06 +01:00
Piotr Sarnacki
b4022f5f67
A few improvements for ChunkBuffer
...
* insert available items at once
* allow to use pushObject on buffer itself
* add a test using arrayObserver to make sure that it fires only when
elements are added to arrangedContent
2013-03-09 22:01:05 +01:00
Piotr Sarnacki
554c8621e3
Merge branch 'master' into ps-ember-update
...
Conflicts:
Gemfile
assets/scripts/travis.coffee
2013-03-09 12:48:35 +01:00
Sven Fuchs
93edf5b63c
remove limit for now and update log.js
2013-03-09 00:51:20 +01:00
Sven Fuchs
ffe6f2d62c
actually limit before setting the part
2013-03-08 17:51:32 +01:00
Sven Fuchs
e5eae55456
Merge branch 'ps-ember-update' of github.com:travis-ci/travis-web into ps-ember-update
2013-03-08 17:33:12 +01:00
Sven Fuchs
d44e3b0098
move limit to web-log
2013-03-08 17:33:03 +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
Mathias Meyer
46a107e9ff
Use locale.
2013-03-08 13:06:20 +01:00
Mathias Meyer
74b3136214
Add link to status page.
2013-03-08 10:00:01 +01:00
Piotr Sarnacki
862e1864f5
Show pull requests values only on pull requests tab
2013-03-07 18:19:39 +01:00
Piotr Sarnacki
44bef520a0
Properly bind worker.state class
2013-03-07 18:13:29 +01:00
Sven Fuchs
ffd1b6d917
try to unsubscribe from the log when the log view is destroyed, too
2013-03-07 16:43:00 +01:00
Piotr Sarnacki
4a69446628
Make sure build.id and repo.slug are available for a link to build
2013-03-07 16:18:29 +01:00
Sven Fuchs
2e8b74160c
move log subscrition to a log controller
2013-03-06 19:59:59 +01:00
Sven Fuchs
4c699f18c3
Merge branch 'ps-ember-update' of github.com:travis-ci/travis-web into ps-ember-update
2013-03-06 16:37:12 +01:00
Sven Fuchs
fbe52ac854
update log.js
2013-03-06 16:37:01 +01:00
Piotr Sarnacki
1e6672eb9f
Fix toggle button on hooks list in profile
2013-03-06 15:18:57 +01:00
Piotr Sarnacki
8d9b36c0a6
Remove Date hack, which was used for timeago
2013-03-06 14:43:13 +01:00
Sven Fuchs
f00ad52ad8
Merge branch 'ps-ember-update' of github.com:travis-ci/travis-web into ps-ember-update
2013-03-05 17:14:26 +01:00
Sven Fuchs
8a2ba379aa
unsubscribe from log channels
2013-03-05 17:14:00 +01:00
Piotr Sarnacki
9ee359664c
Fix sync button
2013-03-05 03:37:47 +01:00
Piotr Sarnacki
4337949dd4
Fix the rest of the specs
2013-03-04 13:29:00 +01:00
Piotr Sarnacki
712389efdb
Fix more specs
2013-03-04 03:46:04 +01:00
Sven Fuchs
5d885289de
update log.js, use Log.Dom engine
2013-03-04 02:32:04 +01:00
Jason Smale
90a1d10d26
Show the title of the PR, rather than message in the PR tab
2013-03-04 11:00:44 +11:00
Sven Fuchs
b1b16f9039
Merge branch 'ps-ember-update' of github.com:travis-ci/travis-web into ps-ember-update
2013-02-28 21:38:08 +01:00
Sven Fuchs
7342618ffd
improve logging
2013-02-28 21:36:56 +01:00
Piotr Sarnacki
c6d1f4fa59
Fix a few more integration tests
2013-02-28 15:56:55 +01:00
Piotr Sarnacki
02ff533774
Fix integration tests running and 2 first tests
2013-02-28 15:54:48 +01:00
Piotr Sarnacki
0f89da6dea
Fix selected class on repos list
2013-02-28 15:54:47 +01:00
Sven Fuchs
079998093b
re-add the limit
2013-02-27 17:09:02 +01:00
Sven Fuchs
c4bb49cc17
Merge branch 'ps-ember-update' of github.com:travis-ci/travis-web into ps-ember-update
2013-02-26 23:19:55 +01:00
Piotr Sarnacki
6dbcd95c8b
Merge branch 'master' into ps-ember-update
...
Conflicts:
assets/scripts/travis.coffee
public/index.html
2013-02-26 12:43:43 +01:00
Piotr Sarnacki
2256ddeb46
Get rid of updateAssociations method
...
It seems that with current version of ember-data it's not longer needed
- associations are updated automatically now.
2013-02-26 12:04:37 +01:00
Piotr Sarnacki
12da46a623
Fix showAll button
2013-02-26 11:21:34 +01:00
Piotr Sarnacki
a47147ed82
Fix build lists to not interfere with each other
2013-02-26 11:17:42 +01:00
Piotr Sarnacki
1f3f0559bc
Fix build and job configs
2013-02-26 08:57:03 +01:00
Piotr Sarnacki
211b2723f9
Fix authentication
2013-02-26 07:05:40 +01:00
Piotr Sarnacki
ba1eecec45
Remove github stats
2013-02-26 05:26:51 +01:00
Piotr Sarnacki
d76463c3f2
Fix a few more UI issues
2013-02-26 05:24:56 +01:00
Piotr Sarnacki
9bac8ecba1
Fix status icon on build's view
2013-02-26 05:02:56 +01:00
Piotr Sarnacki
46f7e6bba0
Fix remaining ember-data and pusher updates issues
...
When records are updated by pusher events, we should not mark them as
dirty - we don't modify them on client side anyway.
2013-02-26 04:37:23 +01:00
Piotr Sarnacki
e96abff0e6
Hack for one to many relationship changes
2013-02-26 04:36:47 +01:00
Piotr Sarnacki
1bccb5d177
Fix line numbers when loading an url
2013-02-25 15:18:59 +01:00
Sven Fuchs
dbac2f8458
debug output
2013-02-25 13:07:07 +01:00
Randy Morgan
050bdfddb8
Added de locale to profile
...
This is dependent on https://github.com/travis-ci/travis-core/pull/190
2013-02-25 21:02:02 +09:00
Piotr Sarnacki
3e031981bc
Remove console.log
2013-02-23 00:21:52 +01:00
Piotr Sarnacki
f0ea65b114
Keep the hash in the location so we can scroll to line in logs
2013-02-23 00:21:01 +01:00
Sven Fuchs
729d22c9a4
Merge branch 'ps-ember-update' of github.com:travis-ci/travis-web into ps-ember-update
2013-02-22 23:44:58 +01:00
Sven Fuchs
f4832bd5f4
remove stale stuff from log/pre views
2013-02-22 23:38:33 +01:00
Piotr Sarnacki
b5bda962f9
Remove old router
2013-02-22 23:15:43 +01:00
Sven Fuchs
0b5715fe43
port log pre template
2013-02-22 17:09:14 +01:00
Piotr Sarnacki
553495c56c
Add @svenfuchs' log reimplementation
2013-02-22 17:00:50 +01:00
Piotr Sarnacki
83fb0ebb2c
Fix incomplete implementation
2013-02-21 23:22:54 +01:00
Piotr Sarnacki
395c818a64
Fix permission check for cog menu
2013-02-21 23:22:54 +01:00
Piotr Sarnacki
cfbec29978
Fix some of the places still using Travis.app
2013-02-21 23:22:54 +01:00
Piotr Sarnacki
bd7d2ede3a
Refactor proxy creation in router
2013-02-21 23:22:53 +01:00
Piotr Sarnacki
db2f01aa23
Fix sponsors
2013-02-21 23:22:53 +01:00
Piotr Sarnacki
4f21b097a8
Fix profile views
2013-02-21 23:22:53 +01:00
Piotr Sarnacki
f121a008c6
Add TODO for user's @poll()
2013-02-21 23:22:53 +01:00
Piotr Sarnacki
a3622e14c9
Allow to sign in and sign out
2013-02-21 23:22:53 +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
9bf2cb1078
Add stats view and fix connectLayout
2013-02-21 23:22:53 +01:00
Piotr Sarnacki
0b001acfaf
Event is no longer passed as an argument to handlers
2013-02-21 23:22:52 +01:00
Piotr Sarnacki
9b26ae4312
Fix workers view
2013-02-21 23:22:52 +01:00
Piotr Sarnacki
9ed3598f95
Implement branches
2013-02-21 23:22:52 +01:00
Piotr Sarnacki
cadc8c0e72
Fix running jobs
2013-02-21 23:22:52 +01:00
Piotr Sarnacki
42ed7cf4de
Make sure that repo has a slug when creating a link to repo
...
Raw repo data is sometimes passed to linkTo helpers and in such case
Repo instance is created by id and it does not include slug. This commit
will be reverted after fixing "incomplete" implementation, which will
allow to preload Repo with both id and slug before searching for it.
2013-02-21 23:22:52 +01:00
Piotr Sarnacki
86670def14
Fix queues lists
2013-02-21 23:22:52 +01:00
Piotr Sarnacki
4cdd4df515
Tabs and basic views are mostly working
2013-02-21 23:22:51 +01:00
Piotr Sarnacki
075e714fc3
Fix job view
2013-02-21 23:22:51 +01:00
Piotr Sarnacki
a3f8e0ff7d
Add missing mappings to adapter
2013-02-21 23:22:51 +01:00
Piotr Sarnacki
99b9c72e2e
Fix attributes and relatiobships in build
2013-02-21 23:22:51 +01:00
Piotr Sarnacki
8ccd95e0b0
Fix build view and links on left sidebar
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
829e1a4001
Fix routes code if google analytics is not loaded
2013-02-18 23:46:42 +01:00
Piotr Sarnacki
5255cfe744
Remove console log statements
2013-02-13 14:45:36 +01:00
Piotr Sarnacki
4590492547
Fix one more problem with folds
2013-02-13 14:42:23 +01:00
Piotr Sarnacki
76520cfcdb
Add count for running jobs
2013-02-13 11:52:00 +01:00
Piotr Sarnacki
3862dd163d
Limit log to 5000 lines
2013-02-13 04:03:02 +01:00
Josh Kalderimis
c72837f70e
Running jobs => Running Jobs
2013-02-11 19:15:44 -08:00
Josh Kalderimis
7ed8aaefad
add a check to running jobs to display a friendly message if no jobs are running
2013-02-11 19:10:31 -08:00
Piotr Sarnacki
e90c21c9a5
Normalize rvm version to float if it comes as an integer
2013-02-11 15:59:52 +01:00
Piotr Sarnacki
2607197cba
Fix typo in requeue build permissions check
2013-02-09 18:29:07 +01:00
Sven Fuchs
fb96164db8
just depend on the ga code
2013-02-08 15:30:49 +01:00
Sven Fuchs
2e8a197933
relax checking for non-production hosts
2013-02-08 15:22:32 +01:00
Sven Fuchs
0322e1a3c8
extract ga code and setup
2013-02-08 14:49:46 +01:00
Piotr Sarnacki
8061e57814
Sort running jobs by repo slug and number
2013-02-07 18:40:20 +01:00
Piotr Sarnacki
b5c7e52eaa
Wait for slug being present on runnning jobs list
2013-02-07 13:20:42 +01:00
Piotr Sarnacki
c5dce13317
Group running jobs by repo
2013-02-07 13:20:41 +01:00
Piotr Sarnacki
ad6f9e59c7
Display running jobs
2013-02-07 13:20:41 +01:00
Piotr Sarnacki
e05b2cbe80
Merge pull request #134 from lukesarnacki/show-disabled-links-in-cog-menu
...
Disable links in cog menu when not signed in
2013-02-07 02:02:15 -08:00
Lukasz Sarnacki
201a3abf17
Disable links in cog menu when not signed in
...
When user is not logged in, some links in cog menu
are not display. This commit makes them visible but
disabled.
2013-02-07 00:40:15 +01:00
Fiona Tay
1ef5b60ccc
Correct misspelling of sponsors
2013-02-06 18:00:12 +08:00
Piotr Sarnacki
36fb57b093
Merge pull request #120 from minciue/master
...
Show committer's name in builds list
2013-02-05 10:02:50 -08:00
Piotr Sarnacki
4b01db6d4b
Don't parse user if data can't be fetched from storage ( closes #124 )
2013-01-30 02:24:12 +01:00
Piotr Sarnacki
ead17606b5
Fix download log link after log changes
2013-01-30 02:15:11 +01:00
Piotr Sarnacki
9df79d6944
Wait for job.id in Travis.Artifact
2013-01-29 15:36:14 +01:00
Piotr Sarnacki
28b17f97a0
Build log url manually if Location header can't be fetched
2013-01-29 05:02:15 +01:00
Piotr Sarnacki
f6baa172a5
Fetch archived logs from S3 without redirect
2013-01-29 04:17:17 +01:00
Piotr Sarnacki
eb2feca02a
Set proper content type for logs requests
2013-01-28 18:18:16 +01:00
Piotr Sarnacki
5d3333efd2
Remove console.log
2013-01-27 22:51:45 +01:00
Piotr Sarnacki
5fbf153ed9
Use /jobs/:id/log.txt endpoint for fetching logs
2013-01-27 02:46:18 +01:00
Piotr Sarnacki
e9092418a7
Fetch builds for branches from /builds endpoint ( closes #123 )
2013-01-26 12:04:39 +01:00
Eugen Minciu
b1809c0951
Media query to hide committer on small screens.
2013-01-24 16:12:28 +02:00
Piotr Sarnacki
0e925c0eed
Load branches for status images only after opening the popup
2013-01-24 00:48:11 +01:00
Piotr Sarnacki
2723ae5c06
Find job for clearing logs only if it's already in store
...
Otherwise we make ajax request every time job is created.
2013-01-23 22:08:17 +01:00
Piotr Sarnacki
ee9f9d934c
Don't instantiate repo nor job on worker updates
...
We can create thos records based on job:started event. Also, links used
on the workers list are created from attributes only anyway.
2013-01-23 21:33:13 +01:00
Sven Fuchs
28e40ab0e4
make WorkerItemView.display rely on the model more
2013-01-22 19:04:25 +01:00
Sven Fuchs
f2ca2d5260
remove worker.lastSeenAt (useless anyway) and use payload.job instead of (deprecated) payload.build for active worker links
2013-01-22 18:55:08 +01:00
Sven Fuchs
9be127fa59
re-enable worker updates via pusher
2013-01-22 17:30:42 +01:00
Eugen Minciu
52bc49b64c
Add the commiter's name to the builds list
2013-01-22 18:10:59 +02:00
Piotr Sarnacki
b4ea261ee3
Delegate isLoaded in ArrayProxy on repos list
2013-01-22 01:58:20 +01:00
Piotr Sarnacki
2ca67e6b06
Bring back repo url, it's used in status images urls ( closes #118 )
2013-01-22 01:30:56 +01:00
Piotr Sarnacki
9052869f9f
Remove class from log line number to make template simpler ( closes #112 )
2013-01-22 01:22:47 +01:00
Sven Fuchs
f4fb1d14d4
add comment
2013-01-19 14:45:16 +01:00
Sven Fuchs
99edd9f0df
Merge branch 'master' of github.com:travis-ci/travis-web
2013-01-17 20:25:13 +01:00
Sven Fuchs
050c9fd211
clear log on job:created, too
2013-01-17 20:24:51 +01:00
Piotr Sarnacki
f3b37b9aaf
Add redirect on /jobs/:id/log.txt and /builds/:id/log.txt
2013-01-16 13:14:46 +01:00
Piotr Sarnacki
a8b5460eed
Show download log link in the cog menu
2013-01-16 12:59:15 +01:00
Piotr Sarnacki
13d752a77b
Disable worker:removed and worker:added events until we find a fix on server side
2013-01-15 15:25:22 +01:00
Piotr Sarnacki
98e6503e73
Add download log link at the bottom of the log
2013-01-15 13:18:49 +01:00
Piotr Sarnacki
e40fa3b26d
Removed unused urls
2013-01-15 13:18:49 +01:00
Nick Schonning
850b5148f9
Remove name attribute from log line link
...
Name is only intended for form elements, also the ID is what is used by
the anchor link
2013-01-14 20:16:16 -05:00
Piotr Sarnacki
6fb15c4a97
Show pull request number on the list
2013-01-15 00:48:34 +01:00
Kirill Lashuk
402722d563
Rename urlStatusImage to statusImageUrl.
2013-01-14 23:12:31 +03:00
Kirill Lashuk
9bfd9f3948
Fix urlStatusImage generation.
2013-01-14 23:11:02 +03:00
Kirill Lashuk
8d4c28b7f7
Rename property to statusImageBranch.
2013-01-14 23:04:37 +03:00
Kirill Lashuk
ec14d96236
Select current branch in status images popup.
2013-01-14 23:04:37 +03:00
Piotr Sarnacki
64b94711c7
Disable worker:removed and worker:added events until we find a fix on server side
2013-01-14 18:15:46 +01:00
Piotr Sarnacki
4519736fcd
Put message before the commit on lists ( closes #93 )
2013-01-11 18:36:22 +01:00
Piotr Sarnacki
b83948f583
Fallback to login if name is not given for a user
2013-01-09 16:42:10 +01:00
Konstantin Haase
5ca5b15f40
Merge branch 'master' of github.com:travis-ci/travis-web
2013-01-08 15:10:59 +01:00
Piotr Sarnacki
ae9ff005d3
Don't throw error when repo can't be find
...
When visiting page of repo that doesn't exist, we should not throw an
error. It still does not work as expected, redirecting to
/undefined/undefined, which should be addressed as well, but at least we
don't throw errors now.
2013-01-08 15:01:49 +01:00
Konstantin Haase
5b48aa20e7
check scopes
2013-01-07 20:59:54 +01:00
Piotr Sarnacki
938aaafc71
Merge pull request #84 from randym/instrumentation
...
WIP! Added first level instrumentation for travis-web
2013-01-03 07:13:34 -08:00
Konstantin Haase
cb392b549d
reduce logging
2012-12-17 20:33:28 +01:00
Konstantin Haase
f756df1468
typo
2012-12-17 20:17:36 +01:00
Konstantin Haase
12c84d8359
more logging in auth
2012-12-17 20:15:19 +01:00
Konstantin Haase
7ce690aecf
add logging
2012-12-17 19:58:34 +01:00
Konstantin Haase
f326960f9a
check for token
2012-12-17 15:19:22 +01:00
Konstantin Haase
34aaa070c9
don't check for token for now
2012-12-16 18:14:04 +01:00
Konstantin Haase
946dd55ce3
fix validation
2012-12-16 18:01:44 +01:00
Konstantin Haase
6c87a9c267
more verbose validation
2012-12-16 17:52:59 +01:00
Konstantin Haase
0b7d7a6eec
fix typo
2012-12-16 17:44:27 +01:00
Konstantin Haase
de0790c5d9
we might not have user yet
2012-12-16 17:26:52 +01:00
Konstantin Haase
a37dc4dca3
fix for nested user data
2012-12-16 17:20:32 +01:00
Konstantin Haase
43726e4025
fix reference
2012-12-16 17:04:41 +01:00
Konstantin Haase
5d7604567c
js and bindings, how does it work?
2012-12-16 17:00:31 +01:00
Konstantin Haase
368ef859ea
refactor auth
2012-12-16 16:57:12 +01:00
Sven Fuchs
ab0cb7d432
set auto_signin flag to false before actually trying to sign in
2012-12-16 14:59:43 +01:00
Sven Fuchs
b6df2bfbe1
add Auth.validateUser
2012-12-16 14:25:52 +01:00
Randy Morgan
fa7f8b9332
Added first level instrumentation for travis-web
...
This is not enabled by default. You need to run:
Travis.Instrumentation.subscribe('render.view')
To start capturing info
2012-12-14 19:31:05 +09:00
Piotr Sarnacki
4bdf94484f
Merge branch 'sortable-fix'
2012-12-14 05:12:06 +01:00
Piotr Sarnacki
23a58866bd
Fix LimitedArray to work properly with SortableMixin
2012-12-14 04:31:28 +01:00
Piotr Sarnacki
6fd56d4521
Display link to build/job only if id is present already
2012-12-13 15:17:04 +01:00
Piotr Sarnacki
9f7796a023
Use #with helper for job and builds link on tabs
...
Thanks to that, id will be refreshed when the build changes.
2012-12-13 01:44:42 +01:00
Piotr Sarnacki
25ac08fab6
Missing changes for 9853826
, I accidentally undid changes before commiting
2012-12-12 23:45:07 +01:00
Piotr Sarnacki
9853826bae
Properly refresh last build link on repos list
...
value change. Since {{action}} is also not a bound helper, I need some
structure that I can put into {{with}} helper
2012-12-12 23:40:51 +01:00
Piotr Sarnacki
d37da09502
Merge pull request #79 from mrshu/master
...
Updated links to GitHub hooks page
2012-12-11 07:14:49 -08:00
Piotr Sarnacki
4657ee351b
Merge pull request #78 from randym/i18n
...
Updates and Fixes for Profile and UI to properly handle locale switching
2012-12-11 07:07:54 -08:00
Piotr Sarnacki
fd82bf3791
Use contentArrayWillChange for deleting records from LimitedArray
...
Using contentArrayDidChange is usless for deletion, because the records
were already deleted, so we can't fetch them from the content array.
2012-12-11 15:51:11 +01:00
mr.Shu
c9ecde2632
updated links to GitHub hooks
2012-12-11 14:58:59 +01:00
Piotr Sarnacki
79e6f5e037
Allow to change the place of insertion for limited array
2012-12-11 14:41:21 +01:00
Randy Morgan
91812fb21c
Connected flash outlet for profile
2012-12-11 13:17:24 +09:00
Randy Morgan
0e727819b0
Updated profile view to support auto-updating locale selection
2012-12-11 13:13:54 +09:00
Randy Morgan
992cbb13f7
Removed unsupported locales from profile.
...
This should be written to populate from the I18n.translations hash but
for now, I am just getting rid of the ones that do not exist.
2012-12-11 10:55:43 +09:00
Randy Morgan
e4fb6c1fee
Completed dynamic I18n intetegration.
...
travis-web starts in English. When the user logs in, it switches to
their locale, when they logout, it goes back to english.
2012-12-11 10:48:19 +09:00
Randy Morgan
667722c663
Fixed User#update_locale to call Travis#updateLocale on locale change
2012-12-11 09:34:44 +09:00
Randy Morgan
e4819d8e0b
Fixed I18n handlebars helpers to update when locale changes
...
Via the console, you can Travis.set('locale', 'ja') and all the labels
will properly update. This should work on User#updateLocale as well but
I am having a devil of a time testing it locally as I cannot sign in.
2012-12-11 08:54:43 +09:00
Piotr Sarnacki
fa5de8ba66
Merge pull request #76 from travis-ci/rkh-correct-status-image
...
use current host for status images
2012-12-10 08:54:52 -08:00
Piotr Sarnacki
364f6927d3
Don't error out if capitilize helper gets null as an argument
2012-12-10 17:44:15 +01:00
Piotr Sarnacki
8e97b68313
Make the app work with disabled cookies
...
Browsers disable local storage and session storage when cookies are
disabled - any call to one of those will cause an error. This commit
provides fallback storage, which will store items in memory.
2012-12-10 17:37:09 +01:00
Konstantin Haase
b16f9281c4
use current host for status images
2012-12-10 15:32:01 +01:00
Sven Fuchs
7759061d4e
disable "cancel build"
2012-12-10 15:14:12 +01:00
Piotr Sarnacki
8f27943fe4
Kill typo 💣
2012-12-10 14:57:34 +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
Piotr Sarnacki
a662d03ee7
Revert "Don't automatically sign in if there is no token available"
...
This commit breaks login in Safari, without it people will need log out
and log in again if they experienced 401 requests on the profile page,
but we can't break Safari.
It seems that the root cause of the error is the fact that auto sign in
fails in Safari.
This reverts commit d84b3581eb
.
2012-12-10 13:53:35 +01:00
Piotr Sarnacki
0829825a14
Merge pull request #75 from mojavelinux/asciidoc-status-image
...
Add AsciiDoc markup to the status images dialog
2012-12-10 04:34:26 -08:00
Piotr Sarnacki
d84b3581eb
Don't automatically sign in if there is no token available
2012-12-10 11:22:18 +01:00
Piotr Sarnacki
567ba4cc6d
Fix storing token when doing auto sign in
2012-12-10 10:42:21 +01:00
Dan Allen
454c1c3e9a
add AsciiDoc markup to status images dialog
2012-12-09 17:29:16 -07:00
Sven Fuchs
e2ea999974
try using font/icons for color issues
2012-12-09 15:16:27 +01:00
Sven Fuchs
d005f241ba
fix things after rebase
2012-12-09 15:16:27 +01:00
Sven Fuchs
15dc2c503d
add state attribute to Branch
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
Konstantin Haase
c3e1bb7d67
only sign in once
2012-12-06 17:11:32 +01:00
Konstantin Haase
b4a1535533
check user
2012-12-06 16:58:28 +01:00
Konstantin Haase
3eb4c04f11
Merge branch 'master' into rkh-better-login
2012-12-06 13:52:09 +01:00
Piotr Sarnacki
aca1550933
Fix log tailing
2012-12-06 02:20:53 +01:00
Piotr Sarnacki
27fe85989a
Make rendering long logs faster when rendering huge chunks at once
...
After change log rendering method, to append HTML elements instead of
rerendering the entire thing, the case of gradual rendering of a log
started to behave much better (because we just append new elements), but
the initial render took a bit longer, because of the fact that appending
large separate HTML elements to DOM at once is not a good idea.
In order to make the situation better I added simple optimization.
Elements are added to DocumentFragment node before inserting to DOM and
appended to DOM only after all elements are processed. That way, when
log needs to be rendered all at once, we will not do any DOM operations
until log is ready.
2012-12-05 21:29:41 +01:00
Konstantin Haase
21af8176a1
listen for redirect events
2012-12-05 14:18:32 +01:00
Piotr Sarnacki
c00aa911d7
Add regenerate key option in repo view
2012-12-05 01:59:03 +01:00
Piotr Sarnacki
1385d7f605
Reset log manager on log rerender
2012-12-05 01:42:37 +01:00
Piotr Sarnacki
b718c3aa2b
Rerender log 'pre' on requeue
2012-12-05 00:44:29 +01:00
Piotr Sarnacki
4e7329f638
Open fold if folded command returns an error
2012-12-05 00:33:26 +01:00
Piotr Sarnacki
fc40190c29
Optimize log viewer
...
Till now, log viewer was rendered in handlebars, which was the simplest
solution, but it had a major drawback - every append to log caused it to
rerender which was not efficient and memory consuming.
The new approach is to make Travis.Log interpret the log and send lines
with instructions to the view, so for example if view should add a line,
it gets something like:
{ number: 1, content: '$ bundle install' }
Such approach is required to handle cases where data coming from pusher
is not actually a new line. For example output containing dots from
tests needs to be appended:
$ rake
....
Such output could be sent to client in 2 chunks: "$ rake\n.." and "..".
In such situation we would need to send 3 instructions:
{ number: 1, content: '$ rake' }
{ number: 2, content: '..' }
{ number: 2, content: '..', append: true }
The third instruction can come much later, because tests can take a
while to run, so we can't assume that each line will come in one piece.
The other scenario is \r, for example when showing progress:
\rDownloading: 10%
\rDownloading: 50%
\rDownloading: 100%
Such input should be changed into such instructions:
{ number: 1, content: 'Downloading: 10%' }
{ number: 1, content: 'Downloading: 50%', replace: true }
{ number: 1, content: 'Downloading: 100%', replace: true }
Travis.Log also supports folds, for example on bundle install, the code
was rewritten to make folds management simpler.
2012-12-04 22:57:57 +01:00
Piotr Sarnacki
26def07b9d
Show 'compiler' in Config and in matrix
2012-12-02 04:01:40 +01:00
Sven Fuchs
038b6b0572
clear log on job:requeued hax
2012-12-01 16:36:55 +01:00
Sven Fuchs
82c2a4f14c
accept job:requeue event
2012-12-01 14:45:58 +01:00
Sven Fuchs
808e341227
split requeueBuild vs requeueJob
2012-12-01 03:13:17 +01:00
Piotr Sarnacki
fba6160703
Reload hooks after sync
2012-11-28 21:07:04 +01:00
Piotr Sarnacki
33358b3613
Start polling only after sync request was done
2012-11-28 20:23:56 +01:00
Piotr Sarnacki
d12a444aed
Fix parse error on "done" response from the API
...
We sometimes get "done" as a response body from API when authenticating.
We should properly fix it in the API, but for now I will add this quick
fix to not completely break on login when it happens until we have
proper fix.
2012-11-28 20:19:11 +01:00
Piotr Sarnacki
875295c1a1
Don't allow to change hook's state while it's saving
2012-11-28 20:11:01 +01:00
Piotr Sarnacki
9cb451d68b
Fix Travis.Job.queued to update after receiving new jobs
2012-11-28 02:02:30 +01:00
Piotr Sarnacki
d1633e796a
Slightly better implementation of showAll for jobs in queues
2012-11-28 00:26:37 +01:00
Piotr Sarnacki
9c8f93f705
Expand all jobs from queue on one click
2012-11-28 00:20:58 +01:00
Piotr Sarnacki
afa1d07fbe
Show only first 15 elements from each queue for now
...
With shitloads of jobs in queues app becomes unusable, this is a quick
solution to make it better.
2012-11-28 00:04:23 +01:00
Piotr Sarnacki
834e45ceb5
Don't require loading repos when dislaying queues and workers
2012-11-27 22:36:15 +01:00
Sven Fuchs
e27b4e56db
make sure the profile details table does not break with long translations
2012-11-22 16:42:54 +01:00
Sven Fuchs
174053dfa6
localize top menu links
2012-11-22 16:23:52 +01:00
Piotr Sarnacki
f32038698d
Refresh accounts list after sync ( closes #55 )
2012-11-21 21:20:12 +01:00
Konstantin Haase
7816ab558b
increase timeout, api is now taking care of this
2012-11-18 21:11:06 +01:00
Piotr Sarnacki
7af5d4c1b6
Debug info on auth
2012-11-17 12:31:22 +01:00
Piotr Sarnacki
cdbfac1166
Add google analytics
2012-11-17 12:19:30 +01:00
Sven Fuchs
6d0cf9d5e6
Merge branch 'master' of github.com:travis-ci/travis-web
2012-11-16 17:43:39 +01:00
Sven Fuchs
d63af402c1
issue events on user:signed_in and user:synced
2012-11-16 17:43:22 +01:00
Piotr Sarnacki
3084dacaef
Update Ember.js from drogus/ember.js and fix routes
...
Default regexp used in ember does not work well for us. With repos
starting with 'stats', ember will match such url for /stats/ page, even
though the rest of the url is different, I added ability to overwrite
default regexp.
2012-11-16 17:36:13 +01:00
Piotr Sarnacki
cbd25b8821
Revert "Slugs are case insensitive now ( closes #51 )"
...
This reverts commit 8fb481cdd0
.
2012-11-16 15:42:50 +01:00
Piotr Sarnacki
8fb481cdd0
Slugs are case insensitive now ( closes #51 )
2012-11-16 15:16:57 +01:00
Sven Fuchs
216724af64
changes for pro
2012-11-15 16:31:54 +01:00
Piotr Sarnacki
9a0e7d5bb6
Merge pull request #50 from KL-7/info-icon-fix
...
Fix info icon overlapping tabs (in Firefox).
2012-11-12 08:40:31 -08:00
Sven Fuchs
3a7850cd02
abstract out styles for menu from profile
2012-11-12 12:12:57 +01:00
Kirill Lashuk
3d896d6a57
Fix info icon overlapping tabs.
2012-11-12 12:10:32 +03: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
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
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
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
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
a63ac52458
Remove layout views, just change template on application
2012-10-23 01:40:05 +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
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
Piotr Sarnacki
0587991533
Fix scrolling to line numbers
...
After some of the layout changes, the element that actually gets
scrolled is current layout view (.application > div).
2012-10-20 15:43:17 +02:00
Piotr Sarnacki
af00392d15
Fix jobs table when jobs have different config keys
...
If we have 2 jobs within 1 build, with such config values:
{ rvm: 'jruby-head', jdk: 'oraclejdk7' }
{ rvm: '1.9.3', jdk: null }
We should return jdk in configValues for second build, even if it's not
present. Otherwise table rows may be missing.
(closes #28 )
2012-10-20 02:14:17 +02:00
Sven Fuchs
f790a809ff
remove debug output
2012-10-19 22:24:57 +02:00
Sven Fuchs
853606bcc6
moar routing/auth refactorings
2012-10-19 22:20:45 +02:00
Sven Fuchs
c4b91108a0
refactor routes/auth interaction so that it always calls afterSignIn()
2012-10-19 21:24:18 +02:00
Sven Fuchs
786d8ebfc6
use an html char here
2012-10-19 16:04:23 +02:00
Sven Fuchs
a806dd7ff8
refactor broadcasts
2012-10-19 04:27:07 +02:00
Sven Fuchs
eca5d1902f
check both repos.isLoaded and repos.length before rendering empty; set height to 100%
2012-10-19 02:46:39 +02:00
Sven Fuchs
45cc6a47e3
fix top menu active item styles
2012-10-19 00:33:39 +02:00
Sven Fuchs
52bdbf5468
Merge branch 'master' of github.com:travis-ci/travis-web
...
Conflicts:
public/scripts/app.js
public/scripts/min/app.js
public/styles/app.css
public/version
script/server
2012-10-18 03:55:17 +02:00
Sven Fuchs
90fb2c3b78
add broadcasts
2012-10-18 03:53:19 +02:00
Piotr Sarnacki
82163346b9
We don't have to transitionTo('root') here
2012-10-18 03:38:45 +02:00
Piotr Sarnacki
cb76de3718
Move afterSignIn to auth Route
...
If we keep it only on states lower than root and afterSignIn is sent
when app is still in root.loading (which is often the case as we need to
wait for repository deserialization), it will try to find afterSignIn on
root.
2012-10-18 03:28:29 +02:00
Sven Fuchs
03595db5fa
re-add guard, rename "profile" menu item to "accounts" and add the github badge to the accounts sidebar
2012-10-17 03:21:28 +02:00
Sven Fuchs
1446fe7aa7
Merge branch 'master' of github.com:travis-ci/travis-web
...
Conflicts:
Gemfile.lock
public/scripts/app.js
public/scripts/min/app.js
public/version
2012-10-16 22:47:43 +02:00
Sven Fuchs
510be92eb7
stashing some work on the events log
2012-10-16 22:46:10 +02:00
Piotr Sarnacki
ce534fdcb8
Make layout work for smaller resolutions
2012-10-16 22:29:00 +02:00
Piotr Sarnacki
c9a578a012
Fix log scrolling issues on Firefox
2012-10-16 21:30:02 +02:00
Piotr Sarnacki
0bb3eff03b
Fix popup positioning and make sure popups always open properly
...
(closes #24 )
2012-10-16 19:41:57 +02:00
Piotr Sarnacki
e278f007a7
Properly set token on user record ( closes #25 )
2012-10-16 18:35:18 +02:00
Piotr Sarnacki
c05ce673bf
Load incomplete records when trying to get unknown attribute
...
In order to minimize ajax requests, I implemented isComplete property,
which can be used to check if record is fetched from the API or if it
was just partially loaded (for example by pusher event). This is nice in
terms of requests reduction, but caries risk of showing incomplete data.
This commit fixes this situation by saving which attributes were
provided on "incomplete" load and triggering refresh when any unknown
attribute is tried to be fetched.
The implementation is really simple and will probably need refactoring,
but I would like to test it in the wild before putting much more time
into it.
2012-10-16 03:05:38 +02:00
Sven Fuchs
393ef62eae
Merge branch 'master' of github.com:travis-ci/travis-web
...
Conflicts:
public/scripts/app.js
public/scripts/min/app.js
public/styles/app.css
public/version
2012-10-16 02:05:17 +02:00
Sven Fuchs
f91622e7e8
add an events tab
2012-10-16 02:00:24 +02:00
Piotr Sarnacki
4153c990be
Fix specs
2012-10-15 23:20:33 +02:00
Sven Fuchs
bee1a895ba
css sync and hooks buttons
2012-10-14 15:07:30 +02:00
Sven Fuchs
95b7ea03d2
set the reposController to the repoController in connectOutlets
2012-10-13 22:03:10 +02:00
Sven Fuchs
0a7349480e
remove the absolute binding to see if that gets rid of the warnings
2012-10-13 21:28:40 +02:00
Sven Fuchs
ed94cb7329
Merge branch 'master' of github.com:travis-ci/travis-web
...
Conflicts:
assets/scripts/lib/travis/model.coffee
public/scripts/app.js
public/scripts/min/app.js
public/version
2012-10-13 21:22:42 +02:00
Sven Fuchs
e7a26524d4
move select() functionality to Travis.Model and reuse it for accounts
2012-10-13 21:20:11 +02:00
Piotr Sarnacki
c707135ccd
First spike of 'isComplete' functionality
...
When we get payload from pusher, we usually don't send the entire
record. Initially such records where fetched from server right away to
get missing data. This was done becuase Ember can't tell if given data
is complete or not and just assumes that the record is loaded.
To not fire unneeded request, this code sets incomplete flag on records
loaded from pusher and loads the rest of the data only if needed.
2012-10-13 20:47:21 +02:00
Piotr Sarnacki
7ccbba2959
Don't redirect user if we're already in state that's not auth
2012-10-13 19:00:56 +02:00
Sven Fuchs
28346ce233
add an empty repos view
2012-10-13 17:31:12 +02:00
Sven Fuchs
d84b5dfd0a
add autoSignIn to fix that after signOut it would always re-signin on pages that require auth
2012-10-13 15:52:27 +02:00
Sven Fuchs
44d81af450
make sure we go through the auth check after signout
2012-10-13 15:07:35 +02:00
Sven Fuchs
4689545547
camelize to afterSignIn and add afterSignOut
2012-10-13 15:02:23 +02:00
Sven Fuchs
2485a7bcb9
fix router after_signin behaviour
2012-10-13 14:51:12 +02:00
Sven Fuchs
dee3591147
some tweaks
2012-10-13 04:34:30 +02:00
Piotr Sarnacki
88abeb48c0
We still return repository_id in build's payload
2012-10-12 20:51:05 +02:00
Piotr Sarnacki
3ecbc8f139
Fix workers sorting, it should be done based on SortableMixin
2012-10-12 20:37:12 +02:00
Piotr Sarnacki
87bccccde8
Fix routing to build/job when object is already loaded
2012-10-12 18:46:27 +02:00
Piotr Sarnacki
2575218ddb
Fix logs to always point to build or job view
2012-10-12 18:32:25 +02:00
Piotr Sarnacki
a3ec12bda7
Fix some of the build links
2012-10-12 15:34:07 +02:00
Piotr Sarnacki
a3826fbeb3
Show all repos accessible by current user in 'My repositories'
2012-10-12 14:42:04 +02:00
Sven Fuchs
f16c83d10f
somewhat more consistent naming
2012-10-12 02:34:54 +02:00
Sven Fuchs
b35763baa3
using the production pusher key with RUN_API causes tons of 404 errors
2012-10-11 17:23:32 +02:00
Sven Fuchs
551b976bbc
re-enable auto-auth
2012-10-11 15:34:01 +02:00
Sven Fuchs
05a57a593c
deactivate auto-auth for now because redis has run full :/
2012-10-11 05:16:07 +02:00
Piotr Sarnacki
6a487c8fd8
Actually fix profile view when reloading page - no need to redirect
2012-10-11 01:25:18 +02:00
Piotr Sarnacki
3c303e5a86
Reload page when locale for user changes, also cache it in cookie
2012-10-10 22:37:44 +02:00
Piotr Sarnacki
a15836c50a
Buffer search phrase to fire only after 500ms of last key press
2012-10-10 19:20:43 +02:00
Piotr Sarnacki
ed2ddc04f6
Fix back button
...
Repo.bySlug can return loaded items if they were loaded previously,
that's why it will not trigger isLoaded property change.
2012-10-10 19:07:32 +02:00
Piotr Sarnacki
b142d3cdcf
Close popups and menus when clicking outside of them
2012-10-10 18:45:33 +02:00
Piotr Sarnacki
e997ac7f6a
Make sure that workers are correctly sorted
2012-10-10 17:25:55 +02:00
Piotr Sarnacki
aef185f536
Show message on stats page
2012-10-10 16:47:22 +02:00
Sven Fuchs
24d98eb66a
ok, it's DEFAULT_ENDPOINT
2012-10-10 14:16:47 +02:00
Sven Fuchs
7cd5899eba
hm, also check for the build here, obviously
2012-10-10 12:29:31 +02:00
Sven Fuchs
056f20ddfe
check if we do have jobs before trying to iterate over them
2012-10-10 12:04:31 +02:00
Piotr Sarnacki
7fc77e66ea
Limit repos list to 30 items
2012-10-09 18:23:11 +02:00
Piotr Sarnacki
7f6210ec6c
Fixed build links on worker's list
2012-10-09 16:41:13 +02:00
Sven Fuchs
67aacb7baa
keep flash messages for 10sec
2012-10-09 16:15:18 +02:00
Sven Fuchs
927c8de8b0
remove flash count binding and solve that in css
2012-10-09 15:53:23 +02:00
Sven Fuchs
6e7382ed05
Merge branch 'master' of github.com:travis-ci/travis-web
...
Conflicts:
Gemfile.lock
public/scripts/app.js
public/scripts/min/app.js
public/styles/app.css
public/version
2012-10-09 15:25:27 +02:00
Sven Fuchs
847c120bd7
fuck yeah, flash messages
2012-10-09 15:16:54 +02:00
Piotr Sarnacki
233e95b18d
Use empty function instead of Ember.K
...
Technically it's the same thing, but since in coffeescript it's just a
few characters, there is no need to use something that does not
explicitly say what it does.
2012-10-09 13:18:24 +02:00
Piotr Sarnacki
64fc6ce717
Don't trigger state change on signin if already in authenticated state
2012-10-09 13:08:57 +02:00
Sven Fuchs
7e6907feba
Merge branch 'master' of github.com:travis-ci/travis-web
...
Conflicts:
Gemfile.lock
public/scripts/app.js
public/scripts/min/app.js
public/version
2012-10-09 12:33:11 +02:00
Sven Fuchs
6cbe6f140e
refactor ajax, get rid of the module
2012-10-09 12:31:15 +02:00
Piotr Sarnacki
e0d3d83484
Kill typo 💣
2012-10-09 12:06:37 +02:00
Piotr Sarnacki
3a999e8598
If there is no path, route to '/'
2012-10-09 04:11:23 +02:00
Piotr Sarnacki
e6106a236a
Remove initialState properties from most of the routes
...
initialState in some of the routes where needed because router was
behaving incorrectly when going to 'default state'. Now it is fixed, so
initialState entries are not needed anymore in those places.
2012-10-09 03:56:26 +02:00
Piotr Sarnacki
186ba1dd45
Fix links to log line numbers
...
This is working implementation of links on log line numbers. Although it
does the job, it's really hacky and involves overriding some of the
ember's methods (resolvePath, routeMatcher) beacuse currently
HistoryLocation can't handle hash additions in an easy way.
This code should be fixed as soon as ember's router gets more powerful
and gives much more granular control over matching routes.
2012-10-09 03:54:11 +02:00
Piotr Sarnacki
504a58add8
Check if permissions exist before calling anything on them
2012-10-08 22:42:02 +02:00
Piotr Sarnacki
94e16ab229
Worker still gets payload with repository
...
I tweaked the code to work for both versions, so we can update API
flawlessly
2012-10-08 17:32:04 +02:00
Piotr Sarnacki
37d1348054
Use Travis Pro in sponsors info
2012-10-08 17:12:39 +02:00
Piotr Sarnacki
b309819f24
Display Travis CI as box sponsor if there is not worker with given name
2012-10-08 17:09:42 +02:00
Piotr Sarnacki
94f1e64554
Show sponsor info under the log
2012-10-08 16:53:31 +02:00
Sven Fuchs
521fc3112d
add flash messages and styles
2012-10-08 16:27:55 +02:00
Sven Fuchs
41ab0c4cb0
set content on user permissions array proxy
2012-10-08 13:38:13 +02:00
Sven Fuchs
3580952076
try fixing the root key for Repo.find() (even though ember-data really seems weird here)
2012-10-07 17:58:06 +02:00
Sven Fuchs
a8f19aa687
try making workers item view more robust
2012-10-07 17:05:29 +02:00