|
|
@ -130,7 +130,15 @@
|
|
|
|
(module:instance)-[:of]->(mschema),
|
|
|
|
(module:instance)-[:of]->(mschema),
|
|
|
|
(level)--(:link)--(module)
|
|
|
|
(level)--(:link)--(module)
|
|
|
|
RETURN module, level
|
|
|
|
RETURN module, level
|
|
|
|
ORDER BY level, module")
|
|
|
|
ORDER BY CASE
|
|
|
|
|
|
|
|
WHEN level.name =~ \".*Foundation.*\" THEN
|
|
|
|
|
|
|
|
1
|
|
|
|
|
|
|
|
WHEN level.name =~ \".*Professional.*\" THEN
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
|
ELSE
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
|
END,
|
|
|
|
|
|
|
|
module.name")
|
|
|
|
(defn modules-and-levels! [role-uuid]
|
|
|
|
(defn modules-and-levels! [role-uuid]
|
|
|
|
(neo4j/exec-query! modules-and-levels
|
|
|
|
(neo4j/exec-query! modules-and-levels
|
|
|
|
{:role_uuid role-uuid
|
|
|
|
{:role_uuid role-uuid
|
|
|
|