Skip to content

Commit

Permalink
Add data ethics guidance finder config
Browse files Browse the repository at this point in the history
  • Loading branch information
lauraghiorghisor-tw committed Dec 13, 2024
1 parent 92b110d commit 4c3a040
Show file tree
Hide file tree
Showing 7 changed files with 143 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/govuk_index/mapped_document_types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ cma_case: cma_case # Specialist Publisher
contact: contact
coronavirus_landing_page: edition
countryside_stewardship_grant: countryside_stewardship_grant # Specialist Publisher
data_ethics_guidance_document: data_ethics_guidance_document # Specialist Publisher
drcf_digital_markets_research: drcf_digital_markets_research # Specialist Publisher
drug_safety_update: drug_safety_update # Specialist Publisher
employment_appeal_tribunal_decision: employment_appeal_tribunal_decision # Specialist Publisher
Expand Down
1 change: 1 addition & 0 deletions config/govuk_index/migrated_formats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ migrated:
- business_finance_support_scheme
- cma_case
- countryside_stewardship_grant
- data_ethics_guidance_document
- drcf_digital_markets_research
- drug_safety_update
- employment_appeal_tribunal_decision
Expand Down
108 changes: 108 additions & 0 deletions config/schema/elasticsearch_types/data_ethics_guidance_document.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
{
"fields": [
"data_ethics_guidance_document_key_reference",
"data_ethics_guidance_document_ethical_theme",
"data_ethics_guidance_document_organisation",
"data_ethics_guidance_document_function",
"data_ethics_guidance_document_project_phase",
"data_ethics_guidance_document_technology_area"
],
"expanded_search_result_fields": {
"data_ethics_guidance_document_key_reference": [
{
"label": "Yes",
"value": "yes"
},
{
"label": "No",
"value": "no"
}
],
"data_ethics_guidance_document_ethical_theme": [
{
"label": "Safety, Security and Robustness",
"value": "safety-security-and-robustness"
},
{
"label": "Appropriate Transparency and Explainability",
"value": "appropriate-transparency-and-explainability"
},
{
"label": "Fairness",
"value": "fairness"
},
{
"label": "Accountability and Governance",
"value": "accountability-and-governance"
},
{
"label": "Contestability and Redress",
"value": "contestability-and-redress"
},
{
"label": "Privacy",
"value": "privacy"
},
{
"label": "Societal Wellbeing",
"value": "societal-wellbeing"
}
],
"data_ethics_guidance_document_project_phase": [
{
"label": "Across Lifecycle",
"value": "across-lifecycle"
},
{
"label": "Planning",
"value": "planning"
},
{
"label": "Initiation",
"value": "initiation"
},
{
"label": "Procurement",
"value": "procurement"
},
{
"label": "Implementation",
"value": "implementation"
},
{
"label": "Monitoring/Review",
"value": "monitoring-review"
}
],
"data_ethics_guidance_document_technology_area": [
{
"label": "AI",
"value": "ai"
},
{
"label": "Generative AI",
"value": "generative-ai"
},
{
"label": "Analytical Models",
"value": "analytical-models"
},
{
"label": "Research and Statistics",
"value": "research-and-statistics"
},
{
"label": "Data",
"value": "data"
},
{
"label": "Responsible Innovation",
"value": "responsible-innovation"
},
{
"label": "Automated Decision Making",
"value": "automated-decision-making"
}
]
}
}
20 changes: 20 additions & 0 deletions config/schema/field_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -1108,5 +1108,25 @@
"sfo_case_date_announced": {
"description": "Date announced of a SFO case",
"type": "date"
},


"data_ethics_guidance_document_key_reference": {
"type": "identifiers"
},
"data_ethics_guidance_document_ethical_theme": {
"type": "identifiers"
},
"data_ethics_guidance_document_organisation": {
"type": "searchable_text"
},
"data_ethics_guidance_document_function": {
"type": "identifiers"
},
"data_ethics_guidance_document_project_phase": {
"type": "identifiers"
},
"data_ethics_guidance_document_technology_area": {
"type": "identifiers"
}
}
1 change: 1 addition & 0 deletions config/schema/indexes/govuk.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"cma_case",
"contact",
"countryside_stewardship_grant",
"data_ethics_guidance_document",
"drcf_digital_markets_research",
"drug_safety_update",
"edition",
Expand Down
6 changes: 6 additions & 0 deletions lib/govuk_index/presenters/elasticsearch_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ def document
continuation_link: specialist.continuation_link,
country: specialist.country,
country_of_origin: specialist.country_of_origin,
data_ethics_guidance_document_key_reference: specialist.data_ethics_guidance_document_key_reference,
data_ethics_guidance_document_ethical_theme: specialist.data_ethics_guidance_document_ethical_theme,
data_ethics_guidance_document_organisation: specialist.data_ethics_guidance_document_organisation,
data_ethics_guidance_document_function: specialist.data_ethics_guidance_document_function,
data_ethics_guidance_document_project_phase: specialist.data_ethics_guidance_document_project_phase,
data_ethics_guidance_document_technology_area: specialist.data_ethics_guidance_document_technology_area,
date_application: specialist.date_application,
date_of_completion: specialist.date_of_completion,
date_of_occurrence: specialist.date_of_occurrence,
Expand Down
6 changes: 6 additions & 0 deletions lib/govuk_index/presenters/specialist_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ class SpecialistPresenter
delegate_to_payload :continuation_link
delegate_to_payload :country
delegate_to_payload :country_of_origin
delegate_to_payload :data_ethics_guidance_document_key_reference
delegate_to_payload :data_ethics_guidance_document_ethical_theme
delegate_to_payload :data_ethics_guidance_document_organisation
delegate_to_payload :data_ethics_guidance_document_function
delegate_to_payload :data_ethics_guidance_document_project_phase
delegate_to_payload :data_ethics_guidance_document_technology_area
delegate_to_payload :date_application
delegate_to_payload :date_of_completion
delegate_to_payload :date_of_occurrence
Expand Down

0 comments on commit 4c3a040

Please sign in to comment.