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

isSliceable is not working for ember data 3.x hasmany relationships #1603

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

betocantu93
Copy link
Contributor

@betocantu93 betocantu93 commented Oct 20, 2023

This commit 83720b4 introduced a bug for ED 3.27.X users (or earlier versions I guess, idk). HasMany relationships don't implement .sort, I think the idea is just to find out if the thing we are dealing with is an Arrayish, I would favor isArray util... which takes into account other ember array-like things

…t least for 3.27.X

This commit removed ember-data array deprecations, but introduced a bug for ED 3.27.X users. HasMany relationships donn't impement .sort, I think the idea is just to finnd out if the thing we are dealing with is an Arrayish, I would favor isArray util... which takes into account other ember array like things

cibernox@83720b4
@betocantu93 betocantu93 changed the title isSliceable was not working for ember data hasmany relationships... a… isSliceable was not working for ember data hasmany relationships Oct 20, 2023
@betocantu93 betocantu93 changed the title isSliceable was not working for ember data hasmany relationships isSliceable is not working for ember data hasmany relationships Oct 20, 2023
@mkszepp mkszepp changed the title isSliceable is not working for ember data hasmany relationships isSliceable is not working for ember data 3.x hasmany relationships Nov 13, 2023
@mkszepp mkszepp merged commit 1ed10b4 into cibernox:master Nov 13, 2023
@mkszepp
Copy link
Collaborator

mkszepp commented Nov 13, 2023

Thank you for reporting! Yes i think this should fix the problem bug with ember-data 3.x. For ember-data 4.x & ember 5 there should no side effects.

I think we should add a test with ember-data for 3.28, while we support this old LTS

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

Successfully merging this pull request may close these issues.

2 participants