[arvados-workbench2] updated: 2.5.0-83-ge87e36f5
git repository hosting
git at public.arvados.org
Fri Mar 17 14:01:15 UTC 2023
Summary of changes:
src/services/collection-service/collection-service.test.ts | 4 ++--
src/services/collection-service/collection-service.ts | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
via e87e36f5cfcdc4162b794231879e977314815b25 (commit)
from 9d2d11ffcf56ab3075fac66ac75d91448b4d8ea6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit e87e36f5cfcdc4162b794231879e977314815b25
Author: Stephen Smith <stephen at curii.com>
Date: Fri Mar 17 10:00:57 2023 -0400
20029: Rename empty collection pdh constant & remove unnecessary unit test
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>
diff --git a/src/services/collection-service/collection-service.test.ts b/src/services/collection-service/collection-service.test.ts
index 88e86172..544d6d06 100644
--- a/src/services/collection-service/collection-service.test.ts
+++ b/src/services/collection-service/collection-service.test.ts
@@ -7,7 +7,7 @@ import MockAdapter from 'axios-mock-adapter';
import { snakeCase } from 'lodash';
import { CollectionResource, defaultCollectionSelectedFields } from 'models/collection';
import { AuthService } from '../auth-service/auth-service';
-import { CollectionService, emptyCollectionUuid } from './collection-service';
+import { CollectionService, emptyCollectionPdh } from './collection-service';
describe('collection-service', () => {
let collectionService: CollectionService;
@@ -467,7 +467,7 @@ describe('collection-service', () => {
preserve_version: true
},
replace_files: {
- ["/" + directoryNames[i].out]: emptyCollectionUuid,
+ ["/" + directoryNames[i].out]: emptyCollectionPdh,
},
}
);
diff --git a/src/services/collection-service/collection-service.ts b/src/services/collection-service/collection-service.ts
index a95fb47b..74cf7595 100644
--- a/src/services/collection-service/collection-service.ts
+++ b/src/services/collection-service/collection-service.ts
@@ -15,7 +15,7 @@ import { CommonService } from "services/common-service/common-service";
export type UploadProgress = (fileId: number, loaded: number, total: number, currentTime: number) => void;
-export const emptyCollectionUuid = 'd41d8cd98f00b204e9800998ecf8427e+0';
+export const emptyCollectionPdh = 'd41d8cd98f00b204e9800998ecf8427e+0';
export class CollectionService extends TrashableResourceService<CollectionResource> {
constructor(serverApi: AxiosInstance, private webdavClient: WebDAV, private authService: AuthService, actions: ApiActions) {
@@ -188,7 +188,7 @@ export class CollectionService extends TrashableResourceService<CollectionResour
}
createDirectory(collectionUuid: string, path: string, showErrors?: boolean) {
- const fileMap = {[this.combineFilePath([path])]: emptyCollectionUuid};
+ const fileMap = {[this.combineFilePath([path])]: emptyCollectionPdh};
return this.replaceFiles(collectionUuid, fileMap, showErrors);
}
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list