Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
- disable contacts in agenda list
- disable ranking/service from filters

CPCN-350 CPCN-356
  • Loading branch information
petrjasek committed Oct 2, 2023
1 parent 8dc1bc5 commit f94b7d2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
15 changes: 13 additions & 2 deletions server/data/ui_config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"_id": "wire",
"init_version": 5,
"init_version": 6,
"preview": {
"slugline": {
"displayed": true
Expand All @@ -12,6 +12,9 @@
"located": {
"displayed": false
},
"distribution": {
"displayed": false
},
"metadata_fields": [
"urgency",
"source",
Expand All @@ -33,6 +36,9 @@
"located": {
"displayed": false
},
"distribution": {
"displayed": false
},
"metadata_fields": [
"urgency",
"source",
Expand Down Expand Up @@ -115,7 +121,7 @@
},
{
"_id": "agenda",
"init_version": 6,
"init_version": 7,
"multi_select_topics": false,
"open_coverage_content_in_same_page": true,
"enable_global_topics": true,
Expand All @@ -135,6 +141,11 @@
"subjects": {
"displayed": false
}
},
"list": {
"contacts": {
"displayed": false
}
}
}
]
14 changes: 0 additions & 14 deletions server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,23 +153,10 @@
"value": "subject_custom",
},
},
{
"field": "distribution",
"label": lazy_gettext("Service"),
"nested": {
"parent": "subject",
"field": "scheme",
"value": "distribution",
},
},
{
"field": "genre",
"label": lazy_gettext("Version"),
},
{
"field": "urgency",
"label": lazy_gettext("Ranking"),
},
]

WIRE_AGGS = {
Expand All @@ -178,7 +165,6 @@
"service": {"terms": {"field": "service.name", "size": 50}},
"subject": {"terms": {"field": "subject.name", "size": 50}},
"genre": {"terms": {"field": "genre.name", "size": 50}},
"urgency": {"terms": {"field": "urgency"}},
}

AGENDA_GROUPS = [
Expand Down

0 comments on commit f94b7d2

Please sign in to comment.