Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[STTNHUB-171] Enable event_type Agenda nested search group #7

Merged
merged 1 commit into from
Aug 17, 2022
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
31 changes: 31 additions & 0 deletions server/settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pathlib

from flask_babel import lazy_gettext
from newsroom.web.default_settings import ELASTICSEARCH_SETTINGS, BLUEPRINTS as DEFAULT_BLUEPRINT, \
CORE_APPS as DEFAULT_CORE_APPS, CELERY_BEAT_SCHEDULE as CELERY_BEAT_SCHEDULE_DEFAULT

Expand All @@ -20,6 +21,36 @@
'stt.filters',
]

AGENDA_GROUPS = [
{
"field": "sttdepartment",
"label": lazy_gettext("Department"),
"nested": {
"parent": "subject",
"field": "scheme",
"value": "sttdepartment",
},
},
{
"field": "sttsub",
"label": lazy_gettext("Subject"),
"nested": {
"parent": "subject",
"field": "scheme",
"value": "sttsub",
},
},
{
"field": "event_type",
"label": lazy_gettext("Event Type"),
"nested": {
"parent": "subject",
"field": "scheme",
"value": "event_type",
},
},
]

CORE_APPS = [
app
for app in DEFAULT_CORE_APPS
Expand Down