From 9393a6f3e6ddf0ff6cdd79a33739571c66267614 Mon Sep 17 00:00:00 2001 From: Chris Thoburn Date: Mon, 23 Jul 2018 15:13:59 -0700 Subject: [PATCH 1/2] fix createRecord re-fetch --- .../system/relationships/state/relationship.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/addon/-private/system/relationships/state/relationship.js b/addon/-private/system/relationships/state/relationship.js index fc9477c6a84..6286c60cf75 100644 --- a/addon/-private/system/relationships/state/relationship.js +++ b/addon/-private/system/relationships/state/relationship.js @@ -507,7 +507,7 @@ export default class Relationship { this.store._updateRelationshipState(this); } - updateLink(link, initial) { + updateLink(link) { heimdall.increment(updateLink); warn( `You pushed a record of type '${this.internalModel.modelName}' with a relationship '${ @@ -528,10 +528,6 @@ export default class Relationship { this.link = link; this.fetchPromise = null; this.setRelationshipIsStale(true); - - if (!initial) { - this.internalModel.notifyPropertyChange(this.key); - } } reload() { @@ -693,7 +689,7 @@ export default class Relationship { let relatedLink = _normalizeLink(payload.links.related); if (relatedLink && relatedLink.href && relatedLink.href !== this.link) { hasLink = true; - this.updateLink(relatedLink.href, initial); + this.updateLink(relatedLink.href); } } @@ -721,6 +717,10 @@ export default class Relationship { this.setRelationshipIsEmpty(relationshipIsEmpty); } else if (hasLink) { this.setRelationshipIsStale(true); + + if (!initial) { + this.internalModel.notifyPropertyChange(this.key); + } } } From b39e11af97660a51f329548b595f764ebf430833 Mon Sep 17 00:00:00 2001 From: Chris Thoburn Date: Mon, 27 Aug 2018 11:34:09 -0700 Subject: [PATCH 2/2] ensure travis-ci run --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 3930fd57f83..033036f8dff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,8 @@ branches: - master - beta - release + # prior release branches + - /^release-\d+-\d+/ # npm version tags - /^v\d+\.\d+\.\d+/