[COMPASS-7552] [Compass Web] update data-service to allow direct connection with the driver instead of using devtools-connect Created: 21/Dec/23  Updated: 30/Jan/24  Resolved: 08/Jan/24

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

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

Assigned Teams:
Developer Tools
Epic Link: COMPASS-7020
Story Points: 3
Documentation Changes: Not Needed

 Description   

Certain connection types that compass-web is not supposed to support are still require us to polyfill certain devtools-connect dependencies, we can change data-service to bypass using devtools-connect package as most (if not all) the features and fucntionality that devtools-connect provides is not applicable to the web environment in which it will be used.

If we use driver directly, we can remove a lot of polyfills required currently to make devtools-connect work in web environment. See compass-web webpack config for more details.



 Comments   
Comment by Githook User [ 30/Jan/24 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: chore(compass-web): stub out devtools-connect entirely COMPASS-7552 (#5305)

devtools-connect mostly just contains logic that applies to desktop application
scenarios, and not so much the web use case. Instead of manually stubbing out
the transitive dependencies that come with it, stub out the entire devtools-connect
dependency with one that connects to the driver fairly directly.
Branch: ga-releases
https://github.com/mongodb-js/compass/commit/6ef0e4885ed15866e6031412c05f80d955786a48

Comment by Githook User [ 15/Jan/24 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: chore(compass-web): stub out devtools-connect entirely COMPASS-7552 (#5305)

devtools-connect mostly just contains logic that applies to desktop application
scenarios, and not so much the web use case. Instead of manually stubbing out
the transitive dependencies that come with it, stub out the entire devtools-connect
dependency with one that connects to the driver fairly directly.
Branch: beta-releases
https://github.com/mongodb-js/compass/commit/6ef0e4885ed15866e6031412c05f80d955786a48

Comment by Githook User [ 09/Jan/24 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: chore(compass-web): stub out devtools-connect entirely COMPASS-7552 (#5305)

devtools-connect mostly just contains logic that applies to desktop application
scenarios, and not so much the web use case. Instead of manually stubbing out
the transitive dependencies that come with it, stub out the entire devtools-connect
dependency with one that connects to the driver fairly directly.
Branch: remove-enable-gai-experience-feature-flag
https://github.com/mongodb-js/compass/commit/6ef0e4885ed15866e6031412c05f80d955786a48

Comment by Githook User [ 08/Jan/24 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: chore(compass-web): stub out devtools-connect entirely COMPASS-7552 (#5305)

devtools-connect mostly just contains logic that applies to desktop application
scenarios, and not so much the web use case. Instead of manually stubbing out
the transitive dependencies that come with it, stub out the entire devtools-connect
dependency with one that connects to the driver fairly directly.
Branch: main
https://github.com/mongodb-js/compass/commit/6ef0e4885ed15866e6031412c05f80d955786a48

Comment by Githook User [ 05/Jan/24 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna@addaleax.net', 'username': 'addaleax'}

Message: chore(compass-web): stub out devtools-connect entirely COMPASS-7552

devtools-connect mostly just contains logic that applies to desktop application
scenarios, and not so much the web use case. Instead of manually stubbing out
the transitive dependencies that come with it, stub out the entire devtools-connect
dependency with one that connects to the driver fairly directly.
Branch: 7552-dev
https://github.com/mongodb-js/compass/commit/80dcdee15f23c8f5e44b8561d7a21fc16077c37b

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