Skip to content

Commit

Permalink
[ui] show applyLimitPerUniqueValue entries in queue criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
alangenfeld committed Jun 13, 2024
1 parent f11684a commit 95068be
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
Tag,
Tooltip,
} from '@dagster-io/ui-components';
import isPlainObject from 'lodash/isPlainObject';
import * as React from 'react';
import {Link} from 'react-router-dom';
import * as yaml from 'yaml';
Expand Down Expand Up @@ -66,7 +67,10 @@ const QueuedRunCriteriaDialogContent = ({run}: {run: RunTableRunFragment}) => {
return limits.filter(
(limit) =>
limit.key in runTagMap &&
(limit.value === undefined || limit.value === runTagMap[limit.key]),
(limit.value === undefined ||
limit.value === runTagMap[limit.key] ||
// can be {"applyLimitPerUniqueValue": bool}
isPlainObject(limit.value)),
);
} catch (err) {
return undefined;
Expand Down Expand Up @@ -119,7 +123,9 @@ const QueuedRunCriteriaDialogContent = ({run}: {run: RunTableRunFragment}) => {
</td>
<td>
<Tag interactive>
{limit.value !== undefined ? `${limit.key}=${limit.value}` : limit.key}
{limit.value !== undefined
? `${limit.key}=${JSON.stringify(limit.value)}` // might be obj so stringify
: limit.key}
</Tag>
</td>
</tr>
Expand Down

0 comments on commit 95068be

Please sign in to comment.