Commit Graph

1200 Commits

Author SHA1 Message Date
Piotr Sarnacki
d8b96a960d Always send afterSignIn event 2013-05-16 13:16:53 +02:00
Mathias Meyer
c012a36614 Update GitHub icon . 2013-05-16 12:58:13 +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
a097271f8a Use Ember version with e7c20b5b9 reverted
It introduced a bug when switching from repo view to the build view
2013-05-16 01:23:59 +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
895b52d7c4 Don't error out if response is not valid JSON 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
5f366a2989 Make Travis.ajax.ajax return a promise 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
c8a9e650be Use uncompressed version of pusher, we compress everything anyway 2013-05-15 17:23:52 +02:00
Piotr Sarnacki
49ce1485f9 Update pusher 2013-05-15 17:23:51 +02:00
Piotr Sarnacki
ebeaabe598 Use jQuery.param for generating query string 2013-05-15 17:23:51 +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
f374feae32 Update 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
07cd8233d4 Use $.ajax when testing to not break jquery.mockjax 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
Piotr Sarnacki
5b771aafcc Use XMLHttpRequest directly
jQuery uses getAllResponseHeaders function for getting response headers,
even for getResponseHeader. As far as I know, there is no easy way to
get original xhr object and call getResponseHeader on such object.
Because of that getResponseHeader is broken on firefox with CORS.

I rewrote Travis.ajax to use XMLHttpRequest directly in order to fix
this, the compatibility with jQuery.ajax is mostly handled.
2013-05-15 17:23:47 +02:00
Henrik Hodne
3c8bfa4690 Fix bold ANSI colours 2013-05-15 17:12:34 +02:00
Henrik Hodne
98ad56f957 Merge pull request #186 from travis-ci/hh-nicer-ansi-colours
Update the ANSI log colours
2013-05-15 08:07:15 -07:00
Henrik Hodne
94eaa079dc Update the ANSI log colours 2013-05-15 16:46:07 +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
eff0c9be20 Add updated/recompiled banner images.
It seems like the right thing to do.
2013-05-11 09:27:28 +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
Piotr Sarnacki
c263319ed5 Merge pull request #184 from travis-ci/mm-repo-name-links-to-travis
Change repository header to link to Travis repo.
2013-05-10 08:27:40 -07:00
Mathias Meyer
d82116d68f Fix GitHub URL test. 2013-05-10 17:09:40 +02:00
Mathias Meyer
d04988138d Fix specs and expectations for URL changes. 2013-05-10 17:05:45 +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
55d808fac8 Merge pull request #183 from nschonni/force-ga-https-137
Remove conditional ga HTTPS loading
2013-05-09 02:25:16 -07:00
Nick Schonning
c1f9ed20e3 Remove conditional ga HTTPS loading
Shortcut since site is always secure.
Fixes gh-137
2013-05-08 23:13:18 -04:00
Piotr Sarnacki
e2d92c2ffb POST requests should always require auth 2013-05-02 19:56:48 +02:00
Piotr Sarnacki
595393f273 Don't send Authorization header when it's not needed
CORS specification specifies "simple request", which does not need a
preflight OPTIONS request. The only thing, which we send and is
forbidding to send simple requests is Authorization header, which is not
needed for public endpoints.
2013-05-02 17:59:43 +02:00
Piotr Sarnacki
924b20d12e Update log engine 2013-05-02 01:30:07 +02:00
Piotr Sarnacki
7ebd2bfcad Merge branch 'fionatay-master' 2013-04-30 02:47:34 +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
f3570acf7c Comment failing tests, sidebar is temporarily limited. 2013-04-29 22:58:57 +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