api/star

api/star

Members

(static, constant) exports.starLoadDataMethod

Source:

ValidatedMethod for loading student STAR data.

Methods

(static) exports.processStarCsvData(student, csvData) → {Array}

Source:

Processes STAR CSV data and returns an array of objects containing CourseInstance fields.

Parameters:
Name Type Description
student String

The slug of the student corresponding to this STAR data.

csvData String

A string containing the contents of a CSV file downloaded from STAR.

Returns:

A list of objects with fields: semester, course, note, verified, grade, and creditHrs.

Type
Array

(static) filterParsedData(parsedData) → {Array}

Source:

Returns an array of arrays, each containing data that can be made into CourseInstances.

Parameters:
Name Type Description
parsedData

The parsedData object returned from Papa.parse.

Returns:

A new array with extraneous elements deleted.

Type
Array

(static) findCourseSlug(starDataObject) → {String}

Source:

Returns the course slug, which is either an ICS course or 'other.

Parameters:
Name Type Description
starDataObject

The data object.

Returns:

The slug.

Type
String

(static) findSemesterSlug(semester) → {String}

Source:

Given the semester string from STAR (for example, 'Fall 2015 ext'), parses it, defines the corresponding semester,
and returns the Semester slug.

Parameters:
Name Type Description
semester

The STAR semester string.

Throws:

Meteor.Error If parsing fails.

Returns:

The RadGrad semester slug.

Type
String

(static) makeCourseInstanceObject(starDataObject) → {Object}

Source:

Creates a courseInstance data object from the passed arguments.

Parameters:
Name Type Description
starDataObject

STAR data.

Returns:

An object suitable for passing to CourseInstances.define.

Type
Object

(static) processStudentStarCsvData(student, csvData)

Source:

Processes the student's star data creating CourseInstances.

Parameters:
Name Type Description
student

the student's username.

csvData

the student's STAR data.