Skip to content

Commit

Permalink
CM-762: fix group task tab (#42)
Browse files Browse the repository at this point in the history
* CM-750: fix task filtering

* CM-750: fix eslint

* CM-762: fix group task tab

---------

Co-authored-by: Jan <j.dolkowski@soldevelo.com>
  • Loading branch information
jdolkowski and Jan authored Mar 22, 2024
1 parent 5159e73 commit a03fc6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
4 changes: 0 additions & 4 deletions src/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ const TASK_PROJECTION = () => [
'jsonExt',
];

const TASKS_FULL_PROJECTION = () => [
...TASK_PROJECTION, 'businessEvent',
];

export const formatTaskGroupGQL = (taskGroup) => {
const executors = taskGroup?.taskexecutorSet?.map((executor) => decodeId(executor.id));
const taskSources = taskGroup?.taskSources?.map((taskSource) => taskSource.name);
Expand Down
12 changes: 2 additions & 10 deletions src/components/TaskFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function TaskFilter({
module="tasksManagement"
label="task.entity"
value={filterTextFieldValue('entity')}
onChange={onChangeStringFilter('entity', CONTAINS_LOOKUP)}
onChange={onChangeStringFilter('entityString', CONTAINS_LOOKUP)}
/>
</Grid>
<Grid item xs={3} className={classes.item}>
Expand All @@ -81,14 +81,6 @@ function TaskFilter({
])}
/>
</Grid>
<Grid item xs={3} className={classes.item}>
<TextInput
module="tasksManagement"
label="task.businessStatus"
value={filterTextFieldValue('businessStatus')}
onChange={onChangeStringFilter('businessStatus', CONTAINS_LOOKUP)}
/>
</Grid>
<Grid item xs={3} className={classes.item}>
<PublishedComponent
pubRef="tasksManagement.taskStatusPicker"
Expand All @@ -101,7 +93,7 @@ function TaskFilter({
{
id: 'status',
value,
filter: `status: ${value}`,
filter: value ? `status: ${value}` : EMPTY_STRING,
},
])}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/TaskSearcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function TaskSearcher({
if (entityIds) {
filters.entityIds = {
value: entityIds,
filter: `entityIds: "${entityIds}"`,
filter: `entityIds: [${entityIds.map((id) => `"${id}"`)}]`,
};
}
return filters;
Expand Down

0 comments on commit a03fc6d

Please sign in to comment.