Skip to content

Commit

Permalink
Merge pull request #3120 from alphagov/changes-to-data-ethics
Browse files Browse the repository at this point in the history
Changes to data ethics
  • Loading branch information
lauraghiorghisor-tw authored Jan 9, 2025
2 parents dbfc81a + b18f25c commit 4f2e81e
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 17 deletions.
125 changes: 118 additions & 7 deletions config/schema/elasticsearch_types/data_ethics_guidance_document.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,131 @@
{
"fields": [
"data_ethics_guidance_document_key_reference",
"data_ethics_guidance_document_ethical_theme",
"data_ethics_guidance_document_organisation",
"data_ethics_guidance_document_organisation_alias",
"data_ethics_guidance_document_project_phase",
"data_ethics_guidance_document_technology_area"
],
"expanded_search_result_fields": {
"data_ethics_guidance_document_key_reference": [
"data_ethics_guidance_document_organisation_alias": [
{
"label": "No",
"value": "no"
"label": "AI Safety Institute",
"value": "ai-safety-institute"
},
{
"label": "Yes",
"value": "yes"
"label": "Analysis Standards and Pipelines Hub",
"value": "analysis-standards-and-pipelines-hub"
},
{
"label": "Cabinet Office",
"value": "cabinet-office"
},
{
"label": "Central Digital and Data Office",
"value": "central-digital-and-data-office"
},
{
"label": "Crown Commercial Service",
"value": "crown-commercial-service"
},
{
"label": "Defence Science and Technology Laboratory",
"value": "defence-science-and-technology-laboratory"
},
{
"label": "Department for Digital, Culture, Media & Sport",
"value": "department-for-digital-culture-media-sport"
},
{
"label": "Department for Energy, Security and Net Zero",
"value": "department-for-energy-security-and-net-zero"
},
{
"label": "Department for Science, Innovation and Technology",
"value": "department-for-science-innovation-and-technology"
},
{
"label": "Department of Health and Social Care",
"value": "department-of-health-and-social-care"
},
{
"label": "Equality and Human Rights Commission",
"value": "equality-and-human-rights-commission"
},
{
"label": "Evaluation Task Force",
"value": "evaluation-task-force"
},
{
"label": "GCHQ",
"value": "gchq"
},
{
"label": "Geospatial Commission",
"value": "geospatial-commission"
},
{
"label": "Government Analysis Function",
"value": "government-analysis-function"
},
{
"label": "Government Commercial Function",
"value": "government-commercial-function"
},
{
"label": "Government Data Quality Hub",
"value": "government-data-quality-hub"
},
{
"label": "Government Digital Service",
"value": "government-digital-service"
},
{
"label": "Government Finance Function",
"value": "government-finance-function"
},
{
"label": "Government Social Research Profession",
"value": "government-social-research-profession"
},
{
"label": "HM Treasury",
"value": "hm-treasury"
},
{
"label": "Information Commissioner's Office",
"value": "information-commissioners-office"
},
{
"label": "Ministry of Defence",
"value": "ministry-of-defence"
},
{
"label": "National Cyber Security Centre",
"value": "national-cyber-security-centre"
},
{
"label": "NHS",
"value": "nhs"
},
{
"label": "Office for Artificial Intelligence",
"value": "office-for-artificial-intelligence"
},
{
"label": "Office for National Statistics",
"value": "office-for-national-statistics"
},
{
"label": "Responsible Technology Adoption Unit",
"value": "responsible-technology-adoption-unit"
},
{
"label": "Scottish Government",
"value": "scottish-government"
},
{
"label": "UK Statistics Authority",
"value": "uk-statistics-authority"
}
],
"data_ethics_guidance_document_ethical_theme": [
Expand Down
8 changes: 2 additions & 6 deletions config/schema/field_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -1110,15 +1110,11 @@
"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_organisation_alias": {
"type": "identifiers"
},
"data_ethics_guidance_document_project_phase": {
"type": "identifiers"
Expand Down
3 changes: 1 addition & 2 deletions lib/govuk_index/presenters/elasticsearch_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ 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_organisation_alias: specialist.data_ethics_guidance_document_organisation_alias,
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,
Expand Down
3 changes: 1 addition & 2 deletions lib/govuk_index/presenters/specialist_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ 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_organisation_alias
delegate_to_payload :data_ethics_guidance_document_project_phase
delegate_to_payload :data_ethics_guidance_document_technology_area
delegate_to_payload :date_application
Expand Down

0 comments on commit 4f2e81e

Please sign in to comment.