[COMPASS-2888] Agg pipeline builder to autocompolete newly defined fields Created: 27/May/18  Updated: 29/Oct/23  Resolved: 29/Mar/19

Status: Closed
Project: Compass
Component/s: Aggregation pipeline, Compass
Affects Version/s: 1.14.0-beta
Fix Version/s: 1.19.0

Type: Story Priority: Minor - P4
Reporter: Grigori Melnik (Inactive) Assignee: Lucas Hrabovsky (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File MongoDB_Compass_Beta_story_get_autocomplete_on_newly_defined_fields.png    
Issue Links:
Related
related to COMPASS-3294 [SPIKE] Agg. pipeline builder editor ... Closed
Epic Link: COMPASS-3220
Story Points: 3
Sprint: Iteration Zucchini, Iteration Antelope

 Description   

Currently, the Agg Pipeline builder offers field autocompletion based on the collection selected for aggregation. I'd like to see this extended to the new fields defined in the $project stages that precede any new stages that attempts to use them. See example attached.



 Comments   
Comment by Githook User [ 29/Mar/19 ]

Author:

{'email': 'hrabovsky.lucas@gmail.com', 'name': 'Lucas Hrabovsky', 'username': 'imlucas'}

Message: COMPASS-2888: Autocomplete Projections (#1675)

See: mongodb-js/compass-aggregations#80
Fixes: COMPASS-2888(https://jira.mongodb.org/browse/COMPASS-2888)

    1. Test Case from COMPASS-2888

Projection from previous stage now available in the completion list:
![Screenshot 2019-03-27 10 49 04](https://user-images.githubusercontent.com/23074/55086228-64dfca00-507e-11e9-8a55-05a7e8ca28e6.png)

Disabling the previous stage now hides the projection in the completion list:
![Screenshot 2019-03-27 10 49 38](https://user-images.githubusercontent.com/23074/55086245-6a3d1480-507e-11e9-8190-6de2e581c964.png)

Reordering the stage hides the projection in the completion list as it has not been defined by the user yet:
![Screenshot 2019-03-27 10 50 41](https://user-images.githubusercontent.com/23074/55086249-6f01c880-507e-11e9-87d9-46260530c941.png)
Branch: master
https://github.com/10gen/compass/commit/838551f890ad917683edce2373eb9013e55e4eb5

Comment by Lucas Hrabovsky (Inactive) [ 29/Mar/19 ]

https://github.com/10gen/compass/pull/1675

Comment by Githook User [ 29/Mar/19 ]

Author:

{'email': 'hrabovsky.lucas@gmail.com', 'name': 'Lucas Hrabovsky', 'username': 'imlucas'}

Message: COMPASS-2888: Autocomplete Projections

See: mongodb-js/compass-aggregations#80
Fixes: COMPASS-2888(https://jira.mongodb.org/browse/COMPASS-2888)

    1. Test Case from COMPASS-2888

Projection from previous stage now available in the completion list:
![Screenshot 2019-03-27 10 49 04](https://user-images.githubusercontent.com/23074/55086228-64dfca00-507e-11e9-8a55-05a7e8ca28e6.png)

Disabling the previous stage now hides the projection in the completion list:
![Screenshot 2019-03-27 10 49 38](https://user-images.githubusercontent.com/23074/55086245-6a3d1480-507e-11e9-8190-6de2e581c964.png)

Reordering the stage hides the projection in the completion list as it has not been defined by the user yet:
![Screenshot 2019-03-27 10 50 41](https://user-images.githubusercontent.com/23074/55086249-6f01c880-507e-11e9-87d9-46260530c941.png)
Branch: projection-autocomplete
https://github.com/10gen/compass/commit/2de43a9b4b50e1243092ef81501931b5754a2966

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