You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be cool to see how harsh or nice each reviewer was. This information is available in the database, and can be presented in the UI, either as part of the index page, or a separate page.
The query would be something like
To get all the reviews, it'd be something like (if going from the index router, where memoizedKeys exists): var reviewKeys = memoizedKeys.filter(k => /*\:*/.match(k))
Then something like this, to grab all the values and filter them down to the set of reviews written by the current user:
This should return an array of JSON objects, each representing a review, which can be processed and sorted. Existing logic for computing average and standard deviation is in the indexRouter.js and can be pulled out and reused.
Alternatively, can just not filter down to the current user, and display everyone's stats on one page.
The text was updated successfully, but these errors were encountered:
It'd be cool to see how harsh or nice each reviewer was. This information is available in the database, and can be presented in the UI, either as part of the index page, or a separate page.
The query would be something like
To get all the reviews, it'd be something like (if going from the
index
router, wherememoizedKeys
exists):var reviewKeys = memoizedKeys.filter(k => /*\:*/.match(k))
Then something like this, to grab all the values and filter them down to the set of reviews written by the current user:
redis.get(reviewKeys, (reviews, err) => { reviews.map(r => JSON.parse(r)).filter(r => f.reviewer == req.user.username) })
This should return an array of JSON objects, each representing a review, which can be processed and sorted. Existing logic for computing average and standard deviation is in the
indexRouter.js
and can be pulled out and reused.Alternatively, can just not filter down to the current user, and display everyone's stats on one page.
The text was updated successfully, but these errors were encountered: