|
@@ -59,12 +59,13 @@ class WBProcessListing extends Component { |
|
|
requestingContainerUuid } = this.props;
|
|
|
requestingContainerUuid } = this.props;
|
|
|
|
|
|
|
|
|
const filters = [
|
|
|
const filters = [
|
|
|
[ 'state', 'in', requestStates.filter((_, idx) => reqStateMask[idx]) ]
|
|
|
|
|
|
|
|
|
[ 'state', 'in', requestStates.filter((_, idx) => reqStateMask[idx]) ],
|
|
|
|
|
|
[ 'requesting_container_uuid', '=', requestingContainerUuid ]
|
|
|
];
|
|
|
];
|
|
|
if (ownerUuid)
|
|
|
if (ownerUuid)
|
|
|
filters.push([ 'owner_uuid', '=', ownerUuid ]);
|
|
|
filters.push([ 'owner_uuid', '=', ownerUuid ]);
|
|
|
//if (requestingContainerUuid)
|
|
|
//if (requestingContainerUuid)
|
|
|
//filters.push([ 'requesting_container_uuid', '=', requestingContainerUuid ]);
|
|
|
|
|
|
|
|
|
//filters.push();
|
|
|
|
|
|
|
|
|
let prom = makeArvadosRequest(arvHost, arvToken,
|
|
|
let prom = makeArvadosRequest(arvHost, arvToken,
|
|
|
'/arvados/v1/container_requests?filters=' + encodeURIComponent(JSON.stringify(filters)) +
|
|
|
'/arvados/v1/container_requests?filters=' + encodeURIComponent(JSON.stringify(filters)) +
|
|
@@ -150,7 +151,8 @@ class WBProcessListing extends Component { |
|
|
|
|
|
|
|
|
WBProcessListing.defaultProps = {
|
|
|
WBProcessListing.defaultProps = {
|
|
|
'itemsPerPage': 100,
|
|
|
'itemsPerPage': 100,
|
|
|
'ownerUuid': null
|
|
|
|
|
|
|
|
|
'ownerUuid': null,
|
|
|
|
|
|
'requestingContainerUuid': null
|
|
|
};
|
|
|
};
|
|
|
|
|
|
|
|
|
export default WBProcessListing;
|
|
|
export default WBProcessListing;
|