travis-web/assets/scripts/app/models
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
..
account.coffee move select() functionality to Travis.Model and reuse it for accounts 2012-10-13 21:20:11 +02:00
branch.coffee Properly display matrix keys when build does not have all keys 2013-04-06 01:48:32 +02:00
broadcast.coffee Make the app work with disabled cookies 2012-12-10 17:37:09 +01:00
build.coffee Properly display matrix keys when build does not have all keys 2013-04-06 01:48:32 +02:00
commit.coffee Got pull request data being stored and displayed correctly 2013-03-18 10:36:31 +11:00
event.coffee use states instead of result 2012-12-09 15:16:27 +01:00
extensions.coffee Don't refresh duration when record is loading 2013-05-15 17:23:52 +02:00
hook.coffee updated links to GitHub hooks 2012-12-11 14:58:59 +01:00
job.coffee Fix odd behavior on running jobs list and on queued jobs list 2013-05-15 17:23:53 +02:00
log.coffee No need to do hacks with Location header or Content-Type anymore 2013-05-15 17:23:48 +02:00
repo.coffee Fix odd behavior on running jobs list and on queued jobs list 2013-05-15 17:23:53 +02:00
sponsor.coffee Fix sponsors 2013-02-21 23:22:53 +01:00
user.coffee Always poll for changes when user is syncing 2013-03-29 22:15:19 +01:00
worker.coffee Fix odd behavior on running jobs list and on queued jobs list 2013-05-15 17:23:53 +02:00