Skip to content

Conversation

leorossi
Copy link
Contributor

Description

adds a validateConnectionInfoErrors(connectionInfo: ConnectionInfo) which checks the connectionInfo for common problems identified here as VALIDATION_ERROR

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

Copy link
Collaborator

@mcasimir mcasimir left a 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') {
Copy link
Collaborator

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 :)

@leorossi leorossi force-pushed the COMPASS-5268 branch 3 times, most recently from 92d9896 to 8db50fb Compare January 12, 2022 10:45
Copy link
Member

@Anemy Anemy left a 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

@mcasimir
Copy link
Collaborator

Not sure how they ended up in the diff

great catch, not sure what generates them

@leorossi leorossi merged commit 041086f into main Jan 17, 2022
@leorossi leorossi deleted the COMPASS-5268 branch January 17, 2022 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants