Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/dispatch/case/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ class SignalRead(DispatchBase):
external_id: str
external_url: str | None = None
workflow_instances: list[WorkflowInstanceRead] | None = []
tags: list[TagRead] | None = []


class SignalInstanceRead(DispatchBase):
Expand Down
22 changes: 3 additions & 19 deletions src/dispatch/database/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

from fastapi import Depends, Query
from pydantic import StringConstraints
from pydantic import ValidationError
from pydantic import Json
from six import string_types
from sortedcontainers import SortedSet
Expand Down Expand Up @@ -721,24 +720,9 @@ def search_filter_sort_paginate(
sort_spec = create_sort_spec(model, sort_by, descending)
query = apply_sort(query, sort_spec)

except FieldNotFound as e:
raise ValidationError(
[
{
"msg": str(e),
"loc": "filter",
}
]
) from None
except BadFilterFormat as e:
raise ValidationError(
[
{
"msg": str(e),
"loc": "filter",
}
]
) from None
except (FieldNotFound, BadFilterFormat) as e:
log.error(f"Error building or applying filters: {str(e)}")
raise e

if items_per_page == -1:
items_per_page = None
Expand Down
Loading