Skip to content

Progress redux#9431

Merged
Bjvanminnen merged 9 commits into
stagingfrom
progressRedux
Jul 12, 2016
Merged

Progress redux#9431
Bjvanminnen merged 9 commits into
stagingfrom
progressRedux

Conversation

@Bjvanminnen

@Bjvanminnen Bjvanminnen commented Jul 12, 2016

Copy link
Copy Markdown
Contributor

This PR is meant to make the progress use of redux more similar to how apps uses it. It tries to move the redux behaviors into their own module so that they are more clearly separated. The redux module contains and action types, action creators, and the reducer.

_.mapValues(data.levels,
level => level.submitted ? SUBMITTED_RESULT : level.result)
), data.peerReviewsPerformed
);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not entirely sure I'm convinced yet that data.peerReviewsPerformed belongs in this action vs. in its own. I think part of the problem is that mergeProgress isn't really an action - it's what we want to do when we handle the action. Really the action is something like receiveCourseProgress

@Bjvanminnen

Bjvanminnen commented Jul 12, 2016

Copy link
Copy Markdown
Contributor Author

@mehalshah Everything should be functionally equivalent here, but I moved things around to make it so that the redux stuff is contained in its own module, and more similar to our other redux usage. Let me know if you see any problems or have any questions.

@mehalshah

Copy link
Copy Markdown
Contributor

No issues. I'm fine with this.

@Bjvanminnen Bjvanminnen merged commit 87c34f2 into staging Jul 12, 2016
@Bjvanminnen Bjvanminnen deleted the progressRedux branch July 12, 2016 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants