@@ -25,14 +25,10 @@ const exportsManagerConfig: ExportsManagerConfig = {
2525function getExportNameAndPath ( {
2626 uniqueExportsId = new ObjectId ( ) . toString ( ) ,
2727 uniqueFileId = new ObjectId ( ) . toString ( ) ,
28- database = "foo" ,
29- collection = "bar" ,
3028} :
3129 | {
3230 uniqueExportsId ?: string ;
3331 uniqueFileId ?: string ;
34- database ?: string ;
35- collection ?: string ;
3632 }
3733 | undefined = { } ) : {
3834 sessionExportsPath : string ;
@@ -41,7 +37,7 @@ function getExportNameAndPath({
4137 exportURI : string ;
4238 uniqueExportsId : string ;
4339} {
44- const exportName = `${ database } . ${ collection } . ${ uniqueFileId } .json` ;
40+ const exportName = `${ uniqueFileId } .json` ;
4541 // This is the exports directory for a session.
4642 const sessionExportsPath = path . join ( exportsPath , uniqueExportsId ) ;
4743 const exportPath = path . join ( sessionExportsPath , exportName ) ;
@@ -243,7 +239,7 @@ describe("ExportsManager unit test", () => {
243239 } ) ;
244240
245241 it ( "should handle encoded name" , async ( ) => {
246- const { exportName, exportURI } = getExportNameAndPath ( { database : "some database" , collection : "coll " } ) ;
242+ const { exportName, exportURI } = getExportNameAndPath ( { uniqueFileId : "1FOO 2BAR " } ) ;
247243 const { cursor } = createDummyFindCursor ( [ ] ) ;
248244 const exportAvailableNotifier = getExportAvailableNotifier ( encodeURI ( exportURI ) , manager ) ;
249245 await manager . createJSONExport ( {
0 commit comments