Skip to content

Commit f6ddcce

Browse files
committed
cleanup
1 parent 9c095ba commit f6ddcce

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

packages/compass-global-writes/src/components/shard-zones-table.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,10 @@ export function ShardZonesTable({
104104
expanded,
105105
},
106106
onGlobalFilterChange: setSearchText,
107-
onExpandedChange: (expanded) => {
108-
setExpanded(expanded);
109-
console.log('new expanded', expanded);
110-
},
107+
onExpandedChange: setExpanded,
111108
enableGlobalFilter: true,
112109
getFilteredRowModel: getFilteredRowModel(),
113110
getIsRowExpanded: (row) => {
114-
console.log('getIsRowExpanded', hasFilteredChildren(row));
115111
return (
116112
(searchText && hasFilteredChildren(row)) ||
117113
(typeof expanded !== 'boolean' && expanded[row.id])

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type {
33
Tunnel,
44
} from '@mongodb-js/devtools-proxy-support';
55
import { EventEmitter } from 'events';
6-
import { ExplainVerbosity, ClientEncryption, ReadPreference } from 'mongodb';
6+
import { ExplainVerbosity, ClientEncryption } from 'mongodb';
77
import type {
88
AggregateOptions,
99
AggregationCursor,
@@ -1782,7 +1782,6 @@ class DataServiceImpl extends WithLogContext implements DataService {
17821782
let cursor: AggregationCursor;
17831783
return this._cancellableOperation(
17841784
async (session?: ClientSession) => {
1785-
console.log({ options });
17861785
cursor = this._collection(ns, 'CRUD').aggregate(pipeline, {
17871786
...options,
17881787
session,
@@ -2205,7 +2204,6 @@ class DataServiceImpl extends WithLogContext implements DataService {
22052204
});
22062205
}
22072206

2208-
// TODO now
22092207
return this.aggregate(
22102208
ns,
22112209
pipeline,
@@ -2624,9 +2622,7 @@ class DataServiceImpl extends WithLogContext implements DataService {
26242622
private _collection(ns: string, type: ClientType): Collection {
26252623
return this._initializedClient(type)
26262624
.db(this._databaseName(ns))
2627-
.collection(this._collectionName(ns), {
2628-
readPreference: ReadPreference.SECONDARY_PREFERRED,
2629-
});
2625+
.collection(this._collectionName(ns));
26302626
}
26312627

26322628
/**

0 commit comments

Comments
 (0)