Start creating a script to copy level concept difficulty from year to year #40679
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.
Mike reported in slack that the
level_concept_difficulty
for levels in 2020 did not get copied over from 2019. This means that also 2021 did not get thelevel_concept_difficulty
information either. This script will allow us to look for theparent_level_id
for a level, which we set when we copy levels using eitherclone_with_name
orclone_with_suffix
. Using theparent_level_id
we can find out thelevel_concept_difficulty
for the parent level and then duplicate it and add it to the original level.This script will need to be run on levelbuilder since that is where we cloned the scripts and level ids are specific to the environment.
Links
https://codedotorg.atlassian.net/browse/PLAT-1066
Testing story
level_concept_difficulty
copy_lcd_from_parent
on the copied level and it workedI can't test the script fully locally because the parent_level_ids are specific to levelbuilder.