13494: Allows accesing old collections versions through PDH.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Thu, 15 Oct 2020 21:05:55 +0000 (18:05 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Tue, 20 Oct 2020 20:59:19 +0000 (17:59 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>

src/services/common-service/common-service.ts
src/store/collections-content-address-panel/collections-content-address-middleware-service.ts

index d605611f46143d8a044379fc56237b2ee7f52fa9..8e00c4ad1abd42897f84cc1634d34a22b5bd48f0 100644 (file)
@@ -22,6 +22,7 @@ export interface ListArguments {
     select?: string[];
     distinct?: boolean;
     count?: string;
+    includeOldVersions?: boolean;
 }
 
 export interface ListResults<T> {
@@ -116,7 +117,7 @@ export class CommonService<T> {
     list(args: ListArguments = {}): Promise<ListResults<T>> {
         const { filters, order, ...other } = args;
         const params = {
-            ...other,
+            ...CommonService.mapKeys(_.snakeCase)(other),
             filters: filters ? `[${filters}]` : undefined,
             order: order ? order : undefined
         };
index a68d13bdec52aa3c6c7ddaf0d5d84593202ab47d..e18922a75ea0aa8a31c5aedb2f2a2b7be9625ef4 100644 (file)
@@ -59,7 +59,8 @@ export class CollectionsWithSameContentAddressMiddlewareService extends DataExpl
                     filters: new FilterBuilder()
                         .addEqual('portable_data_hash', contentAddress)
                         .addILike("name", dataExplorer.searchValue)
-                        .getFilters()
+                        .getFilters(),
+                    includeOldVersions: true
                 });
                 const userUuids = response.items.map(it => {
                     if (extractUuidKind(it.ownerUuid) === ResourceKind.USER) {