Skip to content

Commit

Permalink
Merge pull request #3043 from alphagov/SFO-Finder-iteration-2
Browse files Browse the repository at this point in the history
Add new facet to SFO finder
  • Loading branch information
GDSNewt authored Nov 12, 2024
2 parents 0a15422 + 12eee8d commit 9d4ecf7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/schema/elasticsearch_types/sfo_case.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"fields": [
"sfo_case_state"
"sfo_case_state",
"sfo_case_opened_date"
],
"expanded_search_result_fields": {
"sfo_case_state": [
Expand Down
4 changes: 4 additions & 0 deletions config/schema/field_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -1104,5 +1104,9 @@
"sfo_case_state": {
"description": "Whether a case is open or closed. Applies to SFO cases.",
"type": "identifiers"
},
"sfo_case_opened_date": {
"description": "Open date of a SFO case",
"type": "date"
}
}
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 @@ -156,6 +156,7 @@ def document
roles: expanded_links.roles,
sector: specialist.sector,
service_provider: specialist.service_provider,
sfo_case_opened_date: specialist.sfo_case_opened_date,
sfo_case_state: specialist.sfo_case_state,
sift_end_date: specialist.sift_end_date,
sifting_status: specialist.sifting_status,
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 @@ -107,6 +107,7 @@ class SpecialistPresenter
delegate_to_payload :review_status
delegate_to_payload :sector, convert_to_array: true
delegate_to_payload :service_provider
delegate_to_payload :sfo_case_opened_date
delegate_to_payload :sfo_case_state
delegate_to_payload :sift_end_date
delegate_to_payload :sifting_status
Expand Down

0 comments on commit 9d4ecf7

Please sign in to comment.