Skip to content

Commit

Permalink
Add config for nested facet - subfacet for trademark decisions finder
Browse files Browse the repository at this point in the history
  • Loading branch information
lauraghiorghisor-tw committed Feb 17, 2025
1 parent 0682821 commit 2946fc3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/schema/elasticsearch_types/trademark_decision.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"trademark_decision_date",
"trademark_decision_appointed_person_hearing_officer",
"trademark_decision_person_or_company_involved",
"trademark_decision_grounds_section"
"trademark_decision_grounds_section",
"trademark_decision_grounds_sub_section"
]
}
3 changes: 3 additions & 0 deletions config/schema/field_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -1146,5 +1146,8 @@
},
"trademark_decision_grounds_section": {
"type": "identifiers"
},
"trademark_decision_grounds_sub_section": {
"type": "identifiers"
}
}
1 change: 1 addition & 0 deletions lib/govuk_index/presenters/elasticsearch_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def document
trademark_decision_mark: specialist.trademark_decision_mark,
trademark_decision_person_or_company_involved: specialist.trademark_decision_person_or_company_involved,
trademark_decision_grounds_section: specialist.trademark_decision_grounds_section,
trademark_decision_grounds_sub_section: specialist.trademark_decision_grounds_sub_section,
trademark_decision_type_of_hearing: specialist.trademark_decision_type_of_hearing,
is_historic: common_fields.historic?,
is_political: common_fields.political?,
Expand Down
1 change: 1 addition & 0 deletions lib/govuk_index/presenters/specialist_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ class SpecialistPresenter
delegate_to_payload :trademark_decision_mark
delegate_to_payload :trademark_decision_person_or_company_involved
delegate_to_payload :trademark_decision_grounds_section
delegate_to_payload :trademark_decision_grounds_sub_section
delegate_to_payload :trademark_decision_type_of_hearing
delegate_to_payload :issued_date
delegate_to_payload :key_function, convert_to_array: true
Expand Down

0 comments on commit 2946fc3

Please sign in to comment.