[COMPASS-5476] Remove validation for saving connections with the new connection form Created: 31/Jan/22  Updated: 29/Oct/23  Resolved: 08/Mar/22

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

Type: Task Priority: Major - P3
Reporter: Rhys Howell Assignee: Maurizio Casimirri
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: COMPASS-4948
Story Points: 5
Documentation Changes: Not Needed
Sprint: Iteration Utica, Iteration Wolverhampton

 Description   

Currently, when saving a connection in the new connection form we transfer the connectionInfo into the old connection-model and then save it.
At some point in the conversion and saving the connection-model validates the model. This causes some unforeseen errors as we're more flexible and permissive with connections in the new connectionInfo. When these errors occur the model is not saved. This ticket involves removing that validation with connections that are saved using the new connection form. We should ensure that this doesn't not break the existing

An example for testing this is using a connection string with the `authMechanism` not fully capitalized:
"authMechanism=SCRAM-sha-1"
mongodb://a123:b123@localhost:27017/?authMechanism=SCRAM-sha-1
Saving this connection string as a favorite is a shortcut to show this behavior.



 Comments   
Comment by Githook User [ 08/Feb/22 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(connection-storage): disable legacy validation on save COMPASS-5476 (#2763)
Branch: 1.31-releases
https://github.com/mongodb-js/compass/commit/cf20c023810ab013e89921cb2cc4fbad87b87253

Comment by Githook User [ 07/Feb/22 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(connection-storage): disable legacy validation on save COMPASS-5476 (#2763)
Branch: COMPASS-5417-sort-filters-on-entry-screen
https://github.com/mongodb-js/compass/commit/cf20c023810ab013e89921cb2cc4fbad87b87253

Comment by Githook User [ 07/Feb/22 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(connection-storage): disable legacy validation on save COMPASS-5476 (#2763)
Branch: main
https://github.com/mongodb-js/compass/commit/cf20c023810ab013e89921cb2cc4fbad87b87253

Comment by Githook User [ 04/Feb/22 ]

Author:

{'name': 'mcasimir', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(connection-storage): disable legacy validation on save COMPASS-5476
Branch: disable-connection-validation-on-save
https://github.com/mongodb-js/compass/commit/5c159348763d5d1342fde1cc60ff98fa3ef55bb7

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