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
package com.teachscape.provisioning.util; | |
import com.teachscape.commons.util.Strings; | |
import java.util.ArrayList; | |
import java.util.Collection; | |
import java.util.Iterator; | |
import java.util.List; | |
/** |
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
(defn as-seconds [milliseconds] (/ milliseconds 1000)) | |
(defn as-minutes [milliseconds] (/ (as-seconds milliseconds) 60)) | |
(defn as-hours [milliseconds] (/ (as-minutes milliseconds) 60)) | |
(defn as-days [milliseconds] (/ (as-hours milliseconds) 24)) | |
(defn to-unit-str | |
[value unit] |
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
$scope.initAddPersonModal = function () { | |
$scope.dialog = { | |
title: 'Select Users for Group', | |
url: '/partials/groups/select_person_form.html', | |
callback: $scope.savePeopleTo | |
}; | |
$scope.showModal(); | |
$("#personForm").livequery(function(){ |
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
(defn sync-all | |
"Synchronize all UMS objects, starting with a check - and possibly filling - of | |
relevant dimension tables, then parallel execution of the involved synchronizations | |
and when these finish, a rebuild of the materialized views. | |
Returns a map of {:stat stat-for-sync}" | |
[] | |
(log/debug "starting sync run for UMS") | |
(dsdb/init-date-and-time-dimensions!) | |
;; run separate sync async | |
(let [sync-fns (seq [(future (sync-organizations)) |
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
package com.teachscape.provisioning.util; | |
import com.teachscape.commons.util.Duration; | |
import com.teachscape.commons.util.Strings; | |
import org.codehaus.jackson.map.ObjectMapper; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; |