-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(webview): remove old form VSCODE-491 (#636)
- Loading branch information
Showing
103 changed files
with
314 additions
and
9,123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1036,13 +1036,9 @@ | |
"dependencies": { | ||
"@babel/parser": "^7.22.6", | ||
"@babel/traverse": "^7.23.2", | ||
"@fortawesome/fontawesome-svg-core": "^6.4.0", | ||
"@fortawesome/free-solid-svg-icons": "^6.4.0", | ||
"@fortawesome/react-fontawesome": "^0.2.0", | ||
"@iconify-icons/codicon": "^1.2.25", | ||
"@iconify/react": "^1.1.4", | ||
"@mongodb-js/compass-components": "^1.20.0", | ||
"@mongodb-js/connection-form": "^1.20.4", | ||
"@mongodb-js/connection-info": "^0.1.1", | ||
"@mongodb-js/mongodb-constants": "^0.7.1", | ||
"@mongosh/browser-runtime-electron": "^2.0.2", | ||
"@mongosh/i18n": "^2.0.2", | ||
|
@@ -1051,7 +1047,6 @@ | |
"@segment/analytics-node": "^1.1.4", | ||
"bson": "^6.1.0", | ||
"bson-transpilers": "^2.0.4", | ||
"classnames": "^2.3.2", | ||
"debug": "^4.3.4", | ||
"dotenv": "^16.3.1", | ||
"lodash": "^4.17.21", | ||
|
@@ -1060,16 +1055,13 @@ | |
"mongodb-build-info": "^1.6.2", | ||
"mongodb-cloud-info": "^2.1.0", | ||
"mongodb-connection-string-url": "^2.6.0", | ||
"mongodb-data-service": "^22.17.1", | ||
"mongodb-data-service-legacy": "npm:[email protected]", | ||
"mongodb-data-service": "^22.17.0", | ||
"mongodb-log-writer": "^1.4.0", | ||
"mongodb-query-parser": "^3.1.3", | ||
"mongodb-schema": "^11.2.2", | ||
"numeral": "^2.0.6", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"react-redux": "^8.1.1", | ||
"redux": "^4.2.1", | ||
"resolve-mongodb-srv": "^1.1.2", | ||
"ts-log": "^2.2.5", | ||
"uuid": "^8.3.2", | ||
|
@@ -1088,7 +1080,6 @@ | |
"@types/babel__traverse": "^7.20.1", | ||
"@types/chai": "^4.3.5", | ||
"@types/debug": "^4.1.8", | ||
"@types/enzyme": "^3.10.13", | ||
"@types/glob": "^7.2.0", | ||
"@types/jest": "^26.0.24", | ||
"@types/micromatch": "^4.0.2", | ||
|
@@ -1114,7 +1105,6 @@ | |
"css-loader": "^6.8.1", | ||
"depcheck": "^1.4.3", | ||
"duplicate-package-checker-webpack-plugin": "^3.0.0", | ||
"electron": "^23.3.9", | ||
"enzyme": "^3.11.0", | ||
"eslint": "^8.44.0", | ||
"eslint-config-mongodb-js": "^5.0.3", | ||
|
@@ -1154,11 +1144,6 @@ | |
"webpack-merge": "^5.9.0", | ||
"xvfb-maybe": "^0.2.1" | ||
}, | ||
"overrides": { | ||
"mongodb-connection-model": { | ||
"@mongodb-js/compass-utils": "0.3.4" | ||
} | ||
}, | ||
"precommit": [ | ||
"check" | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,8 @@ import { afterEach, beforeEach } from 'mocha'; | |
import assert from 'assert'; | ||
import * as mongodbDataService from 'mongodb-data-service'; | ||
|
||
import AUTH_STRATEGY_VALUES from '../../views/webview-app/legacy/connection-model/constants/auth-strategies'; | ||
import ConnectionController, { | ||
DataServiceEventTypes, | ||
launderConnectionOptionTypeFromLegacyToCurrent, | ||
} from '../../connectionController'; | ||
import formatError from '../../utils/formatError'; | ||
import { StorageController, StorageVariables } from '../../storage'; | ||
|
@@ -18,9 +16,6 @@ import { | |
DefaultSavingLocations, | ||
SecretStorageLocation, | ||
} from '../../storage/storageController'; | ||
import READ_PREFERENCES from '../../views/webview-app/legacy/connection-model/constants/read-preferences'; | ||
import SSH_TUNNEL_TYPES from '../../views/webview-app/legacy/connection-model/constants/ssh-tunnel-types'; | ||
import SSL_METHODS from '../../views/webview-app/legacy/connection-model/constants/ssl-methods'; | ||
import { StatusView } from '../../views'; | ||
import TelemetryService from '../../telemetry/telemetryService'; | ||
import { ExtensionContextStub } from './stubs'; | ||
|
@@ -762,9 +757,7 @@ suite('Connection Controller Test Suite', function () { | |
await sleep(50); | ||
|
||
return mongodbDataService.connect({ | ||
connectionOptions: launderConnectionOptionTypeFromLegacyToCurrent( | ||
connectionOptions.connectionOptions | ||
), | ||
connectionOptions: connectionOptions.connectionOptions, | ||
}); | ||
} | ||
); | ||
|
@@ -868,39 +861,6 @@ suite('Connection Controller Test Suite', function () { | |
); | ||
}); | ||
|
||
test('parseNewConnection converts a connection model to a connection info and overrides a default appname', () => { | ||
const connectionInfo = testConnectionController.parseNewConnection({ | ||
_id: 'c4871b21-92c4-40e2-a2c2-fdd551cff114', | ||
isFavorite: false, | ||
name: 'Local', | ||
isSrvRecord: true, | ||
hostname: 'host.u88dd.test.test', | ||
port: 27017, | ||
hosts: [ | ||
{ host: 'host-shard-00-00.u88dd.test.test', port: 27017 }, | ||
{ host: 'host-shard-00-01.u88dd.test.test', port: 27017 }, | ||
{ host: 'host-shard-00-02.u88dd.test.test', port: 27017 }, | ||
], | ||
extraOptions: {}, | ||
readPreference: READ_PREFERENCES.PRIMARY, | ||
authStrategy: AUTH_STRATEGY_VALUES.MONGODB, | ||
kerberosCanonicalizeHostname: false, | ||
sslMethod: SSL_METHODS.SYSTEMCA, | ||
sshTunnel: SSH_TUNNEL_TYPES.NONE, | ||
sshTunnelPort: 22, | ||
mongodbUsername: 'username', | ||
mongodbPassword: 'somepassword', | ||
mongodbDatabaseName: 'admin', | ||
}); | ||
|
||
assert.deepStrictEqual(connectionInfo, { | ||
id: 'c4871b21-92c4-40e2-a2c2-fdd551cff114', | ||
connectionOptions: { | ||
connectionString: `mongodb+srv://username:[email protected]/?authSource=admin&readPreference=primary&appname=mongodb-vscode+${version}&ssl=true`, | ||
}, | ||
}); | ||
}); | ||
|
||
test('getMongoClientConnectionOptions returns url and options properties', async () => { | ||
await testConnectionController.addNewConnectionStringAndConnect( | ||
TEST_DATABASE_URI | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.