File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments