Browse Source

Remove all ampersands from the service

pull/208/head
Paul Robert Lloyd 3 years ago
parent
commit
eb9533328d
  1. 2
      Gemfile
  2. 2
      LICENSE
  3. 20
      app/models/constants/case_log.rb
  4. 18
      config/forms/2021_2022.json
  5. 2
      docs/adr/adr-001-initial-architecture-decisions.md
  6. 8
      docs/api/DLUHC-CORE-Data.v1.json
  7. 2
      spec/fixtures/forms/2021_2022.json

2
Gemfile

@ -19,7 +19,7 @@ gem "bootsnap", ">= 1.4.4", require: false
gem "govuk-components" gem "govuk-components"
# GOV UK component form builder DSL # GOV UK component form builder DSL
gem "govuk_design_system_formbuilder" gem "govuk_design_system_formbuilder"
# Turbo & Stimulus # Turbo and Stimulus
gem "hotwire-rails" gem "hotwire-rails"
# Soft delete ActiveRecords objects # Soft delete ActiveRecords objects
gem "discard" gem "discard"

2
LICENSE

@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2021 Ministry of Housing, Communities & Local Government Copyright (c) 2021 Department for Levelling Up, Housing & Communities
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

20
app/models/constants/case_log.rb

@ -39,9 +39,9 @@ module Constants::CaseLog
"White: Irish" => 2, "White: Irish" => 2,
"White: Gypsy/Irish Traveller" => 18, "White: Gypsy/Irish Traveller" => 18,
"White: Other" => 3, "White: Other" => 3,
"Mixed: White & Black Caribbean" => 4, "Mixed: White and Black Caribbean" => 4,
"Mixed: White & Black African" => 5, "Mixed: White and Black African" => 5,
"Mixed: White & Asian" => 6, "Mixed: White and Asian" => 6,
"Mixed: Other" => 7, "Mixed: Other" => 7,
"Asian or Asian British: Indian" => 8, "Asian or Asian British: Indian" => 8,
"Asian or Asian British: Pakistani" => 9, "Asian or Asian British: Pakistani" => 9,
@ -113,13 +113,13 @@ module Constants::CaseLog
"Living with friends or family" => 28, "Living with friends or family" => 28,
"Refuge" => 21, "Refuge" => 21,
"Hospital" => 10, "Hospital" => 10,
"Prison / approved probation hostel" => 29, "Prison or approved probation hostel" => 29,
"Direct access hostel" => 7, "Direct access hostel" => 7,
"Bed & Breakfast" => 14, "Bed and breakfast" => 14,
"Mobile home / caravan" => 23, "Mobile home or caravan" => 23,
"Any other temporary accommodation" => 18, "Any other temporary accommodation" => 18,
"Home Office Asylum Support" => 24, "Home Office Asylum Support" => 24,
"Children’s home / foster care" => 13, "Children’s home or foster care" => 13,
"Rough sleeping" => 19, "Rough sleeping" => 19,
"Other" => 25, "Other" => 25,
"Fixed term Local Authority General Needs tenancy" => 30, "Fixed term Local Authority General Needs tenancy" => 30,
@ -1024,7 +1024,7 @@ module Constants::CaseLog
}.freeze }.freeze
LONDON_BOROUGHS = ["City of London", LONDON_BOROUGHS = ["City of London",
"Barking & Dagenham", "Barking and Dagenham",
"Barnet", "Barnet",
"Bexley", "Bexley",
"Brent", "Brent",
@ -1035,14 +1035,14 @@ module Constants::CaseLog
"Enfield", "Enfield",
"Greenwich", "Greenwich",
"Hackney", "Hackney",
"Hammersmith & Fulham", "Hammersmith and Fulham",
"Haringey", "Haringey",
"Harrow", "Harrow",
"Havering", "Havering",
"Hillingdon", "Hillingdon",
"Hounslow", "Hounslow",
"Islington", "Islington",
"Kensington & Chelsea", "Kensington and Chelsea",
"Kingston-upon-Thames", "Kingston-upon-Thames",
"Lambeth", "Lambeth",
"Lewisham", "Lewisham",

18
config/forms/2021_2022.json

@ -280,9 +280,9 @@
"1": "White: Irish", "1": "White: Irish",
"2": "White: Gypsy/Irish Traveller", "2": "White: Gypsy/Irish Traveller",
"3": "White: Other", "3": "White: Other",
"4": "Mixed: White & Black Caribbean", "4": "Mixed: White and Black Caribbean",
"5": "Mixed: White & Black African", "5": "Mixed: White and Black African",
"6": "Mixed: White & Asian", "6": "Mixed: White and Asian",
"7": "Mixed: Other", "7": "Mixed: Other",
"8": "Asian or Asian British: Indian", "8": "Asian or Asian British: Indian",
"9": "Asian or Asian British: Pakistani", "9": "Asian or Asian British: Pakistani",
@ -795,18 +795,18 @@
"2": "Private sector tenancy", "2": "Private sector tenancy",
"3": "Tied housing or rented with job", "3": "Tied housing or rented with job",
"4": "Supported housing", "4": "Supported housing",
"5": "Sheltered accomodation", "5": "Sheltered accommodation",
"6": "Residential care home", "6": "Residential care home",
"7": "Living with friends or family", "7": "Living with friends or family",
"8": "Refuge", "8": "Refuge",
"9": "Hospital", "9": "Hospital",
"10": "Prison / approved probation hostel", "10": "Prison or approved probation hostel",
"11": "Direct access hostel", "11": "Direct access hostel",
"12": "Bed & Breakfast", "12": "Bed and breakfast",
"13": "Mobile home / caravan", "13": "Mobile home or caravan",
"14": "Any other temporary accommodation", "14": "Any other temporary accommodation",
"15": "Home Office Asylum Support", "15": "Home Office Asylum Support",
"16": "Children’s home / foster care", "16": "Children’s home or foster care",
"17": "Rough sleeping", "17": "Rough sleeping",
"18": "Other", "18": "Other",
"19": "Fixed term Local Authority General Needs tenancy", "19": "Fixed term Local Authority General Needs tenancy",
@ -1927,7 +1927,7 @@
"description": "", "description": "",
"questions": { "questions": {
"hb": { "hb": {
"check_answer_label": "Universal Credit & Housing Benefit", "check_answer_label": "Housing-related benefits received",
"header": "Is the tenant likely to be in receipt of any of these housing-related benefits?", "header": "Is the tenant likely to be in receipt of any of these housing-related benefits?",
"hint_text": "", "hint_text": "",
"type": "radio", "type": "radio",

2
docs/adr/adr-001-initial-architecture-decisions.md

@ -18,7 +18,7 @@ Front end
- In the same app codebase - In the same app codebase
- ERB templates - ERB templates
Code Style & Linting Code style and linting
- Gov.uk Rubocop for Ruby style - Gov.uk Rubocop for Ruby style
- .editorconfig for whitespace, newlines etc - .editorconfig for whitespace, newlines etc

8
docs/api/DLUHC-CORE-Data.v1.json

@ -205,7 +205,7 @@
"properties": {} "properties": {}
}, },
"examples": { "examples": {
"Invalid Age & Reasonable Preference": { "Invalid Age and Reasonable Preference": {
"value": { "value": {
"errors": { "errors": {
"reasonable_preference_reason": [ "reasonable_preference_reason": [
@ -393,9 +393,9 @@
"White: Irish", "White: Irish",
"White: Gypsy/Irish Traveller", "White: Gypsy/Irish Traveller",
"White: Other", "White: Other",
"Mixed: White & Black Caribbean", "Mixed: White and Black Caribbean",
"Mixed: White & Black African", "Mixed: White and Black African",
"Mixed: White & Asian", "Mixed: White and Asian",
"Mixed: Other", "Mixed: Other",
"Asian or Asian British: Indian", "Asian or Asian British: Indian",
"Asian or Asian British: Pakistani", "Asian or Asian British: Pakistani",

2
spec/fixtures/forms/2021_2022.json vendored

@ -413,7 +413,7 @@
"housing_benefit": { "housing_benefit": {
"questions": { "questions": {
"hb": { "hb": {
"check_answer_label": "Universal Credit & Housing Benefit", "check_answer_label": "Housing-related benefits received",
"header": "Is the tenant likely to be in receipt of any of these housing-related benefits?", "header": "Is the tenant likely to be in receipt of any of these housing-related benefits?",
"type": "radio", "type": "radio",
"answer_options": { "answer_options": {

Loading…
Cancel
Save