Skip to content

Instantly share code, notes, and snippets.

@cbranch101
Created July 26, 2016 20:23
Show Gist options
  • Save cbranch101/7dc591a8c6b3de8991e5ecc63b491af6 to your computer and use it in GitHub Desktop.
Save cbranch101/7dc591a8c6b3de8991e5ecc63b491af6 to your computer and use it in GitHub Desktop.
import Requirement from 'requirement-saga'
import { students as entitySchema } from '../schemas'
import { fetch as apiMethod } from '../resources/students'
import * as selectors from '../selectors/students'
export default new Requirement({
name: 'current_students',
parseResponse: (response) => {
return {
data: response.data,
meta: {
count: response.count,
},
}
},
inputSelector: selectors.currentStudentInput,
entitySchema,
apiMethod,
})
import { createSelector } from 'reselect'
import { maybeSelect, createMaybeFieldSelector } from 'selector-helpers'
import studentRequirement from '../requirements/current_students'
import { createParamSelector, createQueryFieldSelector } from '../selectors/router'
import { averages as sectionAverages, sectionStats } from './section'
import { createFormFieldSelector } from './form'
import R from 'ramda'
const currentStudents = studentRequirement.selectRequiredData
const whiskerPlotsTypes = [
'exams',
'quizzes',
'assignments',
]
const submissionMap = {
on_time: 'green',
late: 'orange',
not_turned_in: 'red',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment