-
Notifications
You must be signed in to change notification settings - Fork 1.1k
DATAMONGO-1141 - Add support for $push $sort in Update. #405
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
DATAMONGO-1141 - Add support for $push $sort in Update. #405
Conversation
Prepare issue branch.
Or I can refactor it into a single modifier with one constructor accepting Sort and another accepting Direction, if you find it more appropriate. |
Hi @pavelvodrazka, thanks for this PR. The code looks pretty decent. Have you signed the CLA? Having one |
Hi Mark, thanks for review. Yes, I have signed the CLA. I'm going to refactor my changes and submit new PR in few minutes. |
a531d6e
to
6bb0249
Compare
@mp911de I have pushed refactored modifier. Please revise. |
Sorting update modifier added. Supports sorting arrays by document fields and element values.
6bb0249
to
26bd879
Compare
Thanks a lot. I'll take the PR from here. |
Sorting update modifier added. Supports sorting arrays by document fields and element values. Original pull request: #405.
Add property to field name mapping for Sort orders by moving Sort mapping to UpdateMapper. Fix typo. Add JavaDoc. Reformat code. Remove trailing whitespaces. Original pull request: #405.
Aligned assertion messages for consistency. Fixed imports in UpdateMapperUnitTests. Original pull request: #405.
Sorting update modifier added. Supports sorting arrays by document fields and element values. Original pull request: #405.
Add property to field name mapping for Sort orders by moving Sort mapping to UpdateMapper. Fix typo. Add JavaDoc. Reformat code. Remove trailing whitespaces. Original pull request: #405.
Aligned assertion messages for consistency. Fixed imports in UpdateMapperUnitTests. Original pull request: #405.
That's polished, merged and forward-ported. |
Sorting update modifiers added. DocumentSort for sorting arrays by document fields and ValueSort for sorting arrays by element values.