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

UpdateOperations does not support capped arrays #640

Closed
dgolub opened this issue Jul 25, 2014 · 4 comments
Closed

UpdateOperations does not support capped arrays #640

dgolub opened this issue Jul 25, 2014 · 4 comments
Milestone

Comments

@dgolub
Copy link

dgolub commented Jul 25, 2014

The UpdateOperations class does not currently support using the $slice operator to create capped arrays. It would be beneficial to be able to use Morphia to update collections containing capped arrays.

@trishagee
Copy link
Contributor

Sounds reasonable - do you have a vision as to how that will look? For example, code that shows how you'd like to use slice?

@dgolub
Copy link
Author

dgolub commented Aug 8, 2014

Maybe have two new methods, addCapped and addAllCapped, that mirror the existing add and addAll methods and take an extra parameter specifying the maximum size of the array.

@trishagee trishagee added this to the post-1.0 milestone Aug 8, 2014
@trishagee
Copy link
Contributor

That sounds sensible. I like the idea of adding support for this, but I'm going to schedule it for post-1.0 as I don't think it's a feature that's mandatory for getting to a 1.0 release.

@evanchooly evanchooly removed this from the post-1.0 milestone Jan 14, 2016
@evanchooly evanchooly added this to the 1.3.0 milestone Jun 13, 2016
@evanchooly
Copy link
Member

fixed with commit e467ac7

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

No branches or pull requests

3 participants