Commit Graph

137 Commits

Author SHA1 Message Date
Piotr Sarnacki
09eeeaff1b Revert "Revert "Merge pull request #308 from rwjblue/update-ember""
This reverts commit 840ce5a47d.
2014-12-29 18:16:14 +01:00
Piotr Sarnacki
c3a843a886 Add button for removing logs 2014-12-10 21:30:43 +01:00
Piotr Sarnacki
9057650646 Fix client on Firefox 34.0 beta
Our ajax function was passing params as object to xhr.send function.
For some reason this breaks on Firefox 34.0 beta. Sending stringified
version of params works correctly.
2014-11-13 18:04:58 +01:00
Piotr Sarnacki
840ce5a47d Revert "Merge pull request #308 from rwjblue/update-ember"
After upgrading ember to 1.8.1 tests pass, but I found a few cases where
things break (for example when navigating between certain routes). I'm
reverting for now.

This reverts commit fa5e9179af, reversing
changes made to 978c887123.
2014-11-12 12:11:53 +01:00
Piotr Sarnacki
767c546ab5 Change timeout for pusher fallback to 30s
We have a bug that results in sending unneeded ajax queries on missing
log parts. I'm working on a fix, but it may take a while, because I want
to refactor a few parts of the app instead of putting more hacks on
legacy code. To help with the situation I'm increasing timeout for
pusher fallback.
2014-11-12 11:15:38 +01:00
Robert Jackson
f9fe221e9a
Use standard Ember.Handlebars.registerBoundHelper.
No need for the custom Ember.registerBoundHelper implementation.
2014-11-05 07:39:45 -05:00
Robert Jackson
9011f9d85d
Pass test suite.
* Add `travis.source_endpoint` meta (fixes many tests with hard
  expectations on `http://github.com` being in URL paths).
* Wrap `Ember.run.once` in a `Ember.run` (prevents test auto-run
  assertion).
* Fix expect counts for a couple tests.
2014-11-04 21:22:58 -05:00
Piotr Sarnacki
13408d875a Implement fallback for pusher log messages
If we don't get any pusher messages with log updates after 5 seconds, we
will try to download them from the API.
2014-09-11 18:22:31 +02:00
Piotr Sarnacki
ecd1b7292c Handle validation error messages better 2014-08-25 13:16:05 +02:00
Piotr Sarnacki
5e45008044 Env var should be saved with PATCH 2014-08-22 16:55:55 +02:00
Piotr Sarnacki
0014c65cbd Fix hooks toggling
When changing adapter to make it work with env vars I used PATCH method.
Hooks are using PUT to update active fields, so it broke hooks. This
commit moves saveRecord with PATCH to env vars' adapter.
2014-08-21 20:23:05 +02:00
Piotr Sarnacki
9741ede075 Merge branch 'ps-env-vars'
Conflicts:
	assets/scripts/app/controllers.coffee
	assets/scripts/app/helpers/handlebars.coffee
	assets/scripts/app/templates/repo/settings.hbs
	assets/scripts/app/views/repo/show.coffee
	assets/styles/tabs.sass
	config.ru
2014-08-21 16:02:07 +02:00
Piotr Sarnacki
eecd5187a3 Revert "Revert "Page for displaying caches""
This reverts commit 3d6931c523.
2014-08-12 16:05:21 +02:00
Sven Fuchs
3d6931c523 Revert "Page for displaying caches"
This reverts commit a58688b451.
2014-08-12 15:53:19 +02:00
Piotr Sarnacki
a58688b451 Page for displaying caches 2014-08-05 18:09:24 +02:00
Piotr Sarnacki
c9f58718cf Final touches on env vars 2014-08-01 02:50:20 +02:00
Piotr Sarnacki
17ed1d94cc First stab at ssh key form 2014-07-31 12:26:19 +02:00
Piotr Sarnacki
745a39eae5 First stab at env vars 2014-07-28 14:19:44 +02:00
Piotr Sarnacki
bcf5ac50c5 Send record to buildURL method when it's available
For some cases (like coming env vars) we will need to also pass a
repository id to the URL, so I'm passing it from createRecord and other
methods which handle records.
2014-07-28 12:50:11 +02:00
Piotr Sarnacki
1d06666357 signOut on refresh user data error 2014-04-09 00:14:28 +02:00
Piotr Sarnacki
36db80d45f Add Ember.computed.limit and use it in LimitedArray
arrayComputed was added recently in order to make array computations
easier. Using arrayComputed we can improve LimitedArray which now uses
an isolated multipurpose Ember.computed.limit.
2014-02-18 10:00:33 +01:00
Henrik Hodne
2450f9fe9d Revert previous revert
I found the commit that caused the bug that caused me to do the last
revert. I'm therefore reverting the previous revert and I will be
committing a revert that reverts the commit that introduced the bug. See
next commit.

This reverts commit db2d38a7af.
2014-02-12 09:54:24 -06:00
Henrik Hodne
db2d38a7af
Revert setting panel deploy
This seems to have caused issues with enabling the hooks for
repositories.
2014-02-12 09:14:47 -06:00
Piotr Sarnacki
8d19410264 Merge remote-tracking branch 'origin/settings-pane'
Conflicts:
	assets/scripts/app/controllers.coffee
	assets/scripts/app/routes.coffee
	assets/scripts/app/views/repo/show.coffee
2014-02-12 11:52:01 +01:00
Piotr Sarnacki
0d40f2322e Merge pull request #245 from dmathieu/refactor_folder
Refactor the log folder and test the logs view
2014-01-29 02:49:58 -08:00
Damien Mathieu
5ef0302243 automatically unfold lines starting or ending an highlight 2014-01-29 09:10:50 +01:00
Piotr Sarnacki
c808d3d3b8 Add sideloaded records to record arrays 2014-01-28 22:41:50 +01:00
Damien Mathieu
6608032652 refactor and test the log folder 2014-01-28 17:23:15 +01:00
Piotr Sarnacki
360b32a4f2 Merge branch 'updated-styles'
Conflicts:
	assets/scripts/app/templates/layouts/top.hbs
	assets/scripts/app/templates/repos/list.hbs
2014-01-27 13:02:05 +01:00
Piotr Sarnacki
d41d6de175 Merge branch 'master' into settings-pane
Conflicts:
	assets/scripts/app/templates/profile/tabs/hooks.hbs
2014-01-21 18:01:42 +01:00
Piotr Sarnacki
492802920e Use pushState to set urls
It seems that directly setting location.hash directly doesn't play nice
with Ember.js URL handling - using it to handle line numbers results in
weird bugs (URL stops being updated after setting hash manually).

This commit gets back to using window.history.pushState() which was
changed to direct hash manipulation in ff1aad3
2014-01-20 14:24:05 +01:00
Hiro Asari
8b6be08ef4 Merge branch 'master' into settings-pane
Conflicts:
	assets/scripts/app/routes.coffee
	assets/scripts/app/templates/profile/tabs/hooks.hbs
2014-01-17 07:09:04 -05:00
Piotr Sarnacki
896c79dd16 Remove the rest of the locales related stuff 2014-01-15 14:40:56 +01:00
Damien Mathieu
228afe9a63 store the last selected line and use it as the other end for multiple selection 2014-01-09 17:31:47 +01:00
Damien Mathieu
ff1aad3f03 extract the log lines selector into a separate component 2014-01-09 15:53:33 +01:00
Damien Mathieu
c9e0f07a5a highlight multiple lines
We can now highlight multiple lines, adding #L1-L2 to the hash.
We can select the ending line with shift + click.

Closes travis-ci/travis-ci#1829
2014-01-07 21:46:19 +01:00
Piotr Sarnacki
c18222ea51 Settings pane
This commit contains a settings pane implementation. There are a couple
of things here, which are not used yet, like advanced form helpers. I'm
leaving them here, because the plan is to add support for more settings
soon (like: include/exclude branch patterns), which will need these
helpers.

There is also tabs support, although in the current version there is
only one tab (initially it was created for supporting general tab and
notifications tab).
2013-12-18 11:02:23 +01:00
Piotr Sarnacki
1f0b068992 Pass ids as params to ajax to make it easier to debug it in chrome 2013-12-11 12:43:10 +01:00
Piotr Sarnacki
a2bc840292 Use more fetch instead of find
fetch method returns a promise instead of an actual object. We used find
before, because this was the way we did things before upgrade to Ember
Model. Returning a promise from a model hook pauses router rendering for
the time a resource is loading, which makes it much easier to deal with
asynchronous requests. Thanks to that we can remove parts of the code,
which dealt with it manually.
2013-12-11 12:43:09 +01:00
Piotr Sarnacki
b5297d7800 Update code for newest ember-model 2013-10-18 13:41:10 +02:00
Piotr Sarnacki
9958de3191 Add record to record arrays in adapter
Ember Model does not do it automatically. I had a patch, which was
changing that, but after giving it more thought, I think it's not a good
idea - this should be up to adapter if the records are going into
record arrays.
2013-10-18 13:41:09 +02:00
Piotr Sarnacki
92616251bb Revert "Update code for newest ember-model"
This reverts commit 1594130ff3.
2013-09-06 22:14:06 +02:00
Piotr Sarnacki
1594130ff3 Update code for newest ember-model 2013-09-06 19:37:06 +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
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
003c6e7b01 Add unload method on model 2013-08-05 03:24:39 +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
549efc8046 Add resetData, unload and removeFromCache to Travis.Model 2013-07-31 13:56:19 +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