travis-web/app/models
Piotr Sarnacki 7ae4d6aa7d Fix handling branches
This commit fixes handling of branches when using both V3 and V2. The
changes include:

  * proper definition of relationships that reflect V3 structure, so for
    example build belongs to a branch
  * setting up inverse records for some of the relationships. without
    doing that Ember Data can handle relationships in a surprising way,
    for example if the same record is referenced in 2 places in a
    belongsTo relationship, Ember Data will remove one of the references
    without proper inverse definitions
  * we need to add id when extracting branch as a relationship. Ember
    Data expects all of the relationships to have an id
  * lastly, we need to mimic the structure of the V3 API in V2 payloads,
    so for a build payload I'm now creating a branch record
2015-12-08 10:18:06 +01:00
..
.gitkeep Add ember-cli version of the Ember.js app 2015-02-03 09:48:22 +01:00
account.coffee Add avatars on accounts list 2015-03-25 16:36:07 +01:00
annotation.coffee Add ember-cli version of the Ember.js app 2015-02-03 09:48:22 +01:00
branch.coffee Fix handling branches 2015-12-08 10:18:06 +01:00
broadcast.coffee Use storage service instead of Travis.storage 2015-12-08 10:18:03 +01:00
build.coffee Fix handling branches 2015-12-08 10:18:06 +01:00
commit.coffee Add missing fields to models 2015-02-11 11:18:24 +01:00
env-var.coffee Add ember-cli version of the Ember.js app 2015-02-03 09:48:22 +01:00
hook.coffee Change config keys to camel case 2015-02-05 11:35:47 +01:00
job.coffee Fix handling branches 2015-12-08 10:18:06 +01:00
log.coffee Move ajax and auth into services 2015-12-08 10:18:02 +01:00
model.coffee Add ember-cli version of the Ember.js app 2015-02-03 09:48:22 +01:00
repo.coffee Fix handling branches 2015-12-08 10:18:06 +01:00
request.coffee Fix requests page 2015-02-10 09:41:57 +01:00
ssh-key.coffee fix ssh-key displays 2015-07-20 17:11:59 +02:00
user.coffee Move ajax and auth into services 2015-12-08 10:18:02 +01:00