projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
18215: Requests back only updated fields on collection update calls.
[arvados-workbench2.git]
/
src
/
services
/
collection-service
/
collection-service.ts
diff --git
a/src/services/collection-service/collection-service.ts
b/src/services/collection-service/collection-service.ts
index 9fd8a13511ff850b26f9a40af01336616c2340e2..64c73cbfb293d956842db1bdffc8b12433dc6eb8 100644
(file)
--- a/
src/services/collection-service/collection-service.ts
+++ b/
src/services/collection-service/collection-service.ts
@@
-2,15
+2,15
@@
//
// SPDX-License-Identifier: AGPL-3.0
//
// SPDX-License-Identifier: AGPL-3.0
-import { CollectionResource } from "
~/
models/collection";
+import { CollectionResource } from "models/collection";
import { AxiosInstance } from "axios";
import { AxiosInstance } from "axios";
-import { CollectionFile, CollectionDirectory } from "
~/
models/collection-file";
-import { WebDAV } from "
~/
common/webdav";
+import { CollectionFile, CollectionDirectory } from "models/collection-file";
+import { WebDAV } from "common/webdav";
import { AuthService } from "../auth-service/auth-service";
import { extractFilesData } from "./collection-service-files-response";
import { AuthService } from "../auth-service/auth-service";
import { extractFilesData } from "./collection-service-files-response";
-import { TrashableResourceService } from "
~/
services/common-service/trashable-resource-service";
-import { ApiActions } from "
~/
services/api/api-actions";
-import { customEncodeURI } from "
~/
common/url";
+import { TrashableResourceService } from "services/common-service/trashable-resource-service";
+import { ApiActions } from "services/api/api-actions";
+import { customEncodeURI } from "common/url";
export type UploadProgress = (fileId: number, loaded: number, total: number, currentTime: number) => void;
export type UploadProgress = (fileId: number, loaded: number, total: number, currentTime: number) => void;
@@
-33,7
+33,8
@@
export class CollectionService extends TrashableResourceService<CollectionResour
}
update(uuid: string, data: Partial<CollectionResource>) {
}
update(uuid: string, data: Partial<CollectionResource>) {
- return super.update(uuid, { ...data, preserveVersion: true });
+ const select = Object.keys(data)
+ return super.update(uuid, { ...data, preserveVersion: true }, select);
}
async files(uuid: string) {
}
async files(uuid: string) {