[COMPASS-3032] javascript-stringify generates incorrect string for query Created: 31/Jul/18 Updated: 29/Oct/23 Resolved: 08/Aug/18 |
|
| Status: | Closed |
| Project: | Compass |
| Component/s: | Export to Language |
| Affects Version/s: | None |
| Fix Version/s: | 1.15.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Anna Herlihy (Inactive) | Assignee: | Anna Herlihy (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Sprint: | Iteration Edamame, Iteration Fig, Iteration Guacamole |
| Description |
|
The export-to-language plugin uses a package called 'javascript-stringify' to create a string from the query, which is passed as a javascript object.
The issue is that it doesn't stringify it correctly, which is causing the compiler to try to compile a string that doesn't make any sense. The solution would probably be to pass the original query/agg string instead of passing the object that is created from the string. Alternatively, could write a stringify method within the plugin that works correctly. |