Skip to content

Making changes to Construction survey

Joshua Chapman edited this page Feb 23, 2023 · 5 revisions

use the following link with the Questionnaire ID you want to edit

https://author.eqbs.gcp.onsdigital.uk/convert/[Qid]

Copy JSON

Goto eq-survey-runner

New branch for ticket

data/en copy construction_0002.json to construction.000s.old.json

Paste JSON into construction.0002.json

In Terminal…

Nvm use 8 Yarn format

This will change the layout

Yarn lint to check

Compare changes in working tree and copy relevant ones to the new version.

Top of Json

eq_id: “construction-0002” Formtype: “0002” data_version should be “0.0.1” so we can use Qcodes

Bottom of Json

Metadata...

"Name": “trad_as” "Validator": should be “optional_string”

Theme (sidenote)

  • For covid 19 survey, theme should change from “default” to “covid”

Skip conditions

Look for changes/compare Mostly around public and private sector

3a 5 6 7 8

13a, 15 16 17 18 19

Skip condition should be at bottom of every block that are to skipped

trad_as

Change metada[‘trad_as’] to {{ first_non_empty_item(metadata[‘trad_as’], metadata[‘ru_name’]) }}

Qcodes

Add missing codes

Text changes

Ignore

Run yarn lint at the end before pushing up

build and view

eq-survey-schemas terminal Docker compose -up —build

Localhost:8000 to view survey list Localhost:5000 to view survey

Clone this wiki locally