X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/d19d853e83383a6b75f638be99472aa626a05524..a48138fa7227595bba0db267a4c37832cba9afa2:/src/services/project-service/project-service.ts diff --git a/src/services/project-service/project-service.ts b/src/services/project-service/project-service.ts index 5c686aae..0665fa66 100644 --- a/src/services/project-service/project-service.ts +++ b/src/services/project-service/project-service.ts @@ -7,8 +7,6 @@ import { ProjectResource } from "~/models/project"; import { GroupClass } from "~/models/group"; import { ListArguments } from "~/services/common-service/common-service"; import { FilterBuilder, joinFilters } from "~/services/api/filter-builder"; -import { TrashableResourceService } from '~/services/common-service/trashable-resource-service'; -import { snakeCase } from 'lodash'; export class ProjectService extends GroupsService { create(data: Partial) { @@ -16,29 +14,6 @@ export class ProjectService extends GroupsService { return super.create(projectData); } - update(uuid: string, data: Partial) { - if (uuid && data && data.properties) { - const { properties } = data; - const mappedData = { - ...TrashableResourceService.mapKeys(snakeCase)(data), - properties, - }; - return TrashableResourceService - .defaultResponse( - this.serverApi - .put(this.resourceType + uuid, mappedData), - this.actions, - false - ); - } - return TrashableResourceService - .defaultResponse( - this.serverApi - .put(this.resourceType + uuid, data && TrashableResourceService.mapKeys(snakeCase)(data)), - this.actions - ); - } - list(args: ListArguments = {}) { return super.list({ ...args,