Skip to content

Commit 7852258

Browse files
committed
Rename dbType to serverName
1 parent fa7b036 commit 7852258

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

configs/testing-library-compass/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export class MockDataService
190190
host: {},
191191
genuineMongoDB: {
192192
isGenuine: true,
193-
dbType: 'mongodb',
193+
serverName: 'mongodb',
194194
},
195195
dataLake: {
196196
isDataLake: false,

packages/compass-connections/src/stores/connections-store-redux.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1844,7 +1844,7 @@ const connectWithOptions = (
18441844
is_dataLake: dataLake.isDataLake,
18451845
is_enterprise: build.isEnterprise,
18461846
is_genuine: genuineMongoDB.isGenuine,
1847-
non_genuine_server_name: genuineMongoDB.dbType,
1847+
non_genuine_server_name: genuineMongoDB.serverName,
18481848
server_version: build.version,
18491849
server_arch: host.arch,
18501850
server_os_family: host.os_family,

packages/compass-sidebar/src/components/multiple-connections/sidebar.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('Multiple Connections Sidebar Component', function () {
5454
_id: '1',
5555
status: 'ready',
5656
genuineMongoDB: {
57-
dbType: 'local',
57+
serverName: 'mongodb',
5858
isGenuine: true,
5959
},
6060
build: {

packages/compass-sidebar/src/modules/instance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export const setupInstance =
107107
version: instance.dataLake.version,
108108
},
109109
genuineMongoDB: {
110-
dbType: instance.genuineMongoDB.dbType,
110+
serverName: instance.genuineMongoDB.serverName,
111111
isGenuine: instance.genuineMongoDB.isGenuine,
112112
},
113113
topologyDescription: {

packages/data-service/src/data-service.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ describe('DataService', function () {
10851085
const instance = await dataService.instance();
10861086
expect(instance.genuineMongoDB).to.deep.equal({
10871087
isGenuine: true,
1088-
dbType: 'mongodb',
1088+
serverName: 'mongodb',
10891089
});
10901090
expect(instance.dataLake).to.deep.equal({
10911091
isDataLake: false,

packages/data-service/src/instance-detail-helper.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ describe('instance-detail-helper', function () {
8686
true
8787
);
8888
expect(instanceDetails).to.have.nested.property(
89-
'genuineMongoDB.dbType',
89+
'genuineMongoDB.serverName',
9090
'mongodb'
9191
);
9292
});
@@ -241,7 +241,7 @@ describe('instance-detail-helper', function () {
241241
);
242242

243243
expect(instanceDetails).to.have.nested.property(
244-
'genuineMongoDB.dbType',
244+
'genuineMongoDB.serverName',
245245
'cosmosdb'
246246
);
247247
});
@@ -271,7 +271,7 @@ describe('instance-detail-helper', function () {
271271
);
272272

273273
expect(instanceDetails).to.have.nested.property(
274-
'genuineMongoDB.dbType',
274+
'genuineMongoDB.serverName',
275275
'documentdb'
276276
);
277277
});

packages/data-service/src/instance-detail-helper.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ type HostInfoDetails = {
4646

4747
type GenuineMongoDBDetails = {
4848
isGenuine: boolean;
49-
dbType: string;
49+
serverName: string;
5050
};
5151

5252
type DataLakeDetails = {
@@ -200,8 +200,8 @@ function buildGenuineMongoDBInfo(uri: string): GenuineMongoDBDetails {
200200
const { isGenuine, serverName } = getGenuineMongoDB(uri);
201201

202202
return {
203-
isGenuine,
204-
dbType: serverName,
203+
isGenuine: serverName === 'mongodb',
204+
serverName,
205205
};
206206
}
207207

packages/instance-model/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ interface BuildInfo {
5959

6060
interface GenuineMongoDB {
6161
isGenuine: boolean;
62-
dbType: string;
62+
serverName: string;
6363
}
6464

6565
interface DataLake {

0 commit comments

Comments
 (0)