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

refactor: remove non strict and non explicit relationships deprecation #1268

Merged

Conversation

jaredgalanis
Copy link
Contributor

@jaredgalanis jaredgalanis commented May 25, 2024

This one involves the following deprecations:

https://deprecations.emberjs.com/ember-data/v4.x#toc_ember-data-deprecate-non-strict-relationships

This one we already got for free by upgrading ember simple auth in the process of the auth refactoring:

ember-simple-auth.initializer.setup-session-restoration

@jaredgalanis jaredgalanis force-pushed the refactor-fix-non-strict-and-non-explicit-relationships branch from 97ca4a1 to c52502b Compare May 25, 2024 22:37
@jaredgalanis jaredgalanis changed the title refactor: fix non strict and non explicit relationships refactor: remove non strict and non explicit relationships deprecation May 26, 2024
Copy link
Contributor

@markpatton markpatton left a comment

Choose a reason for hiding this comment

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

Looks good. Behaves well in pass-docker.

Copy link
Contributor

@markpatton markpatton left a comment

Choose a reason for hiding this comment

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

I noticed these warnings in the console:

warn.js:59 WARNING: You pushed a record of type 'funder' with a relationship 'policy' configured as 'async: false'. You've included a link but no primary data, this may be an error in your payload. EmberData will treat this relationship as known-to-be-empty.

click @ index.js:1072
warn.js:59 WARNING: You pushed a record of type 'publication' with a relationship 'journal' configured as 'async: false'. You've included a link but no primary data, this may be an error in your payload. EmberData will treat this relationship as known-to-be-empty.

When I look at the funder.js and publication.js models I see they have the async: false, inverse: null which were removed from the others.

Base automatically changed from refactor-update-deprecation-workflow-list to main June 27, 2024 10:35
@jaredgalanis jaredgalanis merged commit 2ceff3a into main Jun 27, 2024
4 checks passed
@jaredgalanis jaredgalanis deleted the refactor-fix-non-strict-and-non-explicit-relationships branch June 27, 2024 10:45
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.

2 participants