-
Notifications
You must be signed in to change notification settings - Fork 481
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
Refactor sectionProgressRedux - prefactor for time_spent addition to progress tab #36192
Conversation
…x to sectionProgressLoader
This looks like an improvement to what we had, thank you for being proactive about code quality! This diff is rather large - do you think it would have been possible to split it over multiple PRs, maybe one for each of the bullet items in the description? Smaller PRs are significantly easier to read and write good comments for. As is, im happy that this looks like its better than what we had though. |
Hmm yes and no. There are some smaller sections that could have been done as different PRs. i.e. moving the constants to a different file. But that change wouldn't have made much sense on its own. I can definitely go through and make that its own PR now. Thinking through the bulk of the change (moving loadScript from redux to the loader), I think after finishing all the work, I could have gone back and restructured the order of changes to make them into smaller separate PRs, but I'm not confident I could have done that while making the change. This started as a side project during meetings week, and I attempted a few different approaches before landing on the one that worked. Had I known it would work when I started trying it, I could have structured the change into smaller PRs, but it wasn't until late in meetings week, when the bulk of the work was done, that I knew that approach would work. For this section of changes, I can go through and change it to separate PRs, but that would be a long process where I'd need to re-implement the change and make a new set of commits, each with its own re-written test suite. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jmkulwik i had the same high-level feedback as Max when i looked at this on Friday, but i wanted to spend some more time with it to see if i had any more useful feedback. however since i have an active interest in eventually doing a thorough audit of how we use redux, i concluded that to fully understand and appreciate these changes would be better left until i have specifically allocated time for that task. so my takeaway here is that it looks like an improvement, i see no cause for alarm, and since you're the one working with this code right now i trust your judgement that this prefactor will make the rest of your task easier.
tl;dr LGTM!
This is a prefactor for the time_spent task LP-1037
This prefactor is only intended to make sectionProgressRedux more usable and readable as a global state manager for sectionProgress. It only changes sections related to loadScript. This refactor is not intended to do the following:
Specifically, this prefactor aims to fix the following issues in sectionProgressRedux
These were fixed in the following way
This is part of a larger effort to make various improvements to the progress tab to start displaying more data to teachers about their students' progress.
time_spent will allow teachers to see how long a student has been working on a level. This will help teachers identify which students are struggling. Additionally, it will help us identify which levels are difficult and which are easy.
Links
Testing story
Reviewer Checklist: