-
Notifications
You must be signed in to change notification settings - Fork 237
feat(connections): adds form validation errors utility COMPASS-5268 #2639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, but there are few things to be changed before we can merge it
connectionString: ConnectionString | ||
): FormValidationError[] { | ||
const errors: FormValidationError[] = []; | ||
if (connectionString.searchParams.get('authMechanism') === 'MONGODB-X509') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fyi, if #2651 is merged first it might be nice to update the core here to have similar changes :)
92d9896
to
8db50fb
Compare
8db50fb
to
70c2646
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there are new package-lock.json files in the changes - I think we probably want to add git ignores for those like the one for packages? https://github.com/mongodb-js/compass/blob/main/.gitignore#L20
Not sure how they ended up in the diff
scripts/package-lock.json
configs/**/package-lock.json
great catch, not sure what generates them |
415e1f2
to
cec75ea
Compare
Description
adds a
validateConnectionInfoErrors(connectionInfo: ConnectionInfo)
which checks theconnectionInfo
for common problems identified here asVALIDATION_ERROR
Checklist
Motivation and Context
Open Questions
Dependents
Types of changes