Skip to content

Commit

Permalink
Merge pull request #3067 from alphagov/SFO-Finder-iteration-3
Browse files Browse the repository at this point in the history
Rename date facet
  • Loading branch information
GDSNewt authored Nov 26, 2024
2 parents 9f8256e + b2623d7 commit d92a1cb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/schema/elasticsearch_types/sfo_case.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"fields": [
"sfo_case_state",
"sfo_case_opened_date"
"sfo_case_date_announced"
],
"expanded_search_result_fields": {
"sfo_case_state": [
Expand Down
4 changes: 2 additions & 2 deletions config/schema/field_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -1105,8 +1105,8 @@
"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",
"sfo_case_date_announced": {
"description": "Date announced of a SFO case",
"type": "date"
}
}
2 changes: 1 addition & 1 deletion lib/govuk_index/presenters/elasticsearch_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +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_date_announced: specialist.sfo_case_date_announced,
sfo_case_state: specialist.sfo_case_state,
sift_end_date: specialist.sift_end_date,
sifting_status: specialist.sifting_status,
Expand Down
2 changes: 1 addition & 1 deletion lib/govuk_index/presenters/specialist_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +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_date_announced
delegate_to_payload :sfo_case_state
delegate_to_payload :sift_end_date
delegate_to_payload :sifting_status
Expand Down

0 comments on commit d92a1cb

Please sign in to comment.