Skip to content

Commit

Permalink
Merge pull request #2885 from alphagov/add-facet-to-ai-assurance-tech…
Browse files Browse the repository at this point in the history
…niques-finder

Add new facet to AI assurance techniques finder
  • Loading branch information
lauraghiorghisor-tw authored Apr 17, 2024
2 parents 137e129 + 9982390 commit ecd308b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"principle",
"key_function",
"ai_assurance_technique",
"assurance_technique_approach"
"assurance_technique_approach",
"focus_sector"
],
"expanded_search_result_fields": {
"use_case": [
Expand Down Expand Up @@ -243,6 +244,12 @@
"label": "Educational",
"value": "educational"
}
],
"focus_sector": [
{
"label": "Financial Services",
"value": "financial-services"
}
]
}
}
3 changes: 3 additions & 0 deletions config/schema/field_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,9 @@
"assurance_technique_approach": {
"type": "identifiers"
},
"focus_sector": {
"type": "identifiers"
},

"algorithmic_transparency_record_organisation": {
"description": "The organisation that published the record",
Expand Down
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 @@ -73,6 +73,7 @@ def document
email_document_supertype: common_fields.email_document_supertype,
first_published_at: specialist.first_published_at,
flood_and_coastal_erosion_category: specialist.flood_and_coastal_erosion_category,
focus_sector: specialist.focus_sector,
format: common_fields.format,
fund_state: specialist.fund_state,
fund_type: specialist.fund_type,
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 @@ -54,6 +54,7 @@ class SpecialistPresenter
delegate_to_payload :disease_type, convert_to_array: true
delegate_to_payload :eligible_entities
delegate_to_payload :flood_and_coastal_erosion_category
delegate_to_payload :focus_sector, convert_to_array: true
delegate_to_payload :fund_state, convert_to_array: true
delegate_to_payload :fund_type
delegate_to_payload :funding_amount
Expand Down

0 comments on commit ecd308b

Please sign in to comment.