|
NOTE: this MUST be done before enabling the new form, otherwise the directConnection setting won't be captured in the initial migration and will require a new migration to keep backward compatibility.
It can be done even before the new form is ready, as it would work well also with the old form.
Description:
These lines: https://github.com/mongodb-js/compass/blob/ecda9f93d998136f566e15d6f433e3892349f054/packages/data-service/src/connect-mongo-client.ts#L104-L111
are adding `directConnection=true` arbitrarily whenever is possible on behalf of the user, and this behaviour cannot be disabled.
Now that `directConnection` is surfaced in the form, we want to move this to the conversion from connection model to connection info, so it will be persisted, the user will have control over it, and won't cause any unexpected behaviour anymore.
|