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
When clone_with_suffix for level copy the level_concept_difficulty too #40751
Conversation
…lone_with_suffix call
Co-authored-by: Elijah Hamovitz <elijahhamovitz@gmail.com>
@Hamms I don't think your suggestion works because it looks like assign_attributes only works on properties. The test fails with error. I'm going to put it back to how it was |
This reverts commit abb6f4e.
Oh, I think you need to use a string rather than a symbol. See code-dot-org/dashboard/app/models/levels/level.rb Lines 158 to 172 in 545cf40
|
That looks like it works for something written like this:
Which I think is harder to get to here. So I'm going to merge it as is. |
When we clone_with_suffix on a level (which is what we use when we do a script copy) well will now also copy the level concept difficulty over. This will help with making sure that we don't lose level_concept_difficulty tagging between years of courses.
I also removed the one-off script we used to do this copy this year since we should no longer need it.
Links
https://codedotorg.atlassian.net/browse/PLAT-1075
Testing story
Added a test to make sure the level concept difficulty is copied to the new level