[COMPASS-3455] $slice operator does not work for projection Created: 07/Feb/19  Updated: 29/Oct/23  Resolved: 22/Feb/19

Status: Closed
Project: Compass
Component/s: Compass
Affects Version/s: 1.14.7
Fix Version/s: 1.18.0

Type: Bug Priority: Minor - P4
Reporter: Sanjay Gianchandani Assignee: Durran Jordan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

MacOS


Attachments: PNG File Screenshot 2019-02-07 at 7.34.23 PM.png     PNG File Screenshot 2019-02-07 at 7.36.01 PM.png    
Issue Links:
Documented
Documentation Changes: Needed
Documentation Changes Summary:

If there's a different way of executing $slice in compass, we should mention it somewhere in our docs.

Sprint: Iteration Yuca

 Description   

Was also tried by customer on windows, using latest release from our download center for compass.

$slice for projection which works fine from mongo shell, gives error as malformed(thereby not allowing the query to be executed) in compass. Screenshots attached.



 Comments   
Comment by Githook User [ 22/Feb/19 ]

Author:

{'name': 'Durran Jordan', 'username': 'durran', 'email': 'durran@gmail.com'}

Message: COMPASS-3455: Fix operator parsing
Branch: master
https://github.com/10gen/compass/commit/db16fc6fc7bfce161a0b41c8566b4393cecc274a

Comment by Githook User [ 22/Feb/19 ]

Author:

{'name': 'Durran Jordan', 'email': 'durran@gmail.com', 'username': 'durran'}

Message: COMPASS-3455: Fix operator parsing
Branch: COMPASS-2180
https://github.com/10gen/compass/commit/7f8b2562da5030309ff0e5525e4855a44bbfcd42

Generated at Wed Feb 07 22:33:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.