[COMPASS-5772] whatwg-url breaks export-to-language plugin in Cloud browser environment Created: 26/Apr/22  Updated: 29/Oct/23  Resolved: 27/Apr/22

Status: Closed
Project: Compass
Component/s: Export to Language
Affects Version/s: None
Fix Version/s: No version

Type: Bug Priority: Major - P3
Reporter: Sergey Petushkov Assignee: Sergey Petushkov
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File screenshot-1.png    
Issue Links:
Related
related to COMPASS-5723 Investigate compass-aggregations / co... Closed
Documentation Changes: Not Needed

 Description   

Cloud bundles application code to support browsers as far back away as ie10, this causes babel in their build config to transform generator code to something that is not fully compatible with actual generator behavior which causes plugin to completely break when imported in the application. Luckily the issue happens only in whatwg-url code on a non-critical path of the plugin. We should find a way to work around that so that Cloud can update Compass plugin to latest version



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

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: chore(compass-export-to-language): Remove usage of `mongodb-connection-string-url` from plugin COMPASS-5772 (#3023)

  • chore(webpack-config-compass): Add transform-runtime plugin to minimise the amount of babel runtime code in the bundle
  • chore(export-to-language, compass-collection): Pass "normalized" connection string to the plugins from compass-collection store instead of deriving it from dataService
  • chore(export-to-language, collection): Fix depcheck issues
Comment by Githook User [ 02/May/22 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: chore(compass-export-to-language): Remove usage of `mongodb-connection-string-url` from plugin COMPASS-5772 (#3023)

  • chore(webpack-config-compass): Add transform-runtime plugin to minimise the amount of babel runtime code in the bundle
  • chore(export-to-language, compass-collection): Pass "normalized" connection string to the plugins from compass-collection store instead of deriving it from dataService
  • chore(export-to-language, collection): Fix depcheck issues
Comment by Githook User [ 27/Apr/22 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: chore(compass-export-to-language): Remove usage of `mongodb-connection-string-url` from plugin COMPASS-5772 (#3023)

  • chore(webpack-config-compass): Add transform-runtime plugin to minimise the amount of babel runtime code in the bundle
  • chore(export-to-language, compass-collection): Pass "normalized" connection string to the plugins from compass-collection store instead of deriving it from dataService
  • chore(export-to-language, collection): Fix depcheck issues
Comment by Githook User [ 27/Apr/22 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: chore(compass-export-to-language): Remove usage of `mongodb-connection-string-url` from plugin COMPASS-5772 (#3023)

  • chore(webpack-config-compass): Add transform-runtime plugin to minimise the amount of babel runtime code in the bundle
  • chore(export-to-language, compass-collection): Pass "normalized" connection string to the plugins from compass-collection store instead of deriving it from dataService
  • chore(export-to-language, collection): Fix depcheck issues
Comment by Githook User [ 27/Apr/22 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: chore(compass-export-to-language): Remove usage of `mongodb-connection-string-url` from plugin COMPASS-5772 (#3023)

  • chore(webpack-config-compass): Add transform-runtime plugin to minimise the amount of babel runtime code in the bundle
  • chore(export-to-language, compass-collection): Pass "normalized" connection string to the plugins from compass-collection store instead of deriving it from dataService
  • chore(export-to-language, collection): Fix depcheck issues
Comment by Githook User [ 27/Apr/22 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: chore(compass-export-to-language): Remove usage of `mongodb-connection-string-url` from plugin COMPASS-5772 (#3023)

  • chore(webpack-config-compass): Add transform-runtime plugin to minimise the amount of babel runtime code in the bundle
  • chore(export-to-language, compass-collection): Pass "normalized" connection string to the plugins from compass-collection store instead of deriving it from dataService
  • chore(export-to-language, collection): Fix depcheck issues
Comment by Githook User [ 27/Apr/22 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: chore(compass-export-to-language): Remove usage of `mongodb-connection-string-url` from plugin COMPASS-5772 (#3023)

  • chore(webpack-config-compass): Add transform-runtime plugin to minimise the amount of babel runtime code in the bundle
  • chore(export-to-language, compass-collection): Pass "normalized" connection string to the plugins from compass-collection store instead of deriving it from dataService
  • chore(export-to-language, collection): Fix depcheck issues
Generated at Wed Feb 07 22:40:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.