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

fix: deprecated record-array rejectBy use optional value if supplied #8399

Merged
merged 1 commit into from
Feb 25, 2023

Conversation

mrloop
Copy link
Contributor

@mrloop mrloop commented Jan 18, 2023

Description

If an optional value supplied as second arg to rejectBy it should be compared to the value retrieved using the key.

Notes for the release

Fix regression in deprecated rejectBy behaviour when optional value to test against is used.

If an optional value supplied as second arg to `rejectBy` it should be
compared to the value retrieved using the `key`.
@@ -141,6 +141,49 @@ module('unit/record-arrays/record-array - DS.RecordArray', function (hooks) {
}
);

deprecatedTest(
'#rejectBy',
{ id: 'ember-data:deprecate-array-like', until: '5.0', count: 3 },
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure what value count should be.

Copy link
Contributor

Choose a reason for hiding this comment

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

count is number of expected times this deprecation will be seen

@runspired runspired added 🏷️ bug This PR primarily fixes a reported issue 🎯 canary PR is targeting canary (default) labels Feb 25, 2023
@runspired runspired closed this Feb 25, 2023
@runspired runspired reopened this Feb 25, 2023
@runspired runspired merged commit 1adf81c into emberjs:master Feb 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎯 canary PR is targeting canary (default) 🏷️ bug This PR primarily fixes a reported issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants