Skip to content

Instantly share code, notes, and snippets.

@alexmuller
Created July 16, 2014 13:40
Show Gist options
  • Save alexmuller/d2bd2223cec61a8e28f7 to your computer and use it in GitHub Desktop.
Save alexmuller/d2bd2223cec61a8e28f7 to your computer and use it in GitHub Desktop.
lpa_volumes migration
Data set name: lpa_volumes
Data group: lasting-power-of-attorney
Data type: volumes
Upload format: excel
Upload filters: backdrop.core.upload.filters.first_sheet_filter
Auto ids: _timestamp,key
Graphs where this data is used:
- https://www.gov.uk/performance/lasting-power-of-attorney/volumetrics
- https://www.gov.uk/performance/lasting-power-of-attorney/digital-takeup
Spotlight config:
- https://github.com/alphagov/spotlight/blob/master/app/support/stagecraft_stub/responses/lasting-power-of-attorney.json
Migration:
{
'old_name': "lpa_volumes",
'new_data_set': {
'data_group': "lasting-power-of-attorney",
'data_type': "transactions-by-channel",
'auto_ids': "_timestamp,channel",
},
'data_mapping': {
'key_mapping': {
"key": "channel",
},
}
}
@alexmuller
Copy link
Author

Note that this will require changes to the Excel file that they're using to upload this data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment