Created
July 26, 2016 20:23
-
-
Save cbranch101/7dc591a8c6b3de8991e5ecc63b491af6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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