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

backoffice: have all fields available in search #104

Merged
merged 1 commit into from
Aug 28, 2024
Merged
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
23 changes: 1 addition & 22 deletions backoffice/backoffice/workflows/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,7 @@
class WorkflowDocument(Document):
id = fields.TextField()
workflow_type = fields.KeywordField()
data = fields.ObjectField(
properties={
"ids": fields.ObjectField(
properties={
"value": fields.KeywordField(),
"schema": fields.KeywordField(),
}
),
"name": fields.ObjectField(
properties={
"value": fields.TextField(),
"preferred_name": fields.TextField(),
}
),
"email_address": fields.ObjectField(
properties={
"value": fields.KeywordField(),
"current": fields.BooleanField(),
}
),
}
)
data = fields.ObjectField(dynamic=True)

decisions = fields.NestedField(
properties={
Expand Down
Loading