[COMPASS-5837] Golang Export to Language improvements Created: 17/May/22  Updated: 29/Oct/23  Resolved: 18/May/22

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: 1.32.0

Type: Task Priority: Major - P3
Reporter: Maurizio Casimirri Assignee: Preston Vasquez
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Documentation Changes: Not Needed
Sprint: Iteration Barnacle

 Description   

Follow up to the support for Golang in Export to Language:

  • the URL in ApplyURI is always "localhost", in the other languages we pass that value as a variable somehow so it reflects the current connection
  • the import: "go.mongodb.org/mongo-driver/mongo/options" is missing with the generated code
  • Missing struct initialization: primitive.Null -> primitive.Null{} and primitive.Undefined -> primitive.Undefined{}
  • The generated code makes vet complain about: "go.mongodb.org/mongo-driver/bson/primitive.E composite literal uses unkeyed fields"


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

Author:

{'name': 'Preston Vasquez', 'email': 'prestonvasquez@icloud.com', 'username': 'prestonvasquez'}

Message: COMPASS-5837 Go Export Improvements (#3103)
Branch: update-compass-crud-to-shared-config
https://github.com/mongodb-js/compass/commit/56e753d8383fcd37341ee777af2f1251dea80a52

Comment by Githook User [ 18/May/22 ]

Author:

{'name': 'Preston Vasquez', 'email': 'prestonvasquez@icloud.com', 'username': 'prestonvasquez'}

Message: COMPASS-5837 Go Export Improvements (#3103)
Branch: COMPASS-5788-show-explain-results
https://github.com/mongodb-js/compass/commit/56e753d8383fcd37341ee777af2f1251dea80a52

Comment by Githook User [ 18/May/22 ]

Author:

{'name': 'Preston Vasquez', 'email': 'prestonvasquez@icloud.com', 'username': 'prestonvasquez'}

Message: COMPASS-5837 Go Export Improvements (#3103)
Branch: main
https://github.com/mongodb-js/compass/commit/56e753d8383fcd37341ee777af2f1251dea80a52

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