-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MVP: Schemas for Roofing Tiles/Slate + Prodcom #1
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, validation working and examples schemas passing, just some minor comments
@jon-acker @Jon-Kent @martyncolmer @tidmanmike @ONSdigital/eq-runner Change request to existing implementation: At the moment, the top level and repeating items have a The work required by SDX shouldn't change much either way. Let me know your thoughts. If there is agreement, I will push the changes. Note we may have to keep Before: {
"schema_version": "v1",
"key_field": "ru_ref",
"ru_ref": "50000035606",
"items": {
"local_units": {
"key_field": "lu_ref",
"values": [
{
"lu_ref": "3340224",
"lu_name": "STUBBS BUILDING PRODUCTS LTD",
"lu_address": [
"WELLINGTON ROAD",
"LOCHMABEN",
"SWINDON",
"BEDS",
"GLOS",
"DE41 2WA"
]
},
{
"lu_ref": "20047673",
"lu_name": "HOPSCOTCH INDUSTRIES UK LTD",
"lu_address": [
"SOUTH CERNEY WORKS",
"SHAWELL LANE",
"BEENHAM",
"STAFFS",
"BEDFORDSHIRE",
"GL4 5YU"
]
}
]
}
}
} After: {
"schema_version": "v1",
"identifier": "50000035606",
"items": {
"local_units": [
{
"identifier": "3340224",
"lu_name": "STUBBS BUILDING PRODUCTS LTD",
"lu_address": [
"WELLINGTON ROAD",
"LOCHMABEN",
"SWINDON",
"BEDS",
"GLOS",
"DE41 2WA"
]
},
{
"identifier": "20047673",
"lu_name": "HOPSCOTCH INDUSTRIES UK LTD",
"lu_address": [
"SOUTH CERNEY WORKS",
"SHAWELL LANE",
"BEENHAM",
"STAFFS",
"BEDFORDSHIRE",
"GL4 5YU"
]
}
]
}
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understood and approved in current impl - will re-review if key_field removal proposal is implemented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All makes sense and happy with current proposal, with or without key field, though would also favour just having the identifier
Happy with this approach as it gives it a global unique identifier across both social and business surveys. |
FYI, I will be making the changes suggested here #1 (comment). Since @jon-acker, @tidmanmike and Runner team are happy with this, I will go ahead with the changes. The change in structure shouldn't really impact Author. |
Model has been updated to use #1 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to identifier made everywhere key field was previously and has been done as outlined in the comment, looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to using identifier looks good and is updated throughout 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-read the changes seems good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy with this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy with this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
What is the context of this PR?
Initial PR to add unit level JSON schema definitions for Roofing Tiles, Slate and Prodcom surveys.
Ensure the initial draft makes sense.
Other SDS surveys will be added at a future date, this will formalise the main structure and expected patterns.
Links
Checklist