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

ReferenceMany's sort should not be used with some strategies #1191

Closed
wants to merge 1 commit into from

Conversation

malarzm
Copy link
Member

@malarzm malarzm commented Aug 7, 2015

Fixes #623. Strategies using $set should be ok as they are setting whole collection so it will just become sorted in the database, others could unset wrong index.

I was wondering whether to revive #524 but that would be perfect if indeed all references would be unique (or using addToSet strategy) but I'm not sure if we can assume someone is not depending on having multiple references...

@malarzm malarzm added the Task label Aug 7, 2015
@malarzm malarzm added this to the 1.0.0 milestone Aug 7, 2015
@alcaeus
Copy link
Member

alcaeus commented Aug 12, 2015

Looks good to me 👍
Maybe we can pick up #524 again for 1.x.

malarzm added a commit that referenced this pull request Aug 13, 2015
@malarzm
Copy link
Member Author

malarzm commented Aug 13, 2015

Merged manually in 56796fa

I've scheduled #524 for 1.x to come back to that :)

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