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

Upgrade ember data to 3.24 and model fragments to 5.0.0-beta.2 #11447

Merged
merged 5 commits into from
Nov 5, 2021
Merged

Upgrade ember data to 3.24 and model fragments to 5.0.0-beta.2 #11447

merged 5 commits into from
Nov 5, 2021

Conversation

pangratz
Copy link
Contributor

@pangratz pangratz commented Nov 4, 2021

@ChaiWithJai here's the result of my investigation to the failing upgrade. Feel free to use the changes within #11419 .

An empty string is not a valid JSON response which is expected by this
endpoint.
@hashicorp-cla
Copy link

hashicorp-cla commented Nov 4, 2021

CLA assistant check
All committers have signed the CLA.

`allocation.reload()` has differnt semantics for reloading, as it will
reload the record in the background and immediately resolve [1].

By using the stores' findRecord and specifying `backgroundReload:
false`, we make sure we await the response from the server and hereby
have the complete record once we continue in the code.

Using `allocation.reoad()` causes and infinite loop when we upgrade
ember-data to 3.16 (and model fragments to 5.0.0-beta.2).

[1] This is, unless `shouldBackgroundReload` on the adapter returns
false, but it's true by default.
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants