@@ -54,7 +54,7 @@ export type Database = {
5454 collectionsStatus : DatabaseOrCollectionStatus ;
5555 collectionsLength : number ;
5656 collections : Collection [ ] ;
57- isGhostNamespace : boolean ;
57+ inferredFromPrivileges : boolean ;
5858} ;
5959
6060type PlaceholderTreeItem = VirtualPlaceholderItem & {
@@ -68,7 +68,7 @@ export type Collection = {
6868 type : 'view' | 'collection' | 'timeseries' ;
6969 sourceName : string | null ;
7070 pipeline : unknown [ ] ;
71- isGhostNamespace : boolean ;
71+ inferredFromPrivileges : boolean ;
7272} ;
7373
7474export type NotConnectedConnectionTreeItem = VirtualTreeItem & {
@@ -103,7 +103,7 @@ export type DatabaseTreeItem = VirtualTreeItem & {
103103 connectionItem : ConnectedConnectionTreeItem ;
104104 dbName : string ;
105105 hasWriteActionsDisabled : boolean ;
106- isGhostNamespace : boolean ;
106+ inferredFromPrivileges : boolean ;
107107} ;
108108
109109export type CollectionTreeItem = VirtualTreeItem & {
@@ -115,7 +115,7 @@ export type CollectionTreeItem = VirtualTreeItem & {
115115 databaseItem : DatabaseTreeItem ;
116116 namespace : string ;
117117 hasWriteActionsDisabled : boolean ;
118- isGhostNamespace : boolean ;
118+ inferredFromPrivileges : boolean ;
119119} ;
120120
121121export type SidebarActionableItem =
@@ -262,7 +262,7 @@ const databaseToItems = ({
262262 collections,
263263 collectionsLength,
264264 collectionsStatus,
265- isGhostNamespace ,
265+ inferredFromPrivileges ,
266266 } ,
267267 connectionId,
268268 connectionItem,
@@ -298,7 +298,7 @@ const databaseToItems = ({
298298 dbName : id ,
299299 isExpandable : true ,
300300 hasWriteActionsDisabled,
301- isGhostNamespace ,
301+ inferredFromPrivileges ,
302302 } ;
303303
304304 const sidebarData : SidebarTreeItem [ ] = [ databaseTI ] ;
@@ -327,7 +327,7 @@ const databaseToItems = ({
327327
328328 return sidebarData . concat (
329329 collections . map (
330- ( { _id : id , name, type, isGhostNamespace } , collectionIndex ) => ( {
330+ ( { _id : id , name, type, inferredFromPrivileges } , collectionIndex ) => ( {
331331 id : `${ connectionId } .${ id } ` , // id is the namespace of the collection, so includes db as well
332332 level : level + 1 ,
333333 name,
@@ -340,7 +340,7 @@ const databaseToItems = ({
340340 namespace : id ,
341341 hasWriteActionsDisabled,
342342 isExpandable : false ,
343- isGhostNamespace ,
343+ inferredFromPrivileges ,
344344 } )
345345 )
346346 ) ;
0 commit comments