Members
# static constant exports.processBulkStarJsonData
Processes STAR JSON data and returns an array of objects containing CourseInstance fields.
# static constant exports.processStarCsvData
Processes STAR CSV data and returns an array of objects containing CourseInstance fields.
- Deprecated:
- Yes
# static constant exports.processStarJsonData
Processes STAR JSON data and returns an array of objects containing CourseInstance fields.
# static constant exports.starBulkLoadDataMethod
ValidatedMethod for loading bulk STAR data.
# static constant exports.starLoadDataMethod
ValidatedMethod for loading student STAR data.
# static constant exports.starLoadJsonDataMethod
ValidatedMethod for loading student STAR JSON data.
Methods
# static filterParsedData(parsedData) → {Array}
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. |
A new array with extraneous elements deleted.
# static findAcademicTermSlug(academicTerm) → {String}
Given the semester string from STAR (for example, 'Fall 2015 ext'), parses it, defines the corresponding academicTerm, and returns the AcademicTerm slug.
Parameters:
Name | Type | Description |
---|---|---|
academicTerm |
The STAR semester string. |
Meteor.Error If parsing fails.
The RadGrad academicTerm slug.
# static findCourseSlug(starDataObject) → {String}
Returns the course slug, which is either an ICS course or 'other.
Parameters:
Name | Type | Description |
---|---|---|
starDataObject |
The data object. |
The slug.
# static makeCourseInstanceObject(starDataObject) → {Object}
Creates a courseInstance data object from the passed arguments.
Parameters:
Name | Type | Description |
---|---|---|
starDataObject |
STAR data. |
An object suitable for passing to CourseInstances.define.
# static processBulkStarData(advisor, csvData)
Processes the bulk star data creating CourseInstances.
Parameters:
Name | Type | Description |
---|---|---|
advisor |
the advisor's username. |
|
csvData |
the student's STAR data. |
# static processBulkStarDataJson(advisor, jsonData)
Processes the bulk star data creating CourseInstances.
Parameters:
Name | Type | Description |
---|---|---|
advisor |
the advisor's username. |
|
jsonData |
the student's STAR JSON data. |
# static processStudentStarCsvData(advisor, student, csvData)
Processes the student's star data creating CourseInstances.
Parameters:
Name | Type | Description |
---|---|---|
advisor |
the advisor's username. |
|
student |
the student's username. |
|
csvData |
the student's STAR data. |
# static processStudentStarJsonData(advisor, student, jsonData)
Processes the student's star json data creating CourseInstances.
Parameters:
Name | Type | Description |
---|---|---|
advisor |
the advisor's username. |
|
student |
the student's username. |
|
jsonData |
the student's STAR data as JSON object. |