only show milestones for simple log view w/ burnettk

This commit is contained in:
jasquat 2023-01-17 16:13:11 -05:00
parent fe19a172cf
commit 223a49ee5b
2 changed files with 10 additions and 4 deletions

View File

@ -182,9 +182,15 @@ def process_instance_log_list(
)
if not detailed:
log_query = log_query.filter(
or_(
# this was the previous implementation, where we only show completed tasks and skipped tasks.
# maybe we want to iterate on this in the future (in a third tab under process instance logs?)
# or_(
# SpiffLoggingModel.message.in_(["State change to COMPLETED"]), # type: ignore
# SpiffLoggingModel.message.like("Skipped task %"), # type: ignore
# )
and_(
SpiffLoggingModel.message.in_(["State change to COMPLETED"]), # type: ignore
SpiffLoggingModel.message.like("Skipped task %"), # type: ignore
SpiffLoggingModel.bpmn_task_type == "Default Throwing Event",
)
)

View File

@ -46,10 +46,10 @@ export default function ProcessInstanceLogList() {
return (
<tr key={rowToUse.id}>
<td data-qa="paginated-entity-id">{rowToUse.id}</td>
<td>{rowToUse.message}</td>
<td>{rowToUse.bpmn_task_name}</td>
{isDetailedView && (
<>
<td>{rowToUse.message}</td>
<td>{rowToUse.bpmn_task_identifier}</td>
<td>{rowToUse.bpmn_task_type}</td>
<td>{rowToUse.bpmn_process_identifier}</td>
@ -72,10 +72,10 @@ export default function ProcessInstanceLogList() {
<thead>
<tr>
<th>Id</th>
<th>Message</th>
<th>Task Name</th>
{isDetailedView && (
<>
<th>Message</th>
<th>Task Identifier</th>
<th>Task Type</th>
<th>Bpmn Process Identifier</th>