Skip to content

Commit

Permalink
Merge pull request #2612 from alphagov/create-farming-grants-finder
Browse files Browse the repository at this point in the history
Add farming grants finder
  • Loading branch information
beccapearce authored Feb 6, 2024
2 parents 0942e81 + 90242bd commit f5a51f9
Show file tree
Hide file tree
Showing 13 changed files with 800 additions and 0 deletions.
1 change: 1 addition & 0 deletions content_schemas/allowed_document_types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
- export_health_certificate
- external_content
- facet
- farming_grant_option
- fatality_notice
- field_of_operation
- fields_of_operation
Expand Down
1 change: 1 addition & 0 deletions content_schemas/dist/formats/generic/frontend/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"export_health_certificate",
"external_content",
"facet",
"farming_grant_option",
"fatality_notice",
"field_of_operation",
"fields_of_operation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
"export_health_certificate",
"external_content",
"facet",
"farming_grant_option",
"fatality_notice",
"field_of_operation",
"fields_of_operation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
"export_health_certificate",
"external_content",
"facet",
"farming_grant_option",
"fatality_notice",
"field_of_operation",
"fields_of_operation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"export_health_certificate",
"external_content",
"facet",
"farming_grant_option",
"fatality_notice",
"field_of_operation",
"fields_of_operation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
"export_health_certificate",
"external_content",
"facet",
"farming_grant_option",
"fatality_notice",
"field_of_operation",
"fields_of_operation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
"export_health_certificate",
"external_content",
"facet",
"farming_grant_option",
"fatality_notice",
"field_of_operation",
"fields_of_operation",
Expand Down
100 changes: 100 additions & 0 deletions content_schemas/dist/formats/specialist_document/frontend/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"employment_tribunal_decision",
"esi_fund",
"export_health_certificate",
"farming_grant_option",
"flood_and_coastal_erosion_risk_management_research_report",
"international_development_fund",
"licence_transaction",
Expand Down Expand Up @@ -686,6 +687,9 @@
{
"$ref": "#/definitions/flood_and_coastal_erosion_risk_management_research_report"
},
{
"$ref": "#/definitions/farming_grant_option_metadata"
},
{
"$ref": "#/definitions/maib_report_metadata"
},
Expand Down Expand Up @@ -1697,6 +1701,102 @@
}
}
},
"farming_grant_option_metadata": {
"type": "object",
"additionalProperties": false,
"properties": {
"areas_of_interest": {
"type": "array",
"items": {
"type": "string",
"enum": [
"access-and-engagement",
"air-quality",
"biodiversity",
"boundaries",
"crops",
"flood-risk",
"forestry",
"historic-environment",
"livestock-management",
"peat",
"pollinators-and-wildlife",
"precision-farming",
"slurry-management",
"soil",
"trees-non-woodland",
"vegetation-control",
"water"
]
}
},
"bulk_published": {
"type": "boolean"
},
"funding_types": {
"type": "array",
"items": {
"type": "string",
"enum": [
"option",
"item",
"action"
]
}
},
"grant_schemes": {
"type": "array",
"items": {
"type": "string",
"enum": [
"combined-offer",
"countryside-stewardship",
"farming-equipment-and-technology-fund",
"slurry-infrastructure-grant",
"sustainable-farming-incentive"
]
}
},
"land_types": {
"type": "array",
"items": {
"type": "string",
"enum": [
"arable-land",
"coast",
"grassland",
"lowland-heath",
"moorland-and-upland",
"organic-land",
"priority-habitats",
"waterbodies",
"wetland",
"woodland"
]
}
},
"open_or_closed": {
"type": "array",
"items": {
"type": "string",
"enum": [
"open",
"closed"
]
}
},
"payment_types": {
"type": "array",
"items": {
"type": "string",
"enum": [
"capital",
"revenue"
]
}
}
}
},
"first_published_at": {
"description": "The date the content was first published. Automatically determined by the publishing-api, unless overridden by the publishing application.",
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"employment_tribunal_decision",
"esi_fund",
"export_health_certificate",
"farming_grant_option",
"flood_and_coastal_erosion_risk_management_research_report",
"international_development_fund",
"licence_transaction",
Expand Down Expand Up @@ -778,6 +779,9 @@
{
"$ref": "#/definitions/flood_and_coastal_erosion_risk_management_research_report"
},
{
"$ref": "#/definitions/farming_grant_option_metadata"
},
{
"$ref": "#/definitions/maib_report_metadata"
},
Expand Down Expand Up @@ -1789,6 +1793,102 @@
}
}
},
"farming_grant_option_metadata": {
"type": "object",
"additionalProperties": false,
"properties": {
"areas_of_interest": {
"type": "array",
"items": {
"type": "string",
"enum": [
"access-and-engagement",
"air-quality",
"biodiversity",
"boundaries",
"crops",
"flood-risk",
"forestry",
"historic-environment",
"livestock-management",
"peat",
"pollinators-and-wildlife",
"precision-farming",
"slurry-management",
"soil",
"trees-non-woodland",
"vegetation-control",
"water"
]
}
},
"bulk_published": {
"type": "boolean"
},
"funding_types": {
"type": "array",
"items": {
"type": "string",
"enum": [
"option",
"item",
"action"
]
}
},
"grant_schemes": {
"type": "array",
"items": {
"type": "string",
"enum": [
"combined-offer",
"countryside-stewardship",
"farming-equipment-and-technology-fund",
"slurry-infrastructure-grant",
"sustainable-farming-incentive"
]
}
},
"land_types": {
"type": "array",
"items": {
"type": "string",
"enum": [
"arable-land",
"coast",
"grassland",
"lowland-heath",
"moorland-and-upland",
"organic-land",
"priority-habitats",
"waterbodies",
"wetland",
"woodland"
]
}
},
"open_or_closed": {
"type": "array",
"items": {
"type": "string",
"enum": [
"open",
"closed"
]
}
},
"payment_types": {
"type": "array",
"items": {
"type": "string",
"enum": [
"capital",
"revenue"
]
}
}
}
},
"first_published_at": {
"description": "The date the content was first published. Automatically determined by the publishing-api, unless overridden by the publishing application.",
"type": "string",
Expand Down
Loading

0 comments on commit f5a51f9

Please sign in to comment.