Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
backoffice: decision added to search
Browse files Browse the repository at this point in the history
  • Loading branch information
DonHaul committed Aug 26, 2024
1 parent 1487380 commit c99935d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 1 addition & 2 deletions backoffice/backoffice/workflows/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from backoffice.workflows.api.serializers import (
AuthorResolutionSerializer,
WorkflowAuthorSerializer,
WorkflowDocumentSerializer,
WorkflowSerializer,
WorkflowTicketSerializer,
)
Expand All @@ -37,7 +36,7 @@
StatusChoices,
WorkflowType,
)
from backoffice.workflows.documents import WorkflowDocument
from backoffice.workflows.documents import WorkflowDocument, WorkflowDocumentSerializer
from backoffice.workflows.models import Decision, Workflow, WorkflowTicket

logger = logging.getLogger(__name__)
Expand Down
8 changes: 8 additions & 0 deletions backoffice/backoffice/workflows/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ class WorkflowDocument(Document):
),
}
)

decisions = fields.NestedField(
properties={
"action": fields.TextField(),
"user": fields.ObjectField(properties={"email": fields.TextField()}),
}
)

status = fields.KeywordField()
is_update = fields.BooleanField()

Expand Down

0 comments on commit c99935d

Please sign in to comment.