Skip to content

Commit 3a18c54

Browse files
Add new finder for authorised fuels (Defra)
1 parent 1c454d3 commit 3a18c54

File tree

7 files changed

+43
-0
lines changed

7 files changed

+43
-0
lines changed

config/govuk_index/mapped_document_types.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ algorithmic_transparency_record: algorithmic_transparency_record # Specialist Pu
77
animal_disease_case: animal_disease_case # Specialist Publisher
88
answer: edition
99
asylum_support_decision: asylum_support_decision # Specialist Publisher
10+
authorised_fuel: authorised_fuel # Specialist Publisher
1011
business_finance_support_scheme: business_finance_support_scheme # Specialist Publisher
1112
calendar: edition
1213
cma_case: cma_case # Specialist Publisher

config/govuk_index/migrated_formats.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ migrated:
3030
- animal_disease_case
3131
- algorithmic_transparency_record
3232
- asylum_support_decision
33+
- authorised_fuel
3334
- business_finance_support_scheme
3435
- cma_case
3536
- countryside_stewardship_grant
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"fields": [
3+
"authorised_fuel_name",
4+
"authorised_fuel_manufacturer_name",
5+
"authorised_fuel_type",
6+
"authorised_fuel_country",
7+
"authorised_fuel_date_the_fuel_was_authorised",
8+
"authorised_fuel_address"
9+
]
10+
}

config/schema/field_definitions.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,5 +1121,23 @@
11211121
},
11221122
"data_ethics_guidance_document_technology_area": {
11231123
"type": "identifiers"
1124+
},
1125+
"authorised_fuel_name": {
1126+
"type": "identifiers"
1127+
},
1128+
"authorised_fuel_manufacturer_name": {
1129+
"type": "identifiers"
1130+
},
1131+
"authorised_fuel_type": {
1132+
"type": "identifiers"
1133+
},
1134+
"authorised_fuel_country": {
1135+
"type": "identifiers"
1136+
},
1137+
"authorised_fuel_date_the_fuel_was_authorised": {
1138+
"type": "date"
1139+
},
1140+
"authorised_fuel_address": {
1141+
"type": "identifiers"
11241142
}
11251143
}

config/schema/indexes/govuk.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"algorithmic_transparency_record",
66
"animal_disease_case",
77
"asylum_support_decision",
8+
"authorised_fuel",
89
"business_finance_support_scheme",
910
"cma_case",
1011
"contact",

lib/govuk_index/presenters/elasticsearch_presenter.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ def document
3131
assessment_date: specialist.assessment_date,
3232
assurance_technique_approach: specialist.assurance_technique_approach,
3333
attachments: common_fields.attachments,
34+
authorised_fuel_address: specialist.authorised_fuel_address,
35+
authorised_fuel_country: specialist.authorised_fuel_country,
36+
authorised_fuel_date_the_fuel_was_authorised: specialist.authorised_fuel_date_the_fuel_was_authorised,
37+
authorised_fuel_manufacturer_name: specialist.authorised_fuel_manufacturer_name,
38+
authorised_fuel_name: specialist.authorised_fuel_name,
39+
authorised_fuel_type: specialist.authorised_fuel_type,
3440
authors: specialist.authors,
3541
business_sizes: specialist.business_sizes,
3642
business_stages: specialist.business_stages,

lib/govuk_index/presenters/specialist_presenter.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ class SpecialistPresenter
2121
delegate_to_payload :areas_of_interest
2222
delegate_to_payload :assessment_date
2323
delegate_to_payload :assurance_technique_approach, convert_to_array: true
24+
delegate_to_payload :authorised_fuel_address
25+
delegate_to_payload :authorised_fuel_country
26+
delegate_to_payload :authorised_fuel_date_the_fuel_was_authorised
27+
delegate_to_payload :authorised_fuel_manufacturer_name
28+
delegate_to_payload :authorised_fuel_name
29+
delegate_to_payload :authorised_fuel_type
2430
delegate_to_payload :authors
2531
delegate_to_payload :business_sizes
2632
delegate_to_payload :business_stages

0 commit comments

Comments
 (0)