Commit Graph

864 Commits

Author SHA1 Message Date
Konstantin Haase
f6c983978f only allow sessionStorage and localStorage 2012-12-06 14:44:00 +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
4a443aee41 allow setting the storage 2012-12-05 14:36:57 +01:00
Konstantin Haase
21af8176a1 listen for redirect events 2012-12-05 14:18:32 +01:00
Sven Fuchs
e62dc32d2a Merge branch 'master' of github.com:travis-ci/travis-web 2012-12-05 11:23:28 +01:00
Sven Fuchs
8f762636b7 Merge remote-tracking branch 'randym/i18n'
Conflicts:
	Gemfile.lock
2012-12-05 11:23:09 +01:00
Piotr Sarnacki
c00aa911d7 Add regenerate key option in repo view 2012-12-05 01:59:03 +01:00
Piotr Sarnacki
e9077f1a04 Fix initial setting in logs - it should be set to null after 1st line 2012-12-05 01:53:25 +01:00
Piotr Sarnacki
1385d7f605 Reset log manager on log rerender 2012-12-05 01:42:37 +01:00
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
Randy Morgan
f9c373a744 removed unneeded linebreak 2012-12-04 00:40:28 +09:00
Randy Morgan
ba0f9ca0cb reparied indentation 2012-12-04 00:39:30 +09:00
Randy Morgan
8930cf2cf6 removed another quoted tranlsation key 2012-12-04 00:38:54 +09:00
Randy Morgan
6a690878be removed quotes around translation key 2012-12-04 00:37:41 +09:00
Randy Morgan
4954564dde Updated Gemfile to use localeapp-handlebard_i18n and get the latest translations 2012-12-04 00:34:34 +09:00
Randy Morgan
e5b0869201 change ENV variable name for localeapp api key to LOCALEAPP_API_KEY 2012-12-04 00:18:17 +09:00
Randy Morgan
5b0fd89a1f Extracted localeapp-handlebars_i18n to gem 2012-12-04 00:17:58 +09:00
Randy Morgan
082fac9185 Added handlebars template scraping and localeapp reporting
Specified handlebars templates will be parsed for {{t some.key}}. Any
translations keys that are not found in the configured i18n YAML will
be reported to the configured localeapp backend via the localeapp api.
2012-12-02 16:50:52 +09: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
df69a4a221 fix padding for broadcasts 2012-11-27 10:41:15 +01:00
Sven Fuchs
b1bcbefa29 remove debugger for now (does not install on travis) 2012-11-23 11:08:32 +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
3e93754ad1 Added description for localapp report rake task 2012-11-23 14:42:08 +09:00
Randy Morgan
acc48c441f Removed comment from Assetfile 2012-11-23 14:39:46 +09: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
9381dee142 Merge branch 'i18n' 2012-11-22 16:43:41 +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
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