-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquestion_sets.py
447 lines (445 loc) · 16.8 KB
/
question_sets.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
from application.models import Stage
publishing_organisations = [
"Architects Registration Board",
"Boundary Commission for England",
"Building Regulations Advisory Committee",
"Department for Education",
"Department for Environment, Food & Rural Affairs",
"Department for Transport",
"Development corporations",
"Environment Agency",
"Forestry Commission",
"Greater London Authority",
"HM Land Registry",
"Health and Safety Executive",
"Historic England",
"Homes England",
"Housing Ombudsman",
"Leasehold Advisory Service",
"Local authorities",
"Local enterprise partnerships",
"Ministry of Housing, Communities & Local Government",
"National park authorities",
"Natural England",
"Office for National Statistics",
"Ordnance Survey",
"Passenger transport exectutive",
"Planning Inspectorate",
"RSPB (Royal Society for the Protection of Birds)",
"Regional park authorities",
"Regulator of Social Housing",
"Royal Mail",
"Sport England",
"The Coal Authority",
"The National Grid",
"UK Air (Defra)",
"UKRadon (UKHSA)",
"Valuation Office Agency",
"Valuation Tribunal Service",
"Valuation Tribunal for England",
"Waste authorities",
"Woodland Trust",
"Unknown",
]
questions = {
Stage.BACKLOG: [
{
"who-asked-for-it": {
"question": "Who asked for '{name}' data?",
"type": "input",
"hint": """Give a specific name and role. E.g. Eloise, policy.""",
"next": {
"type": "slug",
"slug": "what-is-the-driver",
},
}
},
{
"what-is-the-driver": {
"question": "What is the driver for the request?",
"type": "choose-one-from-list", # should it accept multiple?
"choices": [
"National policy change",
"Ministerial priority",
"Specific user requirement",
"LPA requirement",
"Existing planning requirement",
"Other",
],
"next": {
"type": "slug",
"slug": "which-focus-area-does-it-support",
},
"prev": "who-asked-for-it",
}
},
{
"which-focus-area-does-it-support": {
"question": "Which 2024 focus area does the request support?",
"type": "choose-one-or-more",
"choices": [
"Modern planning software",
"Faster local plans",
"Included in LURA",
"Other",
],
"prev": "what-is-the-driver",
}
},
],
Stage.SCREEN: [
{
"what-is-the-planning-consideration": {
"question": "What is the '{name}' consideration?",
"type": "textarea",
"hint": """Provide a description of this planning consideration.
The common name for the planning consideration should be used here""",
"next": {
"type": "slug",
"slug": "is-there-legislation",
},
}
},
{
"is-there-legislation": {
"question": "Is there legislation that defines '{name}'?",
"type": "choose-one-from-list",
"choices": ["Yes", "No"],
"hint": """Tell us where it is""",
"prev": "what-is-the-planning-consideration",
"next": {
"type": "condition",
"conditions": [
{"slug": "what-is-the-legislation-that-defines", "value": "Yes"}
],
"default_slug": "who-in-law-is-responsible-for-it",
},
}
},
{
"what-is-the-legislation-that-defines": {
"question": "What is the legislation that defines '{name}'?",
"type": "textarea",
"hint": """We are looking for the legislation that specifically sets what the consideration is and why it matters in planning.""",
"prev": "is-there-legislation",
"next": {
"type": "slug",
"slug": "what-is-the-legislation-that-defines-designation",
},
}
},
{
"what-is-the-legislation-that-defines-designation": {
"question": "What is the specific part of the legislation that describes how a '{name}' gets designated?",
"type": "textarea",
"hint": """We are looking for the legislation that specifically sets out who,
where applicable, are the parties who are able to designate the planning consideration""",
"prev": "what-is-the-legislation-that-defines",
"next": {
"type": "slug",
"slug": "what-is-the-legislation-for-publication",
},
}
},
{
"what-is-the-legislation-for-publication": {
"question": "What is the specific part of the legislation that requires the publication of '{name}'?",
"type": "textarea",
"hint": """We are looking for the legislation that specifically
mentions data/registers or other""",
"prev": "what-is-the-legislation-that-defines-designation",
"next": {
"type": "slug",
"slug": "who-in-law-is-responsible-for-it",
},
}
},
{
"who-in-law-is-responsible-for-it": {
"question": "Who, in law, is responsible for the planning consideration or makes decisions about '{name}'?",
"type": "textarea",
"hint": """We are looking for the legislation that imposes this accountability on an organisation""",
"prev": "what-is-the-legislation-for-publication",
"next": {
"type": "slug",
"slug": "publishing-organisations",
},
}
},
{
"publishing-organisations": {
"question": "Which organisations do we think should publish the data?",
"type": "choose-one-or-more",
"hint": """""",
"choices": publishing_organisations,
"prev": "who-in-law-is-responsible-for-it",
"next": {
"type": "slug",
"slug": "is-it-a-trigger",
},
}
},
{
"is-it-a-trigger": {
"question": "Is the {name} a trigger?",
"type": "choose-one-from-list",
"choices": ["Yes", "No"],
"hint": """Considerations can trigger a need to do something or a series of things.""", # it triggers a planning requirement
"prev": "publishing-organisations",
"next": {
"type": "condition",
"conditions": [
{"slug": "what-is-triggered", "value": "Yes"},
{"slug": "is-it-consulted", "value": "No"},
],
"default_slug": "is-it-consulted",
},
}
},
{
"what-is-triggered": {
"question": "What needs to be done because {name} has acted as the trigger?",
"type": "textarea",
"prev": "is-it-a-trigger",
"next": {
"type": "slug",
"slug": "is-it-consulted",
},
}
},
{
"is-it-consulted": {
"question": "Is the {name} something to consult during plan making?",
"type": "choose-one-from-list",
"choices": ["Yes", "No"],
"hint": """Some considerations are consulted when performing tasks within the planning system.""",
"prev": "is-it-a-trigger",
"next": {
"type": "condition",
"conditions": [
{"slug": "is-consulted", "value": "Yes"},
{"slug": "existing-data", "value": "No"},
],
"default_slug": "existing-data",
},
}
},
{
"is-consulted": {
"question": "Provide information about when {name} is used during plan making",
"type": "textarea",
"hint": """Some considerations are consulted when performing tasks within the planning system.""",
"prev": "is-it-consulted",
"next": {
"type": "slug",
"slug": "existing-data",
},
}
},
{
"existing-data": {
"question": "Is there any {name} data already available?",
"type": "choose-one-from-list",
"choices": ["Yes", "No"],
"prev": "is-it-consulted",
"next": {
"type": "condition",
"conditions": [
{"slug": "existing-data-examples", "value": "Yes"},
{"slug": "single-source", "value": "No"},
],
"default_slug": "single-source",
},
}
},
{
"existing-data-examples": {
"question": "What {name} data is currently available?",
"type": "add-to-a-list",
"form": "ExistingDataForm",
"hint": """Capture examples of any data currently available.""",
"prev": "existing-data",
"next": {
"type": "slug",
"slug": "single-source",
},
}
},
{
"single-source": {
"question": "Do we think the data should come from a single source?",
"type": "textarea",
"hint": """Some datasets should be published by a single organisation.""",
"prev": "existing-data",
"next": {
"type": "slug",
"slug": "is-a-data-standard-required",
},
}
},
{
"is-a-data-standard-required": {
"question": "Will a data standard be required?",
"type": "choose-one-from-list",
"hint": """We want to flag if we think we'll need to aggregate data from multiple providers.""",
"choices": ["Yes", "No"],
"prev": "single-source",
}
},
],
Stage.RESEARCH: [
{
"lifecycle": {
"question": "Do we understand the lifecycle of a {name}?",
"type": "choose-one-from-list",
"choices": ["Yes", "No"],
"next": {
"type": "condition",
"conditions": [
{"slug": "lifecycle-stages", "value": "Yes"},
{"slug": "how-is-data-created", "value": "No"},
],
"default_slug": "how-is-data-created",
},
}
},
{
"lifecycle-stages": {
"question": "Document a stage of the high-level lifecycle of a {name}",
"type": "add-to-a-list",
"form": "LifecycleStagesForm",
"hint": """Provide details of the stage""",
"prev": "lifecycle",
"next": {
"type": "slug",
"slug": "how-is-data-created",
},
}
},
{
"how-is-data-created": {
"question": "Do we understand how the data is created/produced?",
"type": "textarea",
"hint": """What is the recipe? How do we think the publisher does this?""",
"next": {
"type": "slug",
"slug": "where-is-data-used",
},
"prev": "lifecycle",
}
},
{
"where-is-data-used": {
"question": "Where will or should the data be used?",
"type": "textarea",
"hint": "Where do we expect the data to be used and for what purpose.",
"next": {
"type": "slug",
"slug": "related-planning-considerations",
},
"prev": "how-is-data-created",
}
},
{
"related-planning-considerations": {
"question": "What other planning considerations does it interact with?",
"type": "textarea",
"hint": "List the planning considerations it interacts with. Try to explain how.",
"next": {
"type": "slug",
"slug": "statutory-consultees",
},
"prev": "where-is-data-used",
}
},
{
"statutory-consultees": {
"question": "Who are the statutory consultees for {name}?",
"type": "textarea",
"hint": "Create a list of the consultees and link to information about them where appropriate",
"next": {
"type": "slug",
"slug": "primary-users",
},
"prev": "related-planning-considerations",
}
},
{
"primary-users": {
"question": (
"Other than the statutory consultees who are the primary users of {name}? "
"How do we expect them to use {name}?"
),
"type": "textarea",
"hint": (
"List the actor or actors affected by the planning consideration, "
"include how we expect each actor to actually use the data, what will they do with it and why?"
),
"next": {
"type": "slug",
"slug": "user-and-data-needs",
},
"prev": "statutory-consultees",
}
},
{
"user-and-data-needs": {
"question": "What are the planning needs for this data?",
"type": "textarea",
"hint": "Either capture the needs here or link to where the needs have been recorded.",
"next": {
"type": "slug",
"slug": "additional-users",
},
"prev": "primary-users",
}
},
{
"additional-users": {
"question": "Who are the types of users who might benefit from having access to {name} data?",
"type": "textarea",
"hint": "These are actors who may find the data useful, but are not the statutory user.",
"next": {
"type": "slug",
"slug": "use-cases",
},
"prev": "user-and-data-needs",
}
},
{
"use-cases": {
"question": "What are some potential uses of {name} data?",
"type": "textarea",
"next": {
"type": "slug",
"slug": "value-to-platform",
},
"prev": "additional-users",
}
},
{
"value-to-platform": {
"question": "What's the value of adding {name} data to the platform?",
"type": "textarea",
"hint": "Is there value in DLUHC investing time and effort in getting the data ready and re-publishing?",
"next": {
"type": "slug",
"slug": "risks",
},
"prev": "use-cases",
}
},
{
"risks": {
"question": "From what we have learnt so far are there any risks to making {name} data available?",
"type": "textarea",
"hint": (
"This could be things like, the multiple sources of data, unclear licensing, "
"lack of legislative driver, poor data quality, poorly defined requirements, "
"ongoing costs on LPA, DLUHC etc."
),
"prev": "value-to-platform",
}
},
],
}