[COMPASS-2957] If no optional providers are supplied in a stage, no commas should be added to the generated code Created: 21/Jun/18 Updated: 29/Oct/23 Resolved: 28/Jun/18 |
|
| Status: | Closed |
| Project: | Compass |
| Component/s: | Export to Language |
| Affects Version/s: | 1.15.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Grigori Melnik (Inactive) | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Epic Link: | COMPASS-2309 |
| Description |
|
Using 1.15.0-dev (1.15.0-dev)
Currently, the conversion expects all parameters to be provided and accounts for all of them. As a result, you see conversions that include multiple commas in the row. See screenshot. We should be able to identify if optional parameters are present or not and only include commas as delimiters when needed.
|
| Comments |
| Comment by Anna Herlihy (Inactive) [ 28/Jun/18 ] |
|
https://github.com/mongodb-js/bson-compilers/commit/1ba10fbf53f2e39e2abec400d076c01a3dbddbe3 |