-
Notifications
You must be signed in to change notification settings - Fork 2
Add more mapping #46
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
Add more mapping #46
Conversation
|
Hey @bwalkerl, Looks good so far. I am still testing on my end. I ran into a few task errors like missing course id and broken pipe. I believe they are unrelated to your changes but testing is taking a bit longer than I expected. Cheers. |
|
|
@Fragonite That's likely related to an old course as you said and not this patch, but yes the strictness for those should definitely be changed and a check for false added before continuing. |
1fdc061 to
89bb95f
Compare
|
@bwalkerl would be nice to add some automated tests to support this change. |
|
@dmitriim 100% agree - automated testing would make this so much easier, but I'm struggling to find ways to make this work. Do you have any ideas? The data that's inserted into the database ends up being |
|
After thinking things through, while I don't know of a way to cover the mapping with tests, covering the methods used in the helper class will go a long way to ensuring integrity. I've added a base and will flesh this out more when I get a chance. |
|
Hi @bwalkerl, Looks pretty good to me. Clears 99% of base64 records on a large database (I believe many of the remaining are truncated and cannot be converted). Cheers. |
Adds mapping for:
And some minor refactors for clarity, and hardcode 2 tables that have different 'format' column names.
Note that grade_grades takes content from many other sources (assign etc), so even if you fix the data there the base64 data may re-appear if the original field isn't fixed and is updated again.
For the view links:
It would be great if we could get some unit tests to cover mapping, but not sure if it's possible. It might be possible using some editor logic?