Commit Graph

192 Commits

Author SHA1 Message Date
Piotr Sarnacki
e431e30420 Fix small problem with duplicated first log line 2012-12-05 01:14:25 +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
27dee49a8e Swallow ansi control sequences, which we don't support 2012-11-30 22:44:58 +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
52e6959c9c Do not refresh entire LimitedArray if there is not such need 2012-11-28 01:00:44 +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
08c86c8778 Merge pull request #58 from randym/i18n
removed devise and admin namespaces from locales..
2012-11-23 02:06:06 -08:00
Randy Morgan
dc85f7bbc8 Updated gemfile to use published i18n-filters gem. 2012-11-23 14:37:56 +09:00
Randy Morgan
f176a2a77f Enabled i18n-js fallbacks 2012-11-23 13:53:07 +09:00
Randy Morgan
2bc30495b5 removed devise and admin namespaces from locales and added report rake task for new keys 2012-11-23 01:50:54 +09: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
be1c52e69a change I18n.missingTranslation so that we use the last part of the key, titleized instead of a phat, ugly monster message 2012-11-22 16:24:40 +01:00
Sven Fuchs
174053dfa6 localize top menu links 2012-11-22 16:23:52 +01:00
Randy Morgan
c4bfc7b1d7 Added i18n web filters and rake task for pulling the translations down from localeapp
You will need to set ENV['LOCALEAPP'] to the secret key to run the
update. Contact randym if you need it.
2012-11-22 20:47:38 +09: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
efe98e561a Add history.state hacks for browsers not supporting it 2012-11-18 11:59:14 +01:00
Piotr Sarnacki
dfd8e3323b Update Ember with history location fix from my fork 2012-11-18 11:05:14 +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
Piotr Sarnacki
d4214406e6 Remove console.log 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
Sven Fuchs
81c0549d1d change queue grouping 2012-11-13 21:14:48 +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
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