travis-web/app/serializers
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
..
account.coffee Add ember-cli version of the Ember.js app 2015-02-03 09:48:22 +01:00
application.coffee Create adapters and serializers working with v3 and v2 APIs 2015-12-08 10:18:02 +01:00
branch.js Use lastBuild from defaultBranch on repository 2015-12-08 10:18:02 +01:00
build.js Fix handling branches 2015-12-08 10:18:06 +01:00
env-var.coffee Add ember-cli version of the Ember.js app 2015-02-03 09:48:22 +01:00
job.coffee Attribute mappings in serializers should use underscore notation 2015-12-08 10:18:04 +01:00
repo.js app/serializers/repo.coffee -> app/serializers/repo.js 2015-12-08 10:18:05 +01:00
request.coffee Attribute mappings in serializers should use underscore notation 2015-12-08 10:18:04 +01:00
v2_fallback.js Fix handling branches 2015-12-08 10:18:06 +01:00
v3.js Fix handling branches 2015-12-08 10:18:06 +01:00