[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: PNG File image-2018-07-31-11-47-10-597.png    
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.


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