[ARVADOS-WORKBENCH2] updated: 1.1.4-347-gbccb9ca

Git user git at public.curoverse.com
Mon Jul 23 09:20:48 EDT 2018


Summary of changes:
 .licenseignore                                     |   2 +
 .npmrc                                             |   1 +
 .yarnrc                                            |   1 +
 package.json                                       |  24 +-
 src/common/api/common-resource-service.test.ts     |   2 +-
 src/common/api/common-resource-service.ts          |   7 +-
 src/common/api/filter-builder.test.ts              |   2 +-
 src/common/api/filter-builder.ts                   |   4 +-
 src/common/api/order-builder.test.ts               |   2 +-
 src/common/api/order-builder.ts                    |   4 +-
 src/common/api/url-builder.ts                      |  36 +-
 src/common/custom-theme.ts                         |  30 ++
 src/common/url.ts                                  |   6 +
 src/components/breadcrumbs/breadcrumbs.test.tsx    |   4 +-
 src/components/breadcrumbs/breadcrumbs.tsx         |  88 +++--
 .../column-selector/column-selector.test.tsx       |   2 +-
 src/components/column-selector/column-selector.tsx |  37 +-
 src/components/context-menu/context-menu.test.tsx  |   4 +-
 src/components/context-menu/context-menu.tsx       |   2 +-
 .../data-explorer/data-explorer.test.tsx           |  10 +-
 src/components/data-explorer/data-explorer.tsx     | 137 +++----
 .../data-table-filters/data-table-filters.test.tsx |  12 +-
 .../data-table-filters/data-table-filters.tsx      | 255 +++++++------
 src/components/data-table/data-table.test.tsx      |   8 +-
 src/components/data-table/data-table.tsx           | 156 ++++----
 .../details-attribute.tsx}                         |  52 +--
 .../details-panel-factory.tsx                      |  27 --
 .../details-panel-factory/items/abstract-item.tsx  |  23 --
 .../items/collection-item.tsx                      |  35 --
 .../details-panel-factory/items/empty-item.tsx     |  21 --
 .../details-panel-factory/items/process-item.tsx   |  45 ---
 .../details-panel-factory/items/project-item.tsx   |  33 --
 .../dropdown-menu/dropdown-menu.test.tsx           |   6 +-
 src/components/dropdown-menu/dropdown-menu.tsx     |   8 +-
 src/components/empty-state/empty-state.tsx         |  46 ---
 .../list-item-text-icon/list-item-text-icon.tsx    |  62 ++++
 src/components/popover/popover.test.tsx            |   6 +-
 src/components/popover/popover.tsx                 |   7 +-
 src/components/search-bar/search-bar.test.tsx      |  14 +-
 src/components/search-bar/search-bar.tsx           | 148 ++++----
 src/components/search-input/search-input.test.tsx  |  12 +-
 src/components/search-input/search-input.tsx       | 158 ++++----
 src/components/side-panel/side-panel.tsx           | 186 +++++-----
 src/components/tree/tree.test.tsx                  |   2 +-
 src/components/tree/tree.tsx                       | 133 +++----
 src/index.tsx                                      |  14 +-
 src/models/container-request.ts                    |   3 +-
 src/models/details.ts                              |  10 +
 src/models/empty.ts                                |   4 +-
 src/services/auth-service/auth-service.ts          |   2 +-
 src/services/favorite-service/favorite-service.ts  |  10 +-
 src/services/groups-service/groups-service.test.ts |   2 +-
 src/services/groups-service/groups-service.ts      |  10 +-
 src/services/link-service/link-service.ts          |   4 +-
 .../project-service/project-service.test.ts        |   7 +-
 src/services/project-service/project-service.ts    |   8 +-
 src/services/services.ts                           |  10 +-
 src/store/auth/auth-action.ts                      |  10 +-
 src/store/auth/auth-reducer.test.ts                |  16 +-
 src/store/auth/auth-reducer.ts                     |   8 +-
 src/store/context-menu/context-menu-actions.ts     |   5 +-
 src/store/context-menu/context-menu-reducer.ts     |   7 +-
 src/store/data-explorer/data-explorer-action.ts    |   6 +-
 .../data-explorer/data-explorer-reducer.test.tsx   |  29 +-
 src/store/data-explorer/data-explorer-reducer.ts   |   8 +-
 src/store/details-panel/details-panel-action.ts    |  12 +-
 src/store/details-panel/details-panel-reducer.ts   |   8 +-
 src/store/navigation/navigation-action.ts          |   4 +-
 .../project-panel/project-panel-middleware.ts      |  31 +-
 src/store/project/project-action.ts                |  17 +-
 src/store/project/project-reducer.test.ts          |  12 +-
 src/store/project/project-reducer.ts               |   8 +-
 src/store/side-panel/side-panel-action.ts          |   5 +-
 src/store/side-panel/side-panel-reducer.test.ts    |  12 +-
 src/store/side-panel/side-panel-reducer.ts         |   8 +-
 src/store/store.ts                                 |  14 +-
 src/utils/dialog-validator.tsx                     | 102 +++---
 src/views-components/api-token/api-token.tsx       |  40 +-
 .../context-menu/action-sets/project-action-set.ts |   6 +-
 .../action-sets/root-project-action-set.ts         |   6 +-
 src/views-components/context-menu/context-menu.tsx |  17 +-
 src/views-components/context-menu/index.ts         |  17 -
 .../create-project-dialog.tsx                      |  10 +-
 .../data-explorer/data-explorer.tsx                |  20 +-
 .../details-panel/collection-details.tsx           |  35 ++
 .../details-panel/details-data.tsx                 |  21 ++
 .../details-panel/details-panel.tsx                | 183 +++++-----
 .../details-panel/empty-details.tsx                |  53 +++
 .../details-panel/process-details.tsx              |  45 +++
 .../details-panel/project-details.tsx              |  33 ++
 .../dialog-create/dialog-project-create.tsx        | 230 ++++++------
 .../main-app-bar/main-app-bar.test.tsx             |   8 +-
 src/views-components/main-app-bar/main-app-bar.tsx |  18 +-
 .../project-tree/project-tree.test.tsx             |  14 +-
 src/views-components/project-tree/project-tree.tsx |  85 ++---
 src/views/project-panel/project-panel.tsx          | 108 +++---
 src/views/workbench/workbench.test.tsx             |   4 +-
 src/views/workbench/workbench.tsx                  | 396 ++++++++++----------
 tslint.json                                        |   3 +-
 yarn.lock                                          | 401 ++++++++++-----------
 100 files changed, 1995 insertions(+), 2024 deletions(-)
 create mode 100644 .npmrc
 create mode 100644 .yarnrc
 create mode 100644 src/common/url.ts
 rename src/components/{attribute/attribute.tsx => details-attribute/details-attribute.tsx} (52%)
 delete mode 100644 src/components/details-panel-factory/details-panel-factory.tsx
 delete mode 100644 src/components/details-panel-factory/items/abstract-item.tsx
 delete mode 100644 src/components/details-panel-factory/items/collection-item.tsx
 delete mode 100644 src/components/details-panel-factory/items/empty-item.tsx
 delete mode 100644 src/components/details-panel-factory/items/process-item.tsx
 delete mode 100644 src/components/details-panel-factory/items/project-item.tsx
 delete mode 100644 src/components/empty-state/empty-state.tsx
 create mode 100644 src/components/list-item-text-icon/list-item-text-icon.tsx
 create mode 100644 src/models/details.ts
 delete mode 100644 src/views-components/context-menu/index.ts
 create mode 100644 src/views-components/details-panel/collection-details.tsx
 create mode 100644 src/views-components/details-panel/details-data.tsx
 create mode 100644 src/views-components/details-panel/empty-details.tsx
 create mode 100644 src/views-components/details-panel/process-details.tsx
 create mode 100644 src/views-components/details-panel/project-details.tsx

       via  bccb9ca5151f041d8c8b73098a3e1874023e3efa (commit)
       via  b6a5b173cd4e9f325f371d26204dfe156d911c20 (commit)
       via  ae691a976c8e505afba7cec6f8f316d1c5b175a7 (commit)
       via  4229645b39e3edfa288be826fb2cdcfa5fd90d38 (commit)
       via  180c2c37b635cbb7a33257d2ee9b4395553ce5e7 (commit)
       via  9230902521944497f96976064c5c7ae824786084 (commit)
       via  fef17c665b0d6acb4be97c9dcf4a6cb7a92ee6ef (commit)
       via  8dda39e1ac1e43d08881b8ac19db92c18d1cb4fe (commit)
       via  1a1007b664c6158c905a2fbfa998e7a5737ab7e1 (commit)
       via  1411549ab8347b21dc8efc1b208b98b85c186e12 (commit)
       via  6577b5404eef1061fc3f2fb1cfdc1775bd752132 (commit)
       via  5f5526dc9a8f06f82a4fe5c8f47a26ef6cab707e (commit)
       via  bc427c3f9f88acefbe12d7b9043d845acf5635a7 (commit)
       via  98937529d1e3e8a349fe11ed5cd75c56119990a7 (commit)
       via  5219b97601d3aee849081f81536f8edd91d9ad53 (commit)
       via  1d9efaa46b5e30f4b69fa8ebca99ea234a5d40c7 (commit)
       via  0a80eaa377a404c55660ecae52b495a9ed2e9167 (commit)
       via  082c172edc327afa52f9ec716f7702e3f29e58d6 (commit)
      from  085aaccee3eea289a443f227cdd856c2761940ca (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 bccb9ca5151f041d8c8b73098a3e1874023e3efa
Merge: 085aacc b6a5b17
Author: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
Date:   Mon Jul 23 15:20:35 2018 +0200

    Merge branch 'master'
    
    Feature #13840
    
    Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski at contractors.roche.com>

diff --cc src/services/favorite-service/favorite-service.ts
index 1b902b0,0000000..d075b79
mode 100644,000000..100644
--- a/src/services/favorite-service/favorite-service.ts
+++ b/src/services/favorite-service/favorite-service.ts
@@@ -1,68 -1,0 +1,68 @@@
 +// Copyright (C) The Arvados Authors. All rights reserved.
 +//
 +// SPDX-License-Identifier: AGPL-3.0
 +
- import LinkService from "../link-service/link-service";
- import GroupsService, { GroupContentsResource } from "../groups-service/groups-service";
++import { LinkService } from "../link-service/link-service";
++import { GroupsService, GroupContentsResource } from "../groups-service/groups-service";
 +import { LinkResource, LinkClass } from "../../models/link";
- import FilterBuilder from "../../common/api/filter-builder";
++import { FilterBuilder } from "../../common/api/filter-builder";
 +import { ListArguments, ListResults } from "../../common/api/common-resource-service";
- import OrderBuilder from "../../common/api/order-builder";
++import { OrderBuilder } from "../../common/api/order-builder";
 +
 +export interface FavoriteListArguments extends ListArguments {
 +    filters?: FilterBuilder<LinkResource>;
 +    order?: OrderBuilder<LinkResource>;
 +}
- export default class FavoriteService {
++export class FavoriteService {
 +    constructor(
 +        private linkService: LinkService,
 +        private groupsService: GroupsService
 +    ) { }
 +
 +    create(data: { userUuid: string; resourceUuid: string; }) {
 +        return this.linkService.create({
 +            ownerUuid: data.userUuid,
 +            tailUuid: data.userUuid,
 +            headUuid: data.resourceUuid,
 +            linkClass: LinkClass.STAR,
 +            name: data.resourceUuid
 +        });
 +    }
 +
 +    delete(data: { userUuid: string; resourceUuid: string; }) {
 +        return this.linkService
 +            .list({
 +                filters: FilterBuilder
 +                    .create<LinkResource>()
 +                    .addEqual('tailUuid', data.userUuid)
 +                    .addEqual('headUuid', data.resourceUuid)
 +                    .addEqual('linkClass', LinkClass.STAR)
 +            })
 +            .then(results => Promise.all(
 +                results.items.map(item => this.linkService.delete(item.uuid))));
 +    }
 +
 +    list(userUuid: string, args: FavoriteListArguments = {}): Promise<ListResults<GroupContentsResource>> {
 +        const listFilter = FilterBuilder
 +            .create<LinkResource>()
 +            .addEqual('tailUuid', userUuid)
 +            .addEqual('linkClass', LinkClass.STAR);
 +
 +        return this.linkService
 +            .list({
 +                ...args,
 +                filters: args.filters ? args.filters.concat(listFilter) : listFilter
 +            })
 +            .then(results => {
 +                const uuids = results.items.map(item => item.headUuid);
 +                return this.groupsService.contents(userUuid, {
 +                    limit: args.limit,
 +                    offset: args.offset,
 +                    filters: FilterBuilder.create<GroupContentsResource>().addIn('uuid', uuids),
 +                    recursive: true
 +                });
 +            });
 +    }
 +
 +
 +}
diff --cc src/services/link-service/link-service.ts
index 2fb75d5,0000000..4c12cd0
mode 100644,000000..100644
--- a/src/services/link-service/link-service.ts
+++ b/src/services/link-service/link-service.ts
@@@ -1,13 -1,0 +1,13 @@@
 +// Copyright (C) The Arvados Authors. All rights reserved.
 +//
 +// SPDX-License-Identifier: AGPL-3.0
 +
- import CommonResourceService from "../../common/api/common-resource-service";
++import { CommonResourceService } from "../../common/api/common-resource-service";
 +import { LinkResource } from "../../models/link";
 +import { AxiosInstance } from "axios";
 +
- export default class LinkService extends CommonResourceService<LinkResource> {
++export class LinkService extends CommonResourceService<LinkResource> {
 +    constructor(serverApi: AxiosInstance) {
 +        super(serverApi, "links");
 +    }
 +}
diff --cc src/services/services.ts
index 6f3d3a9,57f07d6..f0afd76
--- a/src/services/services.ts
+++ b/src/services/services.ts
@@@ -2,12 -2,10 +2,12 @@@
  //
  // SPDX-License-Identifier: AGPL-3.0
  
- import AuthService from "./auth-service/auth-service";
- import GroupsService from "./groups-service/groups-service";
+ import { AuthService } from "./auth-service/auth-service";
+ import { GroupsService } from "./groups-service/groups-service";
  import { serverApi } from "../common/api/server-api";
- import ProjectService from "./project-service/project-service";
- import LinkService from "./link-service/link-service";
- import FavoriteService from "./favorite-service/favorite-service";
+ import { ProjectService } from "./project-service/project-service";
++import { LinkService } from "./link-service/link-service";
++import { FavoriteService } from "./favorite-service/favorite-service";
  
  export const authService = new AuthService(serverApi);
  export const groupsService = new GroupsService(serverApi);

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list