Skip to content

Commit 03cd80d

Browse files
committed
COMPASS-9674: just upgrade
1 parent a1b4b5c commit 03cd80d

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

packages/collection-model/lib/model.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,10 @@ const CollectionCollection = AmpersandCollection.extend(
422422
// filtering, but for now this preserves the current behavior
423423
// and changing it right away will expand the scope of the
424424
// refactor significantly. We can address this in COMPASS-5211
425-
return getNamespaceInfo(coll._id).system === false;
425+
return (
426+
getNamespaceInfo(coll._id).system === false ||
427+
getNamespaceInfo(coll._id).collection === 'system.profile'
428+
);
426429
})
427430
.map(({ _id, ...rest }) => {
428431
return {

packages/database-model/lib/model.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -263,15 +263,11 @@ const DatabaseCollection = AmpersandCollection.extend(
263263
});
264264

265265
this.set(
266-
dbs
267-
.filter((db) => {
268-
return toNs(db._id).special === false;
269-
})
270-
.map(({ _id, name, inferred_from_privileges }) => ({
271-
_id,
272-
name,
273-
inferred_from_privileges,
274-
}))
266+
dbs.map(({ _id, name, inferred_from_privileges }) => ({
267+
_id,
268+
name,
269+
inferred_from_privileges,
270+
}))
275271
);
276272
},
277273

0 commit comments

Comments
 (0)