Commit Graph

39 Commits

Author SHA1 Message Date
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
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
e5749b0629 Fix handling not existing repos
Also ensure that we don't break it again with an integration test.
2014-02-12 08:02:47 +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
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
Sven Fuchs
eaf260a516 Revert "Display repos with no builds, but which are active in 'My repositories'"
This reverts commit fbed80f166.

Conflicts:
	assets/scripts/app/templates/repos/list.hbs
2013-11-12 16:06:26 +01:00
Piotr Sarnacki
fbed80f166 Display repos with no builds, but which are active in 'My repositories'
When user activates a repository in the profile page, we now will
display this repository on the 'My Repositories' list. When user chooses
this repository, she will see an explenation why there is no builds and
what could be done to fix this.

Conflicts:
	assets/scripts/app/controllers.coffee
	assets/scripts/app/models/repo.coffee
	assets/scripts/app/templates/repos/list.hbs
2013-10-29 18:05:23 +01:00
Mathias Meyer
da7cb6f4b0 Add githubLanguage as repository property. 2013-08-27 15:30:42 +02:00
Piotr Sarnacki
d5038a4855 Fix allBuilds for ember-model 2013-08-25 14:54:55 +02:00
Piotr Sarnacki
eb35a0e1c6 Merge branch 'master' into ui-improvements
Conflicts:
	assets/scripts/app/controllers.coffee
2013-08-25 14:46:03 +02:00
Piotr Sarnacki
d18cffd1a7 When observing all builds don't request them
We use `allBuilds` to observe new incoming builds, so we can put new
builds into the lists (for example when build is started). We use it for
observing purposes only, so we actually don't need to get builds from
the server, we can just register record array and use it later on.
2013-08-22 15:29:12 +02:00
Piotr Sarnacki
0ac5b6855e Use isPullRequest instead of eventType 2013-07-31 13:54:02 +02:00
Piotr Sarnacki
da9a34f06c Change ED's filter() calls to FilteredArrays 2013-07-31 13:42:06 +02:00
Piotr Sarnacki
823c8441be Change EmberData properties/relationships into EmberModel versions
DS.attr -> Ember.attr
DS.belongsTo -> Ember.belongsTo
DS.hasMany -> Ember.hasMany
2013-07-31 13:29:55 +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
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
63559f4c4c Show appropriate message when the repository has no builds 2013-03-11 20:11:43 +01:00
Piotr Sarnacki
712389efdb Fix more specs 2013-03-04 03:46:04 +01:00
Piotr Sarnacki
a47147ed82 Fix build lists to not interfere with each other 2013-02-26 11:17:42 +01:00
Piotr Sarnacki
4cdd4df515 Tabs and basic views are mostly working 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
e9092418a7 Fetch builds for branches from /builds endpoint (closes #123) 2013-01-26 12:04:39 +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
Sven Fuchs
395918a406 use states instead of result 2012-12-09 15:16:27 +01:00
Piotr Sarnacki
c00aa911d7 Add regenerate key option in repo view 2012-12-05 01:59:03 +01:00
Piotr Sarnacki
834e45ceb5 Don't require loading repos when dislaying queues and workers 2012-11-27 22:36:15 +01:00
Piotr Sarnacki
3f0babcf55 Fix adding builds to a build list on pusher event 2012-10-28 23:43:15 +01: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
e7a26524d4 move select() functionality to Travis.Model and reuse it for accounts 2012-10-13 21:20:11 +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
24d98eb66a ok, it's DEFAULT_ENDPOINT 2012-10-10 14:16:47 +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
25dffc0a7a load user permissions 2012-10-06 23:40:05 +02:00
Sven Fuchs
6e4413d5a2 finally rename repository to repo 2012-10-06 20:08:46 +02:00