Repository navigation
feat(database): init normalisation tool - #205
ShaunSHamilton wants to merge 31 commits into
Conversation
ojeytonwilliams
left a comment
There was a problem hiding this comment.
Hey, @ShaunSHamilton, could you add some tests for this? The logic for updating completed challenges and so on is pretty complicated, so it would be good to see a few tests of the transformation.
I think the logic is very simple, but could add tests. I do not see myself having time anytime soon, because it is quite involved writing tests for Mongodb operations (the fixture data is annoying). |
|
We do need to be confident in that scripts that modify user data, and some tests would really help with that. I don't really understand Rust, but something along the lines of let unnormalized_user = doc! { blah }
let normalized_user = doc! { blah blah}
let result = normalized_user(&unnormalized_user)
// something to assert deep equalityshould be possible, shouldn't it? |
|
can I block this on the principle that rust doesn't belong in the codebase? 🙃 |
Once TypeScript becomes correct and statically typed, I will rewrite this in it. |
|
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
|
Closing as this is not the direction we plan to go. A new PR will be made to handle "normalization"-type tasks |
Checklist:
Update index.md)