The Ember web client for Travis CI
Go to file
Piotr Sarnacki c05ce673bf Load incomplete records when trying to get unknown attribute
In order to minimize ajax requests, I implemented isComplete property,
which can be used to check if record is fetched from the API or if it
was just partially loaded (for example by pusher event). This is nice in
terms of requests reduction, but caries risk of showing incomplete data.

This commit fixes this situation by saving which attributes were
provided on "incomplete" load and triggering refresh when any unknown
attribute is tried to be fetched.

The implementation is really simple and will probably need refactoring,
but I would like to test it in the wild before putting much more time
into it.
2012-10-16 03:05:38 +02:00
assets Load incomplete records when trying to get unknown attribute 2012-10-16 03:05:38 +02:00
config move unicorn config to config/unicorn.rb 2012-10-13 03:15:50 +02:00
lib Fix specs 2012-10-15 23:20:33 +02:00
play check if readyState == 3 makes the responseText available in browsers we care about ... yes, it does 2012-10-06 17:29:16 +02:00
public Load incomplete records when trying to get unknown attribute 2012-10-16 03:05:38 +02:00
spec/lib Fix specs 2012-10-15 23:20:33 +02:00
.gitignore add seeds gitignore config/travis.yml 2012-07-21 20:03:29 +02:00
.slugignore add .slugignore 2012-10-03 14:52:05 +02:00
.travis.yml add .travis.yml 2012-10-03 13:50:10 +02:00
AssetFile Load incomplete records when trying to get unknown attribute 2012-10-16 03:05:38 +02:00
config.ru split up config.ru 2012-09-30 17:30:57 +02:00
dev.env make config.ru more flexible 2012-09-11 18:17:07 +02:00
Gemfile try using rack cache for in memory caching 2012-10-11 18:46:33 +02:00
Gemfile.lock Load incomplete records when trying to get unknown attribute 2012-10-16 03:05:38 +02:00
Guardfile make assetfile reusable 2012-10-03 16:34:21 +02:00
Guardfile.phantom add a guardfile for running specs 2012-07-05 00:47:05 +02:00
LICENCSE mit license 2012-10-03 13:38:40 +02:00
NOTES.txt Remove getPath/setPath from NOTES, it's already fixed 2012-08-12 13:42:43 +02:00
Procfile move unicorn config to config/unicorn.rb 2012-10-13 03:15:50 +02:00
Rakefile work on profile view 2012-09-10 00:52:42 +02:00
README.md rework the asset pipeline to use environments 2012-10-06 15:28:11 +02:00
run_jasmine.coffee try using jasmine for specs 2012-06-25 23:58:27 +02:00
run_mocha.js try using jasmine for specs 2012-06-25 23:58:27 +02:00
seeds.sql add seeds gitignore config/travis.yml 2012-07-21 20:03:29 +02:00
travis-web.gemspec rename gemspec 2012-10-03 15:24:47 +02:00

Travis CI ember web client

Running the app

This is a static html/js app so you shouldn't need to install anything.

git clone git://github.com/svenfuchs/travis-ember.git
cd travis-ember
open public/index.html

Running locally with a local API server:

RUN_API=1 bundle exec rackup -p 3000

Running against existing API endpoint:

API_ENDPOINT="https://api.travis-ci.org/" RUN_API=0 bundle exec rackup

Run locally, one on ci.dev and one on api.dev:

. dev.env
bundle exec rackup

Compiling assets manually

bundle exec rakep
ENV=production bundle exec rakep

Compiling assets on change

bundle exec guard