Closed abbycabs closed 8 years ago
I want to participate in GSoC, and I would like to help Mozilla Science Lab with Contributorship Badges for Science. Please, assign me to this issue, so I can prove myself worthy.
@acabunoc I think you are talking about the getTheBadges function in both of them ?
@acabunoc Am I correct ?
@acabunoc still need a pull request? This issue has been opened for a long time. If has not been resolved, I will work on this.
Hey @jinankjain & @geeeeeeeeek - yes both getTheBadges and getBadges functions in both of them -- all four are similar.
I'd like unit tests first before these changes go in.
closing this one after merging #183 and #186
In both
/routes/papers/index.js
and/routes/users/index.js
, there are a lot of similarities betweengetBadges
andgetTheBadges
. Refactor to reuse code.https://github.com/mozillascience/PaperBadger/blob/master/src/routes/papers/index.js https://github.com/mozillascience/PaperBadger/blob/master/src/routes/users/index.js
More details: https://github.com/mozillascience/PaperBadger/pull/168#discussion_r55863246