(get-instance-id session instance-name)
(get-persona session persona-name)
(load-competencies session csv-files)
This function takes a Cloud API session and a list of CSV files and parses it as PACE competencies, then inserts them into the Cloud API.
This function takes a Cloud API session and a list of CSV files and parses it as PACE competencies, then inserts them into the Cloud API.
(load-csv file)
(load-csv file {:keys [drop-first?] :or {drop-first? false}})
This function loads a single CSV file. The 'file' var is merely passed to clojure.java.io/reader which is used to read the CSV file. The option map may provide an optional 'drop-first?' argument that will (rest) the output. This may be useful if you want to throw away the first row containing row headers.
This function loads a single CSV file. The 'file' var is merely passed to clojure.java.io/reader which is used to read the CSV file. The option map may provide an optional 'drop-first?' argument that will (rest) the output. This may be useful if you want to throw away the first row containing row headers.
(load-many-csv files)
(load-many-csv files opts)
This function takes a sequence of files and passes each one to the load-csv function and concats the parsed CSV files together.
This function takes a sequence of files and passes each one to the load-csv function and concats the parsed CSV files together.
(load-science-standards session csv-files)
Takes a Cloud API session and a list of CSV files and loads them into the Cloud API as PACE science standards (which are different in format from all of the other standards.)
Takes a Cloud API session and a list of CSV files and loads them into the Cloud API as PACE science standards (which are different in format from all of the other standards.)
(load-standards session csv-files)
This function takes a Cloud API session and a sequence of CSV files, parses them as PACE standards and standard_groups and inserts them into the Cloud API.
This function takes a Cloud API session and a sequence of CSV files, parses them as PACE standards and standard_groups and inserts them into the Cloud API.
(load-users! session csv-file persona-name)
This function loads in users from a CSV file with the session, csv file path, and persona name in that order.
The CSV file should have data in the following order on each row after a header row: Fullname, Firstname, Lastname, Grade Level, Content Area, Email, and District.
This function loads in users from a CSV file with the session, csv file path, and persona name in that order. The CSV file should have data in the following order on each row after a header row: Fullname, Firstname, Lastname, Grade Level, Content Area, Email, and District.
(prepare-competencies csv-data)
This function takes parsed PACE competencies from CSV files and converts each row into something insertable to the Cloud API.
This function takes parsed PACE competencies from CSV files and converts each row into something insertable to the Cloud API.
(prepare-competency [statement description])
This function takes a CSV row representing a competency and converts it into something that can be inserted to the Cloud API.
This function takes a CSV row representing a competency and converts it into something that can be inserted to the Cloud API.
(prepare-science-standard [statement description])
Takes a 'special' science standard from the parsed CSV and turns it into data that can be inserted into the Cloud API.
Takes a 'special' science standard from the parsed CSV and turns it into data that can be inserted into the Cloud API.
(prepare-science-standards standard-csv-data)
Takes a sequence of science standards as loaded from CSV file(s) and turns those records into 'standard' records that can be inserted into the Cloud API.
Takes a sequence of science standards as loaded from CSV file(s) and turns those records into 'standard' records that can be inserted into the Cloud API.
(prepare-standard raw-standard)
This function takes a raw standard from CSV and converts it to an object that can be inserted into the Cloud API.
This function takes a raw standard from CSV and converts it to an object that can be inserted into the Cloud API.
(prepare-standard-group [group standards])
Takes a group and its associated standards from a CSV dump that has already been split and turns it into a 'standard_group' that can be inserted to the Cloud API.
Takes a group and its associated standards from a CSV dump that has already been split and turns it into a 'standard_group' that can be inserted to the Cloud API.
(prepare-standard-groups standard-csv-data)
Parses the raw standard CSV data and converts that data into something that can be inserted to the cloud api. It also embeds the related standards into the group (this has to be dissoc'ed prior to insert.)
Parses the raw standard CSV data and converts that data into something that can be inserted to the cloud api. It also embeds the related standards into the group (this has to be dissoc'ed prior to insert.)
(prepare-user instance-id
[fullname firstname lastname grade-level content-area email
district])
This function takes an instance id followed by a row of CSV as provided by PACE and turns that row into a map that can be inserted into the Cloud API.
This function takes an instance id followed by a row of CSV as provided by PACE and turns that row into a map that can be inserted into the Cloud API.
(prepare-user-persona persona platform-user)
This function takes a persona and a platform user and generates a map representing a 'user_persona' record that can be inserted into the database.
This function takes a persona and a platform user and generates a map representing a 'user_persona' record that can be inserted into the database.
(special-load! session csv-file schema content-areas grades)
(split-standard-groups standard-csv-data)
This function takes standard CSV data and splits up standards by their group as defined by a regex that matches rows that are 'standards' and not groups.
This function takes standard CSV data and splits up standards by their group as defined by a regex that matches rows that are 'standards' and not groups.
(standard-code i)
(standard? i)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close