Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX release] fix destroyRecord followed by unloadRecord and impli… #5077

Merged
merged 1 commit into from
Jul 21, 2017

Conversation

stefanpenner
Copy link
Member

@stefanpenner stefanpenner commented Jul 21, 2017

…cit inverse relationships

  • confirm it works

let rel = this._implicitRelationships[key];

let implicitRelationships = this._implicitRelationships;
this.__implicitRelationships = null;
Copy link
Member

@bmac bmac Jul 21, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels a little "insider baseball" to me but I don't have a better suggestion.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bmac well, we are in the same class were it is private... Ya It's not amazing. Other ideas end up being junky too. I may circle back after this gets backported, and try to tidy this pattern up.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think the basic approach is fine and i suspect it seems a bit iffy mainly because these data structures already have a lot of complicated state. I suspect landing the simplify relationships work will make this kind of resetting not look so bad

@stefanpenner stefanpenner merged commit 930010e into master Jul 21, 2017
@stefanpenner stefanpenner deleted the fix-unload-after-destroy-implicit-inverse branch July 21, 2017 05:06
Copy link
Member

@hjdivad hjdivad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

let rel = this._implicitRelationships[key];

let implicitRelationships = this._implicitRelationships;
this.__implicitRelationships = null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think the basic approach is fine and i suspect it seems a bit iffy mainly because these data structures already have a lot of complicated state. I suspect landing the simplify relationships work will make this kind of resetting not look so bad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants