Merge branch 'master' into 16812-token-appears-in-the-download-URL
[arvados-workbench2.git] / src / store / public-favorites-panel / public-favorites-middleware-service.ts
index a15fe97542713b9bdec1c80729641d9db05f5e4b..b98dfdfc210c2af35c256a330b80f38ca426aa5c 100644 (file)
@@ -54,15 +54,14 @@ export class PublicFavoritesMiddlewareService extends DataExplorerMiddlewareServ
             try {
                 api.dispatch(progressIndicatorActions.START_WORKING(this.getId()));
                 const uuidPrefix = api.getState().auth.config.uuidPrefix;
-                const uuid = `${uuidPrefix}-j7d0g-fffffffffffffff`;
+                const publicProjectUuid = `${uuidPrefix}-j7d0g-publicfavorites`;
                 const responseLinks = await this.services.linkService.list({
                     limit: dataExplorer.rowsPerPage,
                     offset: dataExplorer.page * dataExplorer.rowsPerPage,
                     filters: new FilterBuilder()
-                        .addEqual('linkClass', LinkClass.STAR)
-                        .addILike("name", dataExplorer.searchValue)
-                        .addEqual('ownerUuid', uuid)
-                        .addIsA("headUuid", typeFilters)
+                        .addEqual('link_class', LinkClass.STAR)
+                        .addEqual('owner_uuid', publicProjectUuid)
+                        .addIsA("head_uuid", typeFilters)
                         .getFilters()
                 });
                 const uuids = responseLinks.items.map(it => it.headUuid);