Liking cljdoc? Tell your friends :D

cloud-clj.etl.vlacs


attach-offering-lookupsclj

(attach-offering-lookups offering platform-cv-map)

Takes a vlacs offering and a platform course version map and attaches course version ids if the mapping exists.

Takes a vlacs offering and a platform course version map and attaches course
version ids if the mapping exists.
raw docstring

extract-dataclj

(extract-data resp)

form-course-versionsclj

(form-course-versions vlacs-course-versions platform-courses)

Transforms VLACS course versions from their PostgreSQL database and platform courses and create course versions consumable by the cloud api.

Transforms VLACS course versions from their PostgreSQL database and platform
courses and create course versions consumable by the cloud api.
raw docstring

form-coursesclj

(form-courses vlacs-courses)

Takes courses from VLACS' PostgreSQL database and converts them into a format consumable by the cloud api.

Takes courses from VLACS' PostgreSQL database and converts them into a
format consumable by the cloud api.
raw docstring

form-enrollmentsclj

(form-enrollments vlacs-enrollments
                  platform-enrollments
                  platform-users
                  platform-offerings)

Takes VLACS enrollments from their PostgreSQL database, platform enrollments, platform users, and platform offerings and forms enrollments to be consumed by the cloud api.

Takes VLACS enrollments from their PostgreSQL database, platform
enrollments, platform users, and platform offerings and forms enrollments
to be consumed by the cloud api.
raw docstring

form-offering-subscriptionsclj

(form-offering-subscriptions vlacs-offerings instructor-map offering-map)

Create offerings to be consumed by the cloud API using VLACS offerings from their PostgreSQL database, a map of instructors (sis_user_idstr to cloud api id,) and an offering map (classroom_idstr to cloud api id.)

Create offerings to be consumed by the cloud API using VLACS offerings from
their PostgreSQL database, a map of instructors (sis_user_idstr to cloud
api id,) and an offering map (classroom_idstr to cloud api id.)
raw docstring

form-offeringsclj

(form-offerings vlacs-offerings platform-cv-map)

Takes a list of VLACS offerings from their PostgreSQL database as well as a platform course version map and creates offerings consumable by the cloud api.

Takes a list of VLACS offerings from their PostgreSQL database as well as a
platform course version map and creates offerings consumable by the cloud
api.
raw docstring

get-existing-competenciesclj

(get-existing-competencies session asmt-pod-ids)

Queries existing competencies from a list of internal VLACS asmt_pod_ids which is an external id for VLACS' competency data.

Queries existing competencies from a list of internal VLACS asmt_pod_ids
which is an external id for VLACS' competency data.
raw docstring

get-existing-competency-transcriptsclj

(get-existing-competency-transcripts session
                                     user-enrollment-map
                                     competency-map
                                     vlacs-e2cgs)

Queries existing competency transcripts from lrm enrollments, lrm competencies, and vlacs e2ap or e2cg records.

Queries existing competency transcripts from lrm enrollments, lrm
competencies, and vlacs e2ap or e2cg records.
raw docstring

get-existing-course-versionsclj

(get-existing-course-versions session vlacs-course-versions)

Query existing course version using VLACS' internal course versions from their PostgreSQL database.

Query existing course version using VLACS' internal course versions from
their PostgreSQL database.
raw docstring

get-existing-coursesclj

(get-existing-courses session vlacs-courses)

Query existing courses based on a list of VLACS courses from their PostgreSQL database.

Query existing courses based on a list of VLACS courses from their
PostgreSQL database.
raw docstring

get-existing-enrollmentsclj

(get-existing-enrollments session vlacs-enrollments)

Queries enrollments based on data from VLACS' PostgreSQL database, using the enrolment_idstr as an external id.

Queries enrollments based on data from VLACS' PostgreSQL database, using the
enrolment_idstr as an external id.
raw docstring

get-existing-identitiesclj

(get-existing-identities session users)

Queries existing identities for VLACS' sis_user_idstr values based on a provided list of platform users.

Queries existing identities for VLACS' sis_user_idstr values based on a
provided list of platform users.
raw docstring

get-existing-offeringsclj

(get-existing-offerings session vlacs-offerings)

Queries existing offerings based on a list of classrooms/offerings from VLACS' PostgreSQL database using classroom_idstr as an external id.

Queries existing offerings based on a list of classrooms/offerings from
VLACS' PostgreSQL database using classroom_idstr as an external id.
raw docstring

get-existing-user-identitiesclj

(get-existing-user-identities session users)

Query user identity records based on a list of platform users.

Query user identity records based on a list of platform users.
raw docstring

get-existing-user-personasclj

(get-existing-user-personas session platform-users)

Queries existing user personas for a given list of platformn users.

Queries existing user personas for a given list of platformn users.
raw docstring

get-existing-usersclj

(get-existing-users session vlacs-users)

Query all existing VLACS users based on their internal sis_user_idstr.

Query all existing VLACS users based on their internal sis_user_idstr.
raw docstring

get-offering-instructorsclj

(get-offering-instructors session vlacs-offerings)

Queries all instructor users based on the instructors list from a list of classrooms/offerings from the VLACS database.

Queries all instructor users based on the instructors list from a list of
classrooms/offerings from the VLACS database.
raw docstring

get-persona-mapclj

(get-persona-map session)

Queries all of the personas out of the cloud api and turns it into a map of persona name to its unique UUID.

Queries all of the personas out of the cloud api and turns it into a map of
persona name to its unique UUID.
raw docstring

(get-related-course-versions session vlacs-offerings)

Queries lrm courses with related course versions based on a list of classrooms/offerings for the VLACS PostgreSQL database using master_course_idstr as an external id.

Queries lrm courses with related course versions based on a list of
classrooms/offerings for the VLACS PostgreSQL database using
master_course_idstr as an external id.
raw docstring

import-competency-transcripts!clj

(import-competency-transcripts! session competency-grade-json-path)

import-course-versions!clj

(import-course-versions! session course-version-json-path)

import-courses!clj

(import-courses! session course-json-path)

import-enrollments!clj

(import-enrollments! session enrollment-json-path)

import-offering-subscriptions!clj

(import-offering-subscriptions! session offering-json-path)

import-offerings!clj

(import-offerings! session offering-json-path)

import-student-info!clj

(import-student-info! session student-json-path)

import-users!clj

(import-users! session user-json-path)

load-competency-grades!clj

(load-competency-grades! session count-agent vlacs-e2cgs)

Competency transcript loading function to be run by #'run-import!

Competency transcript loading function to be run by #'run-import!
raw docstring

load-course-versions!clj

(load-course-versions! session count-agent vlacs-course-versions)

Course version loading function to be run by #'run-import!

Course version loading function to be run by #'run-import!
raw docstring

load-courses!clj

(load-courses! session count-agent vlacs-courses)

Course loading function to be run by #'run-import!

Course loading function to be run by #'run-import!
raw docstring

load-enrollments!clj

(load-enrollments! session count-agent vlacs-enrollments)

Enrollment loading function to be run by #'run-import.

Enrollment loading function to be run by #'run-import.
raw docstring

load-offering-subscriptions!clj

(load-offering-subscriptions! session count-agent vlacs-offerings)

Offering subscription loading function to be run by #'run-import!

Offering subscription loading function to be run by #'run-import!
raw docstring

load-offerings!clj

(load-offerings! session count-agent vlacs-offerings)

Offering loading function to be run by #'run-import!

Offering loading function to be run by #'run-import!
raw docstring

load-student-data!clj

(load-student-data! session count-agent vlacs-students)

Student loading function to be run by #'run-import!

Student loading function to be run by #'run-import!
raw docstring

load-user-identities!clj

(load-user-identities! session platform-users)

Takes a session and platform-users and provisions user identities based on VLACS' sis_user_idstrs.

Takes a session and platform-users and provisions user identities based on
VLACS' sis_user_idstrs.
raw docstring

load-user-personas!clj

(load-user-personas! session vlacs-users platform-users)

Takes the session, vlacs users, and platform users and migrates vlacs users into the cloud api.

Takes the session, vlacs users, and platform users and migrates vlacs users
into the cloud api.
raw docstring

load-users!clj

(load-users! session count-agent vlacs-users)

User loading function to be provided to #'run-import!. Take the current session, a count (agent,) and VLACS users from their PostgreSQL database and imports them into the cloud api. Returns a deferred value representing the completion of the import.

User loading function to be provided to #'run-import!. Take the current
session, a count (agent,) and VLACS users from their PostgreSQL database
and imports them into the cloud api. Returns a deferred value representing
the completion of the import.
raw docstring

make-mapclj

(make-map data key-fn val-fn)

Takes sequential data and turns it into a map by mapping over it, using the key-fn to extract a key for the map and val-fn to extract the value for the map.

Takes sequential data and turns it into a map by mapping over it, using the
key-fn to extract a key for the map and val-fn to extract the value for the
map.
raw docstring

make-new-identitiesclj

(make-new-identities platform-users identity-map)

Takes platform users and a map of vlacs identities and creates new identies for those that don't already exist.

Takes platform users and a map of vlacs identities and creates new identies
for those that don't already exist.
raw docstring

make-platform-cv-mapclj

(make-platform-cv-map platform-courses)

Takes a list of platform courses with related version records and creates a lookup map for relating offerings to the appropriate course versions.

Takes a list of platform courses with related version records and creates a
lookup map for relating offerings to the appropriate course versions.
raw docstring

make-user-persona-dmlclj

(make-user-persona-dml persona-map user-persona-map vlacs-users platform-users)

Using the persona map, user persona map, vlacs users, and platform users, generate a series of DML operations to insert and update users in the cloud api.

Using the persona map, user persona map, vlacs users, and platform users,
generate a series of DML operations to insert and update users in the
cloud api.
raw docstring

privilege->personaclj

(privilege->persona session)

Creates a VLACS privlege to persona map for loading user information.

Creates a VLACS privlege to persona map for loading user information.
raw docstring

read-json-fileclj

(read-json-file path)

Takes a path, reads the contents of that file, and parsed the JSON.

Takes a path, reads the contents of that file, and parsed the JSON.
raw docstring

run-import!clj

(run-import! session load-fn! json-data-path)

Imports data using a session, loading function, and json data path into the cloud api. Immediately returns a map with a finished? key which is a deferred value that becomes realized when loading is complete or errors out, a load-fn! which is used to tell the importer how to load the data and handles counting processed records, and json-data-path which is a path to the data to be loaded.

Imports data using a session, loading function, and json data path into the
cloud api. Immediately returns a map with a finished? key which is a
deferred value that becomes realized when loading is complete or errors out,
a load-fn! which is used to tell the importer how to load the data and
handles counting processed records, and json-data-path which is a path to
the data to be loaded.
raw docstring

translate-vlacs-usersclj

(translate-vlacs-users vlacs-users)

Takes a VLACS user and transforms it into a platform user.

Takes a VLACS user and transforms it into a platform user.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close