Commit Graph

5 Commits

Author SHA1 Message Date
Piotr Sarnacki
b4ad8a54b7 Disable dashboard test for now 2015-11-12 12:25:55 +01:00
Piotr Sarnacki
3f6ad9cf1a Fix handling relationships for V2 API
* we should look for both embedded relationship and relationship key,
  so in cases like for commit, when there's a full commit data on
  "commit" property, and only id at "commit_id", we will use commit data
* we can't add @type to V2 fallback, because in other places we chack
  for @type to distinguish V2 and V3 payloads
* there's no need to include a record in "included" if there's only a
  type and an id there
2015-11-11 15:15:36 +01:00
Piotr Sarnacki
5a2c86697b Properly include relationships for V2 payloads 2015-11-11 12:38:22 +01:00
Piotr Sarnacki
b83e70c324 Update serializers to work with jobs endpoint response 2015-11-10 17:54:43 +01:00
Piotr Sarnacki
6992a79a93 Create adapters and serializers working with v3 and v2 APIs
This commit adds adapters and serializers for v3, but also a fallback
serializer for v2, which allows to handle v2 and v3 payloads at the same
time. This is needed, because when we use v3 endpoint for one of the
models (in this case repo), we can also get embedded records of other
types (like branch or build).
2015-11-09 13:46:54 +01:00