[CTIS] Create new set of CID lists to send to FB #1405
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Support creating and sharing new CID lists. This duplicates our existing CID lists (step 1/part a and full) under different names, and produces a new CID list that takes into account whether or not respondents completed the A/B modules and provided key demographic information. These new CID lists are considered experimental for now and are not reported to data users. They are saved to a new local directory and uploaded to a new directory on the FTP site.
Specs on CID list definitions and associated Asana task.
Changelog
post-experimental-cidstarget.contingency_variables.R: Remove age and gender definitions.variables.R: Add age and gender definitions now that they'll be created for both API and contingency pipelines.responses.R:filter_module_complete_responses()to create valid response lists for new CID list definition.run.R: Add new CID list creation and save steps.weights.R:write_cid()with new args so provided data can be saved with different filename and in a different location.module_type, if provided, is added to the printed message.generate_cid_list_filename()to remove fromwrite_cid()write_cid_experimental_wrapper()to pass new args towrite_cid()as need to write CID lists with new names.params.json.template,params.json.production.template,integration-tests/.../params-full.json,integration-tests/.../params-test.json: Addexperimental_weights_out_dirfield to save experimental CID lists separately from other CID lists.integration-tests/.../helper-relativize.R: Relativize newexperimental_weights_out_dirfield.