diff --git a/package-lock.json b/package-lock.json index baed27aeaa81..dddb1556dc3e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,9 @@ "name": "secret-project-331", "version": "0.0.0", "hasInstallScript": true, + "dependencies": { + "@vectopus/atlas-icons": "^0.0.7" + }, "devDependencies": { "@stylelint/postcss-css-in-js": "^0.38.0", "@tanstack/eslint-plugin-query": "^4.32.5", @@ -1361,6 +1364,11 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@vectopus/atlas-icons": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@vectopus/atlas-icons/-/atlas-icons-0.0.7.tgz", + "integrity": "sha512-ojiDP0YpVbkEguQHzGnfOMXYaUysx7IWoD1qqOHbj/ebm9IuKlhSuSuXvNxWn3n7QahV66BZov8rwKNO7Yv/JQ==" + }, "node_modules/acorn": { "version": "8.9.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.9.0.tgz", @@ -7975,6 +7983,11 @@ "eslint-visitor-keys": "^3.3.0" } }, + "@vectopus/atlas-icons": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@vectopus/atlas-icons/-/atlas-icons-0.0.7.tgz", + "integrity": "sha512-ojiDP0YpVbkEguQHzGnfOMXYaUysx7IWoD1qqOHbj/ebm9IuKlhSuSuXvNxWn3n7QahV66BZov8rwKNO7Yv/JQ==" + }, "acorn": { "version": "8.9.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.9.0.tgz", diff --git a/package.json b/package.json index dcd63a5c3054..b74c1ad5a7fc 100644 --- a/package.json +++ b/package.json @@ -50,5 +50,8 @@ "ts-auto-guard": "^4.1.3", "ts-node": "^10.9.1", "typescript": "^5.1.6" + }, + "dependencies": { + "@vectopus/atlas-icons": "^0.0.7" } } diff --git a/services/cms/next.config.js b/services/cms/next.config.js index 4c3bc806a857..3a1d73fa941f 100644 --- a/services/cms/next.config.js +++ b/services/cms/next.config.js @@ -46,6 +46,7 @@ const config = { transform: "lodash/{{member}}", }, }, + transpilePackages: ["@vectopus/atlas-icons-react"], } if (process.env.NEXT_PUBLIC_BASE_PATH) { diff --git a/services/cms/package-lock.json b/services/cms/package-lock.json index 9c2dafc186ff..aa1114c03b87 100644 --- a/services/cms/package-lock.json +++ b/services/cms/package-lock.json @@ -27,6 +27,7 @@ "@mui/material": "^5.14.2", "@popperjs/core": "^2.11.8", "@tanstack/react-query": "^4.32.1", + "@vectopus/atlas-icons-react": "github:rage/Atlas-icons-react#d310057c60f4f011306c35ae9caf025c5a09e41b", "@wordpress/base-styles": "^4.29.0", "@wordpress/block-editor": "^12.6.0", "@wordpress/block-library": "^8.15.0", @@ -8085,6 +8086,12 @@ "react": ">= 16.8.0" } }, + "node_modules/@vectopus/atlas-icons-react": { + "version": "0.0.10", + "resolved": "git+ssh://git@github.com/rage/Atlas-icons-react.git#d310057c60f4f011306c35ae9caf025c5a09e41b", + "integrity": "sha512-K7fFA5SQkzaHuhftE6Z1p+pmj6rqA6T/ZcP3qA2Z+XQgrQJrNBa8raLv6nlyyKpzPkdwLMIi0IPCJNgrLhGY5w==", + "license": "ISC" + }, "node_modules/@webassemblyjs/ast": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", @@ -34528,8 +34535,8 @@ "@wordpress/escape-html": "^2.22.0", "change-case": "^4.1.2", "is-plain-object": "^5.0.0", - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^17.0.2", + "react-dom": "^17.0.2" } } } @@ -34566,8 +34573,8 @@ "@wordpress/escape-html": "^2.22.0", "change-case": "^4.1.2", "is-plain-object": "^5.0.0", - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^17.0.2", + "react-dom": "^17.0.2" } } } @@ -34892,6 +34899,11 @@ "@use-gesture/core": "10.2.26" } }, + "@vectopus/atlas-icons-react": { + "version": "git+ssh://git@github.com/rage/Atlas-icons-react.git#d310057c60f4f011306c35ae9caf025c5a09e41b", + "integrity": "sha512-K7fFA5SQkzaHuhftE6Z1p+pmj6rqA6T/ZcP3qA2Z+XQgrQJrNBa8raLv6nlyyKpzPkdwLMIi0IPCJNgrLhGY5w==", + "from": "@vectopus/atlas-icons-react@github:rage/Atlas-icons-react#d310057c60f4f011306c35ae9caf025c5a09e41b" + }, "@webassemblyjs/ast": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", diff --git a/services/cms/package.json b/services/cms/package.json index 62ad21770b4e..a9521fb07af0 100644 --- a/services/cms/package.json +++ b/services/cms/package.json @@ -31,6 +31,7 @@ "@mui/material": "^5.14.2", "@popperjs/core": "^2.11.8", "@tanstack/react-query": "^4.32.1", + "@vectopus/atlas-icons-react": "github:rage/Atlas-icons-react#d310057c60f4f011306c35ae9caf025c5a09e41b", "@wordpress/base-styles": "^4.29.0", "@wordpress/block-editor": "^12.6.0", "@wordpress/block-library": "^8.15.0", diff --git a/services/cms/src/components/SerializeGutenbergModal.tsx b/services/cms/src/components/SerializeGutenbergModal.tsx index 5d6475a59117..6bcc79cb03ad 100644 --- a/services/cms/src/components/SerializeGutenbergModal.tsx +++ b/services/cms/src/components/SerializeGutenbergModal.tsx @@ -1,10 +1,9 @@ -import { css } from "@emotion/css" -import { Dialog, Paper } from "@mui/material" import { BlockInstance, serialize } from "@wordpress/blocks" import React, { useState } from "react" import { useTranslation } from "react-i18next" import Button from "../shared-module/components/Button" +import Dialog from "../shared-module/components/Dialog" import MonacoEditor from "../shared-module/components/monaco/MonacoEditor" export interface SerializeGutenbergModalProps { @@ -23,19 +22,13 @@ const SerializeGutenbergModal: React.FC {/* eslint-disable-next-line i18next/no-literal-string */} - setSerialized(null)}> - - - + setSerialized(null)}> + ) diff --git a/services/cms/src/pages/_app.tsx b/services/cms/src/pages/_app.tsx index 98912fbdfb48..eae40fd91816 100644 --- a/services/cms/src/pages/_app.tsx +++ b/services/cms/src/pages/_app.tsx @@ -1,5 +1,4 @@ import { config } from "@fortawesome/fontawesome-svg-core" -import { ThemeProvider } from "@mui/material" import { QueryClientProvider } from "@tanstack/react-query" import type { AppProps } from "next/app" import Head from "next/head" @@ -10,7 +9,6 @@ import { LoginStateContextProvider } from "../shared-module/contexts/LoginStateC import useLanguage from "../shared-module/hooks/useLanguage" import { queryClient } from "../shared-module/services/appQueryClient" import GlobalStyles from "../shared-module/styles/GlobalStyles" -import muiTheme from "../shared-module/styles/muiTheme" import generateWebVitalsReporter from "../shared-module/utils/generateWebVitalsReporter" import initI18n from "../shared-module/utils/initI18n" import "../styles/Gutenberg/style.scss" @@ -52,16 +50,14 @@ const MyApp: React.FC> = ({ Component, pagePro )} - - - - - {/* @ts-expect-error: hideBreadcrumbs is an addtional property on Component */} - - - - - + + + + {/* @ts-expect-error: hideBreadcrumbs is an addtional property on Component */} + + + + ) diff --git a/services/course-material/next.config.js b/services/course-material/next.config.js index 447b5ecaff9f..8b75512ab643 100644 --- a/services/course-material/next.config.js +++ b/services/course-material/next.config.js @@ -47,6 +47,7 @@ const config = { transform: "lodash/{{member}}", }, }, + transpilePackages: ["@vectopus/atlas-icons-react"], } if (process.env.NEXT_PUBLIC_BASE_PATH) { diff --git a/services/course-material/package-lock.json b/services/course-material/package-lock.json index db774b432ec4..0053124e9247 100644 --- a/services/course-material/package-lock.json +++ b/services/course-material/package-lock.json @@ -25,6 +25,7 @@ "@mui/material": "^5.14.2", "@popperjs/core": "^2.11.8", "@tanstack/react-query": "^4.32.1", + "@vectopus/atlas-icons-react": "github:rage/Atlas-icons-react#d310057c60f4f011306c35ae9caf025c5a09e41b", "axios": "^1.4.0", "citation-js": "^0.6.8", "date-fns": "^2.30.0", @@ -6154,6 +6155,12 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@vectopus/atlas-icons-react": { + "version": "0.0.10", + "resolved": "git+ssh://git@github.com/rage/Atlas-icons-react.git#d310057c60f4f011306c35ae9caf025c5a09e41b", + "integrity": "sha512-K7fFA5SQkzaHuhftE6Z1p+pmj6rqA6T/ZcP3qA2Z+XQgrQJrNBa8raLv6nlyyKpzPkdwLMIi0IPCJNgrLhGY5w==", + "license": "ISC" + }, "node_modules/abab": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", @@ -21743,6 +21750,11 @@ "eslint-visitor-keys": "^3.3.0" } }, + "@vectopus/atlas-icons-react": { + "version": "git+ssh://git@github.com/rage/Atlas-icons-react.git#d310057c60f4f011306c35ae9caf025c5a09e41b", + "integrity": "sha512-K7fFA5SQkzaHuhftE6Z1p+pmj6rqA6T/ZcP3qA2Z+XQgrQJrNBa8raLv6nlyyKpzPkdwLMIi0IPCJNgrLhGY5w==", + "from": "@vectopus/atlas-icons-react@github:rage/Atlas-icons-react#d310057c60f4f011306c35ae9caf025c5a09e41b" + }, "abab": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", diff --git a/services/course-material/package.json b/services/course-material/package.json index 4171ccbdd1d4..1f9db015876d 100644 --- a/services/course-material/package.json +++ b/services/course-material/package.json @@ -26,6 +26,7 @@ "@mui/material": "^5.14.2", "@popperjs/core": "^2.11.8", "@tanstack/react-query": "^4.32.1", + "@vectopus/atlas-icons-react": "github:rage/Atlas-icons-react#d310057c60f4f011306c35ae9caf025c5a09e41b", "axios": "^1.4.0", "citation-js": "^0.6.8", "date-fns": "^2.30.0", diff --git a/services/course-material/src/components/FeedbackHandler.tsx b/services/course-material/src/components/FeedbackHandler.tsx index d1ecf0f92af5..4b8e6981ead7 100644 --- a/services/course-material/src/components/FeedbackHandler.tsx +++ b/services/course-material/src/components/FeedbackHandler.tsx @@ -1,5 +1,4 @@ import { css } from "@emotion/css" -import { Menu, MenuItem } from "@mui/material" import React, { useState } from "react" import { useTranslation } from "react-i18next" @@ -85,35 +84,58 @@ const FeedbackHandler: React.FC> = ({ z-index: 1100; `} > - setFeedbackMenuAnchor(null)} - > - { - setFeedbackMenuAnchor(null) - setFeedbackDialogOpen(true) - setLastSelection("") - }} - > - {t("written-feedback")} - - { - setFeedbackMenuAnchor(null) - setEditProposalDialogOpen(true) - onEnterEditProposalMode() - }} + {feedbackMenuAnchor !== null && ( +
- {t("improve-material")} - -
+ + + + )} + diff --git a/services/course-material/src/components/modals/ExamTimeOverModal.tsx b/services/course-material/src/components/modals/ExamTimeOverModal.tsx index ad7cd21b6546..b6f1f8d7ffb0 100644 --- a/services/course-material/src/components/modals/ExamTimeOverModal.tsx +++ b/services/course-material/src/components/modals/ExamTimeOverModal.tsx @@ -1,11 +1,11 @@ /* eslint-disable i18next/no-literal-string */ import { css } from "@emotion/css" -import { Dialog } from "@mui/material" import React, { useEffect, useState } from "react" import { useTranslation } from "react-i18next" import Button from "../../shared-module/components/Button" +import Dialog from "../../shared-module/components/Dialog" export interface ExamTimeOverModalProps { disabled: boolean diff --git a/services/course-material/src/pages/_app.tsx b/services/course-material/src/pages/_app.tsx index a78ff4f869a1..9bf3eb00525b 100644 --- a/services/course-material/src/pages/_app.tsx +++ b/services/course-material/src/pages/_app.tsx @@ -1,5 +1,4 @@ import { config } from "@fortawesome/fontawesome-svg-core" -import { ThemeProvider } from "@mui/material" import { QueryClientProvider } from "@tanstack/react-query" import type { AppProps } from "next/app" import React, { useEffect } from "react" @@ -9,7 +8,6 @@ import { LoginStateContextProvider } from "../shared-module/contexts/LoginStateC import useLanguage from "../shared-module/hooks/useLanguage" import { queryClient } from "../shared-module/services/appQueryClient" import GlobalStyles from "../shared-module/styles/GlobalStyles" -import muiTheme from "../shared-module/styles/muiTheme" import generateWebVitalsReporter from "../shared-module/utils/generateWebVitalsReporter" import initI18n from "../shared-module/utils/initI18n" @@ -45,14 +43,12 @@ const MyApp: React.FC> = ({ Component, pagePro return ( - - - - - - - - + + + + + + ) } diff --git a/services/example-exercise/next.config.js b/services/example-exercise/next.config.js index da05a8627160..b729075d64a4 100644 --- a/services/example-exercise/next.config.js +++ b/services/example-exercise/next.config.js @@ -44,6 +44,8 @@ const config = { transform: "lodash/{{member}}", }, }, + + transpilePackages: ["@vectopus/atlas-icons-react"], } if (process.env.NEXT_PUBLIC_BASE_PATH) { diff --git a/services/example-exercise/package-lock.json b/services/example-exercise/package-lock.json index b1d60737e479..a7536fca09fb 100644 --- a/services/example-exercise/package-lock.json +++ b/services/example-exercise/package-lock.json @@ -25,6 +25,7 @@ "@mui/material": "^5.14.2", "@popperjs/core": "^2.11.8", "@tanstack/react-query": "^4.32.1", + "@vectopus/atlas-icons-react": "github:rage/Atlas-icons-react#d310057c60f4f011306c35ae9caf025c5a09e41b", "date-fns": "^2.30.0", "express": "^4.18.2", "http-proxy-middleware": "^2.0.6", @@ -5179,6 +5180,12 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@vectopus/atlas-icons-react": { + "version": "0.0.10", + "resolved": "git+ssh://git@github.com/rage/Atlas-icons-react.git#d310057c60f4f011306c35ae9caf025c5a09e41b", + "integrity": "sha512-K7fFA5SQkzaHuhftE6Z1p+pmj6rqA6T/ZcP3qA2Z+XQgrQJrNBa8raLv6nlyyKpzPkdwLMIi0IPCJNgrLhGY5w==", + "license": "ISC" + }, "node_modules/abort-controller": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", @@ -16771,6 +16778,11 @@ "eslint-visitor-keys": "^3.3.0" } }, + "@vectopus/atlas-icons-react": { + "version": "git+ssh://git@github.com/rage/Atlas-icons-react.git#d310057c60f4f011306c35ae9caf025c5a09e41b", + "integrity": "sha512-K7fFA5SQkzaHuhftE6Z1p+pmj6rqA6T/ZcP3qA2Z+XQgrQJrNBa8raLv6nlyyKpzPkdwLMIi0IPCJNgrLhGY5w==", + "from": "@vectopus/atlas-icons-react@github:rage/Atlas-icons-react#d310057c60f4f011306c35ae9caf025c5a09e41b" + }, "abort-controller": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", diff --git a/services/example-exercise/package.json b/services/example-exercise/package.json index 7b8a030043fa..ef2a8a1a6c52 100644 --- a/services/example-exercise/package.json +++ b/services/example-exercise/package.json @@ -25,6 +25,7 @@ "@mui/material": "^5.14.2", "@popperjs/core": "^2.11.8", "@tanstack/react-query": "^4.32.1", + "@vectopus/atlas-icons-react": "github:rage/Atlas-icons-react#d310057c60f4f011306c35ae9caf025c5a09e41b", "date-fns": "^2.30.0", "express": "^4.18.2", "http-proxy-middleware": "^2.0.6", diff --git a/services/example-exercise/src/pages/_app.tsx b/services/example-exercise/src/pages/_app.tsx index 13d75ee98732..21625f4af331 100644 --- a/services/example-exercise/src/pages/_app.tsx +++ b/services/example-exercise/src/pages/_app.tsx @@ -1,5 +1,4 @@ import { config } from "@fortawesome/fontawesome-svg-core" -import { ThemeProvider } from "@mui/material" import { QueryClientProvider } from "@tanstack/react-query" import type { AppProps } from "next/app" import Head from "next/head" @@ -8,7 +7,6 @@ import React, { useEffect } from "react" import useLanguage from "../shared-module/hooks/useLanguage" import { queryClient } from "../shared-module/services/appQueryClient" import GlobalStyles from "../shared-module/styles/GlobalStyles" -import muiTheme from "../shared-module/styles/muiTheme" import generateWebVitalsReporter from "../shared-module/utils/generateWebVitalsReporter" import initI18n from "../shared-module/utils/initI18n" import "@fortawesome/fontawesome-svg-core/styles.css" @@ -47,10 +45,8 @@ const MyApp: React.FC> = ({ Component, pagePro )} - - - - + + ) diff --git a/services/headless-lms/models/sqlx-data.json b/services/headless-lms/models/sqlx-data.json deleted file mode 100644 index a32850593d7f..000000000000 --- a/services/headless-lms/models/sqlx-data.json +++ /dev/null @@ -1,24001 +0,0 @@ -{ - "db": "PostgreSQL", - "0004dbb226e3fa7e490ecbff20b98218c328f9fb6722a4cba0d88d0a50266140": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": [ - "Uuid", - "Varchar", - { - "Custom": { - "kind": { - "Enum": [ - "admin", - "assistant", - "teacher", - "reviewer", - "course_or_exam_creator", - "material_viewer", - "teaching_and_learning_services" - ] - }, - "name": "user_role" - } - }, - "Uuid", - "Uuid" - ] - } - }, - "query": "\nINSERT INTO pending_roles (\n id,\n user_email,\n role,\n course_id,\n course_instance_id\n )\nVALUES ($1, $2, $3, $4, $5)\nRETURNING id;\n " - }, - "001fda3c6f4ce795ee4dab0d4081e96c9e44db1f2ab67248c7f012aa3e96e0e1": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "peer_review_question_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "peer_review_submission_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "text_data", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "number_data", - "ordinal": 7, - "type_info": "Float4" - } - ], - "nullable": [false, false, false, true, false, false, true, true], - "parameters": { - "Left": ["UuidArray", "Uuid", "Uuid"] - } - }, - "query": "\n SELECT qs.id,\n qs.created_at,\n qs.updated_at,\n qs.deleted_at,\n qs.peer_review_question_id,\n qs.peer_review_submission_id,\n qs.text_data,\n qs.number_data\n FROM peer_review_question_submissions qs\n JOIN peer_review_submissions s ON (qs.peer_review_submission_id = s.id)\n JOIN exercise_slide_submissions es ON (s.exercise_slide_submission_id = es.id)\n WHERE peer_review_question_id IN (\n SELECT UNNEST($1::uuid [])\n )\n AND s.exercise_slide_submission_id = $3\n AND es.user_id = $2\n AND qs.deleted_at IS NULL;\n " - }, - "005c8e8610ece4e77a3e40c1f12314768b110445a5fc575323d8b9df355e3e29": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "user_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "receiving_peer_reviews_exercise_slide_submission_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "received_enough_peer_reviews", - "ordinal": 8, - "type_info": "Bool" - }, - { - "name": "peer_review_priority", - "ordinal": 9, - "type_info": "Int4" - }, - { - "name": "removed_from_queue_for_unusual_reason", - "ordinal": 10, - "type_info": "Bool" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM peer_review_queue_entries\nWHERE id = $1\n AND deleted_at IS NULL\n " - }, - "010fcb1f8c7fe8dc1afaefce020b0ac85c2205024e87d1ec6acdaa3441c5dbee": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "private_spec", - "ordinal": 1, - "type_info": "Jsonb" - }, - { - "name": "public_spec", - "ordinal": 2, - "type_info": "Jsonb" - }, - { - "name": "model_solution_spec", - "ordinal": 3, - "type_info": "Jsonb" - } - ], - "nullable": [false, true, true, true], - "parameters": { - "Left": ["UuidArray"] - } - }, - "query": "\nUPDATE exercise_tasks\nSET deleted_at = now()\nWHERE exercise_slide_id = ANY($1)\nAND deleted_at IS NULL\nRETURNING id,\n private_spec,\n public_spec,\n model_solution_spec;\n " - }, - "01bb87c105475e3b694772edf92dee4bad62dabb109aceebb1124e1684b5ab04": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_exercise_state_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "score_given", - "ordinal": 5, - "type_info": "Float4" - }, - { - "name": "teacher_decision: _", - "ordinal": 6, - "type_info": { - "Custom": { - "kind": { - "Enum": ["full-points", "zero-points", "custom-points", "suspected-plagiarism"] - }, - "name": "teacher_decision_type" - } - } - } - ], - "nullable": [false, false, false, false, true, false, false], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nSELECT DISTINCT ON (user_exercise_state_id)\n id,\n user_exercise_state_id,\n created_at,\n updated_at,\n deleted_at,\n score_given,\n teacher_decision AS \"teacher_decision: _\"\nFROM teacher_grading_decisions\nWHERE user_exercise_state_id IN (\n SELECT user_exercise_states.id\n FROM user_exercise_states\n WHERE user_exercise_states.user_id = $1\n AND user_exercise_states.course_instance_id = $2\n AND user_exercise_states.deleted_at IS NULL\n )\n AND deleted_at IS NULL\n ORDER BY user_exercise_state_id, created_at DESC\n " - }, - "02338a196bb57a6142b16723681fba35a8369b3487ed2464480540471c0eb9b5": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "deleted_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "deadline", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "page_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "score_maximum", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "order_number", - "ordinal": 9, - "type_info": "Int4" - }, - { - "name": "chapter_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 12, - "type_info": "Uuid" - }, - { - "name": "max_tries_per_slide", - "ordinal": 13, - "type_info": "Int4" - }, - { - "name": "limit_number_of_tries", - "ordinal": 14, - "type_info": "Bool" - }, - { - "name": "needs_peer_review", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "use_course_default_peer_review_config", - "ordinal": 16, - "type_info": "Bool" - }, - { - "name": "exercise_language_group_id", - "ordinal": 17, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - false, - true, - false, - false, - false, - true, - true, - true, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM exercises\nWHERE course_id = (\n SELECT course_id\n FROM course_instances\n WHERE id = $1\n )\n AND deleted_at IS NULL\nORDER BY order_number ASC\n" - }, - "036ca022aaa61a639202afffa66f21d3ca72ad8413d1ac55fc476050c89a3dcc": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "upstream_id", - "ordinal": 4, - "type_info": "Int4" - }, - { - "name": "email_domain", - "ordinal": 5, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, true, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM users\nWHERE id IN (\n SELECT user_id\n FROM course_instance_enrollments\n WHERE course_instance_id = $1\n AND deleted_at IS NULL\n )\n" - }, - "03da716ee6c7886de0dae98c06e48c6470abf339b031f9a03964c4628ac9e34c": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "user_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "receiving_peer_reviews_exercise_slide_submission_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "received_enough_peer_reviews", - "ordinal": 8, - "type_info": "Bool" - }, - { - "name": "peer_review_priority", - "ordinal": 9, - "type_info": "Int4" - }, - { - "name": "removed_from_queue_for_unusual_reason", - "ordinal": 10, - "type_info": "Bool" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false, false, false], - "parameters": { - "Left": ["Uuid", "Timestamptz"] - } - }, - "query": "\nSELECT *\nFROM peer_review_queue_entries\nWHERE course_instance_id = $1\n AND received_enough_peer_reviews = FALSE\n AND removed_from_queue_for_unusual_reason = FALSE\n AND created_at < $2\n AND deleted_at IS NULL\n " - }, - "03f3ed8579184db44f729471638c65df2636a8e089d08bfd78c9806e7dcd0ddd": { - "describe": { - "columns": [ - { - "name": "uh_course_code", - "ordinal": 0, - "type_info": "Varchar" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "registration_link", - "ordinal": 4, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, false], - "parameters": { - "Left": ["Varchar", "Varchar"] - } - }, - "query": "\nINSERT INTO open_university_registration_links (uh_course_code, registration_link)\nVALUES ($1, $2) ON CONFLICT (uh_course_code) DO\nUPDATE\nSET registration_link = $2,\n deleted_at = NULL\nRETURNING *\n " - }, - "04af846484d55b34c279e32ea4c84693f927c102f56c087f559b161edf0c7413": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "user_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "receiving_peer_reviews_exercise_slide_submission_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "received_enough_peer_reviews", - "ordinal": 8, - "type_info": "Bool" - }, - { - "name": "peer_review_priority", - "ordinal": 9, - "type_info": "Int4" - }, - { - "name": "removed_from_queue_for_unusual_reason", - "ordinal": 10, - "type_info": "Bool" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false, false, false], - "parameters": { - "Left": ["Int4", "Uuid"] - } - }, - "query": "\nUPDATE peer_review_queue_entries\nSET peer_review_priority = $1\nWHERE id = $2\n AND deleted_at IS NULL\nRETURNING *\n " - }, - "0530228ad5d31055c390c9f696ee82c66baf7ca15328503bb4b25afbf8cc92df": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "research_form_question_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "research_consent", - "ordinal": 4, - "type_info": "Bool" - }, - { - "name": "created_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 7, - "type_info": "Timestamptz" - } - ], - "nullable": [false, false, false, false, false, false, false, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT * FROM course_specific_consent_form_answers\nWHERE user_id = $1\nAND deleted_at IS NULL\n" - }, - "0531a63ce132ab34d24576c0fa59db7e59b205fc28c5008f034b12a4e8546e4b": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "DELETE FROM user_details WHERE user_id = $1" - }, - "055e64672243c81e7679ea2829bf22812302e147b35cf40077a62ef746a62f7b": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Varchar", "Varchar"] - } - }, - "query": "\nINSERT INTO page_audio_files (\n page_id,\n path,\n mime_type\n)\nVALUES($1, $2, $3)\n " - }, - "05fe496775c0bd71fedcd7398bcc1d281087874580d0006704e9c1c65fdc98db": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\n UPDATE exercises\n SET deleted_at = now()\n WHERE page_id = $1\n AND deleted_at IS NULL\n " - }, - "06dafe01a08e4b37c02ea33c13cd49fad72a2c436a52983cadf9821f0c742445": { - "describe": { - "columns": [ - { - "name": "user_id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT DISTINCT user_id\nFROM user_exercise_states\nWHERE course_instance_id = $1\n AND deleted_at IS NULL\n " - }, - "072ecb29b589e56f6fc04bb0787efd82beab771ae9d87752f80b0734b16c56e4": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "slug", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "public_url", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "internal_url", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "max_reprocessing_submissions_at_once", - "ordinal": 8, - "type_info": "Int4" - } - ], - "nullable": [false, false, false, true, false, false, false, true, false], - "parameters": { - "Left": ["Varchar", "Varchar", "Varchar", "Varchar", "Int4"] - } - }, - "query": "\nINSERT INTO exercise_services (\n name,\n slug,\n public_url,\n internal_url,\n max_reprocessing_submissions_at_once\n )\nVALUES ($1, $2, $3, $4, $5)\nRETURNING *\n " - }, - "07d58fc96db7000b5057c5e66b12d87ec627e6f56d735a3733518ad23b6a6f0f": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Text", "Uuid"] - } - }, - "query": "INSERT INTO url_redirections(destination_page_id, old_url_path, course_id) VALUES ($1, $2, $3)" - }, - "07fc71a6e751c6809a4f86208702f20b4c345f96f1973d9e5dbc25a3670c8b92": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "chapter_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "url_path", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "title", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "deleted_at", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "content", - "ordinal": 9, - "type_info": "Jsonb" - }, - { - "name": "order_number", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "hidden", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "page_language_group_id", - "ordinal": 13, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - true, - false, - false, - true, - false, - false, - true, - false, - true - ], - "parameters": { - "Left": ["Uuid", "Text"] - } - }, - "query": "\nSELECT pages.id,\n pages.created_at,\n pages.updated_at,\n pages.course_id,\n pages.exam_id,\n pages.chapter_id,\n pages.url_path,\n pages.title,\n pages.deleted_at,\n pages.content,\n pages.order_number,\n pages.copied_from,\n pages.hidden,\n pages.page_language_group_id\nFROM url_redirections\n JOIN pages on pages.id = url_redirections.destination_page_id\nWHERE url_redirections.course_id = $1\n AND old_url_path = $2\n AND url_redirections.deleted_at IS NULL\n AND pages.deleted_at IS NULL;\n " - }, - "08936e20016cc8fb2f6825a9b53d124e7939a892578a057732dd554544aa90f6": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "instructions", - "ordinal": 1, - "type_info": "Jsonb" - } - ], - "nullable": [false, false], - "parameters": { - "Left": ["Jsonb", "Uuid"] - } - }, - "query": "\n UPDATE exams\n SET instructions = $1\n WHERE id = $2\n RETURNING id,\n instructions\n " - }, - "08ce64fd0dded18780f3307fb44b4421871c93d1f3310976430134893091d284": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nINSERT INTO exercise_tasks (\n id,\n exercise_slide_id,\n exercise_type,\n assignment,\n private_spec,\n public_spec,\n model_solution_spec,\n order_number,\n copied_from\n )\nSELECT uuid_generate_v5($1, id::text),\n uuid_generate_v5($1, exercise_slide_id::text),\n exercise_type,\n assignment,\n private_spec,\n public_spec,\n model_solution_spec,\n order_number,\n id\nFROM exercise_tasks\nWHERE exercise_slide_id IN (\n SELECT s.id\n FROM exercise_slides s\n JOIN exercises e ON (e.id = s.exercise_id)\n WHERE e.course_id = $2 OR e.exam_id = $2\n AND e.deleted_at IS NULL\n AND s.deleted_at IS NULL\n )\nAND deleted_at IS NULL;\n " - }, - "0a3ec731af676e23b67bd6eb547415800aa436639f2dfde55ad17b3ed904a27b": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Varchar", "Text", "Uuid"] - } - }, - "query": "\nUPDATE glossary\nSET term = $1,\n definition = $2\nWHERE id = $3\n" - }, - "0ac267b387248d9f526d16e005cd7581da0646944aa7a97c0f861afe899f3c41": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nUPDATE user_exercise_states\nSET deleted_at = now()\nWHERE user_id = $1\n AND course_instance_id = $2\n AND deleted_at IS NULL\n" - }, - "0c395da11ae62743051ec6f45ac48e2a1a450c36bd37fbecf8ccb71a9fefdd7b": { - "describe": { - "columns": [ - { - "name": "user_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "course_language_group_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "current_course_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "current_course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, false, true, false, false], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nSELECT *\nFROM user_course_settings\nWHERE user_id = $1\n AND course_language_group_id = $2\n AND deleted_at IS NULL;\n " - }, - "0cad1ed88151ce17ea1b859b43de22620aaf28c6a0149937d7f865da67c19797": { - "describe": { - "columns": [ - { - "name": "hashing_key", - "ordinal": 0, - "type_info": "Bytea" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Date"] - } - }, - "query": "\nSELECT hashing_key FROM page_visit_datum_daily_visit_hashing_keys\nWHERE valid_for_date = $1\n " - }, - "0cb6f9e6d5c8bc8f0196ec503ba5654ac5af8fc3e61746ddcadc30668bca65eb": { - "describe": { - "columns": [ - { - "name": "user_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 5, - "type_info": "Timestamptz" - } - ], - "nullable": [false, false, false, false, false, true], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nINSERT INTO course_instance_enrollments (user_id, course_id, course_instance_id)\nVALUES ($1, $2, $3)\nON CONFLICT (user_id, course_instance_id)\nDO UPDATE SET deleted_at = NULL\nRETURNING *;\n" - }, - "0cdeea3ba0b6c8ddece5e2c1f839968e312f658ca0b0519bedc7e34c383367c0": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE course_modules\nSET deleted_at = now()\nWHERE id = $1\n" - }, - "0cedc391b28ab18cdd947de4d19c64d8e1a56fee230f772674768b835726bbe7": { - "describe": { - "columns": [ - { - "name": "uh_course_code", - "ordinal": 0, - "type_info": "Varchar" - } - ], - "nullable": [true], - "parameters": { - "Left": [] - } - }, - "query": "\nSELECT DISTINCT uh_course_code\nFROM course_modules\nWHERE uh_course_code IS NOT NULL\n AND enable_registering_completion_to_uh_open_university = true\n AND deleted_at IS NULL\n" - }, - "0cfed7b8d16e3ecf6a4fe2c4f7f7f62fe0b14a0e33062d4742bd3face374ad0c": { - "describe": { - "columns": [ - { - "name": "id!", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "course_id!", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "peer_reviews_to_give!", - "ordinal": 3, - "type_info": "Int4" - }, - { - "name": "peer_reviews_to_receive!", - "ordinal": 4, - "type_info": "Int4" - }, - { - "name": "accepting_strategy!: _", - "ordinal": 5, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "automatically_accept_or_reject_by_average", - "automatically_accept_or_manual_review_by_average", - "manual_review_everything" - ] - }, - "name": "peer_review_accepting_strategy" - } - } - }, - { - "name": "accepting_threshold!", - "ordinal": 6, - "type_info": "Float4" - } - ], - "nullable": [false, false, true, false, false, false, false], - "parameters": { - "Left": ["UuidArray"] - } - }, - "query": "\nSELECT id as \"id!\",\n course_id as \"course_id!\",\n exercise_id,\n peer_reviews_to_give as \"peer_reviews_to_give!\",\n peer_reviews_to_receive as \"peer_reviews_to_receive!\",\n accepting_strategy AS \"accepting_strategy!: _\",\n accepting_threshold \"accepting_threshold!\"\nFROM peer_review_configs\nWHERE id IN (\n SELECT UNNEST($1::uuid [])\n )\n AND deleted_at IS NULL;\n " - }, - "0ed1883e278007de6c43a3db3d4a14e0150bc27f462f085e2a35d861d80b680b": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": [ - "Uuid", - { - "Custom": { - "kind": { - "Enum": [ - "admin", - "assistant", - "teacher", - "reviewer", - "course_or_exam_creator", - "material_viewer", - "teaching_and_learning_services" - ] - }, - "name": "user_role" - } - }, - "Uuid" - ] - } - }, - "query": "\nINSERT INTO roles (user_id, role, course_instance_id)\nVALUES ($1, $2, $3)\nRETURNING id\n" - }, - "0ee18402a12224a28d80876095878fdbbd48e9b4a4d210c1dbf32617f5f05cb1": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Bool", "Uuid"] - } - }, - "query": "\nUPDATE course_module_completions SET prerequisite_modules_completed = $1\nWHERE id = $2 AND deleted_at IS NULL\n " - }, - "0f8ebb278dc89487e24c2b9729baa1c012e2242bfa7b984ec77b1df0a84a6a7a": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Bool", "Uuid"] - } - }, - "query": "\nUPDATE feedback\nSET marked_as_read = $1\nWHERE id = $2\n" - }, - "1043950bac244435cd2df29b5a6cc9f408476afe275b2cd71014a650d186aaf5": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid", "Varchar", "Int4"] - } - }, - "query": "\nINSERT INTO block_feedback(feedback_id, block_id, block_text, order_number)\nVALUES ($1, $2, $3, $4)\n" - }, - "12678b433a9c84513a0c100571b2d82db27fbc569e2b9c79b23e31906be0f559": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "to", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "subject", - "ordinal": 2, - "type_info": "Varchar" - }, - { - "name": "body", - "ordinal": 3, - "type_info": "Jsonb" - } - ], - "nullable": [false, false, true, true], - "parameters": { - "Left": [] - } - }, - "query": "\nSELECT ed.id AS id,\n u.id AS to,\n et.subject AS subject,\n et.content AS body\nFROM email_deliveries ed\n JOIN email_templates et ON et.id = ed.email_template_id\n JOIN users u ON u.id = ed.user_id\nWHERE ed.deleted_at IS NULL\n AND ed.sent = FALSE\n AND ed.error IS NULL\nLIMIT 10000;\n " - }, - "12a3f2d81ee4d4ffd5f6b44a159b1febef51515f477b92735db44d3968493503": { - "describe": { - "columns": [ - { - "name": "attempted_exercises", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "score_given", - "ordinal": 1, - "type_info": "Float4" - } - ], - "nullable": [null, null], - "parameters": { - "Left": ["UuidArray", "Uuid", "Uuid"] - } - }, - "query": "\nSELECT COUNT(ues.exercise_id) AS attempted_exercises,\n COALESCE(SUM(ues.score_given), 0) AS score_given\nFROM user_exercise_states AS ues\nWHERE ues.exercise_id IN (\n SELECT UNNEST($1::uuid [])\n )\n AND ues.deleted_at IS NULL\n AND ues.activity_progress IN ('completed', 'submitted')\n AND ues.user_id = $2\n AND ues.course_instance_id = $3;\n " - }, - "13702b7631e1796cb50808da68d3f73f731700eb77339fdfd5c573f55a7d1212": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "chapter_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "url_path", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "title", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "deleted_at", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "content", - "ordinal": 9, - "type_info": "Jsonb" - }, - { - "name": "order_number", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "hidden", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "page_language_group_id", - "ordinal": 13, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - true, - false, - false, - true, - false, - false, - true, - false, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n course_id,\n exam_id,\n chapter_id,\n url_path,\n title,\n deleted_at,\n content,\n order_number,\n copied_from,\n hidden,\n page_language_group_id\nFROM pages\nWHERE id = $1;\n" - }, - "13b0e10930d6dfb86d0ca5bf493c6741ec5faa14fd199a7c407197568f40f3f3": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "exercise_type", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "assignment", - "ordinal": 4, - "type_info": "Jsonb" - }, - { - "name": "deleted_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "private_spec", - "ordinal": 6, - "type_info": "Jsonb" - }, - { - "name": "public_spec", - "ordinal": 7, - "type_info": "Jsonb" - }, - { - "name": "model_solution_spec", - "ordinal": 8, - "type_info": "Jsonb" - }, - { - "name": "copied_from", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "exercise_slide_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "order_number", - "ordinal": 11, - "type_info": "Int4" - } - ], - "nullable": [false, false, false, false, false, true, true, true, true, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT t.*\nFROM exercise_tasks t\n JOIN exercise_slides s ON (t.exercise_slide_id = s.id)\nWHERE s.exercise_id = $1\n AND s.deleted_at IS NULL\n AND t.deleted_at IS NULL;\n " - }, - "14d555538d7846c3af1d8c101c22e93812804154147c2163c9ce5db5d2a776d9": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "file_path", - "ordinal": 4, - "type_info": "Text" - }, - { - "name": "file_upload_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "display_name", - "ordinal": 6, - "type_info": "Text" - } - ], - "nullable": [false, false, false, true, false, false, false], - "parameters": { - "Left": [] - } - }, - "query": "\nSELECT *\nFROM certificate_fonts\nWHERE deleted_at IS NULL\n" - }, - "158633e7670cf155cedada52d8da51d9a51fac5558c95bc5b4157ab76571e300": { - "describe": { - "columns": [ - { - "name": "isodow", - "ordinal": 0, - "type_info": "Int4" - }, - { - "name": "hour", - "ordinal": 1, - "type_info": "Int4" - }, - { - "name": "count", - "ordinal": 2, - "type_info": "Int4" - } - ], - "nullable": [null, null, null], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT date_part('isodow', created_at)::integer isodow,\n date_part('hour', created_at)::integer \"hour\",\n count(*)::integer\nFROM exercise_slide_submissions\nWHERE course_id = $1\nAND deleted_at IS NULL\nGROUP BY isodow,\n \"hour\"\nORDER BY isodow,\n hour;\n " - }, - "16b7e287146a30307ebf3939836f94aacc5228beaff65827424acf5a8ebd26f7": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "content", - "ordinal": 2, - "type_info": "Jsonb" - }, - { - "name": "created_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 5, - "type_info": "Timestamptz" - } - ], - "nullable": [false, false, false, false, false, true], - "parameters": { - "Left": ["Uuid", "Uuid", "Jsonb"] - } - }, - "query": "\nINSERT INTO course_specific_research_consent_forms (\n id,\n course_id,\n content\n )\nVALUES ($1, $2, $3) ON CONFLICT (course_id, deleted_at)\nDO UPDATE SET content = $3\nRETURNING *\n" - }, - "17a169b73b18097f58673f55f404032b00da8d5fc54b35567a4ef226f022111e": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "exercise_task_submission_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "grading_before_regrading", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "grading_after_regrading", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "regrading_id", - "ordinal": 4, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, true, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n exercise_task_submission_id,\n grading_before_regrading,\n grading_after_regrading,\n regrading_id\nFROM exercise_task_regrading_submissions\nWHERE id = $1\n" - }, - "17bc8217e956a003b026fa4c2a13670229d5426c0d89bb9338dcecb5068621cc": { - "describe": { - "columns": [ - { - "name": "page_proposal_id!", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "block_proposal_id!", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "page_id!", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "block_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "original_text", - "ordinal": 5, - "type_info": "Text" - }, - { - "name": "changed_text", - "ordinal": 6, - "type_info": "Text" - }, - { - "name": "pending!", - "ordinal": 7, - "type_info": "Bool" - }, - { - "name": "block_attribute", - "ordinal": 8, - "type_info": "Text" - }, - { - "name": "block_proposal_status: ProposalStatus", - "ordinal": 9, - "type_info": { - "Custom": { - "kind": { - "Enum": ["pending", "accepted", "rejected"] - }, - "name": "proposal_status" - } - } - }, - { - "name": "created_at!", - "ordinal": 10, - "type_info": "Timestamptz" - }, - { - "name": "page_title!", - "ordinal": 11, - "type_info": "Varchar" - }, - { - "name": "page_url_path!", - "ordinal": 12, - "type_info": "Varchar" - } - ], - "nullable": [ - true, - false, - true, - true, - false, - false, - false, - true, - false, - false, - true, - true, - true - ], - "parameters": { - "Left": ["Uuid", "Bool", "Int8", "Int8"] - } - }, - "query": "\nSELECT proposed_page_edits.id AS \"page_proposal_id!\",\n proposed_block_edits.id AS \"block_proposal_id!\",\n page_id as \"page_id!\",\n user_id,\n block_id,\n original_text,\n changed_text,\n proposed_page_edits.pending as \"pending!\",\n block_attribute,\n proposed_block_edits.status as \"block_proposal_status: ProposalStatus\",\n proposed_page_edits.created_at as \"created_at!\",\n pages.title as \"page_title!\",\n pages.url_path as \"page_url_path!\"\nFROM (\n SELECT id,\n page_id,\n user_id,\n pending,\n created_at\n FROM proposed_page_edits\n WHERE course_id = $1\n AND pending = $2\n AND deleted_at IS NULL\n ORDER BY created_at DESC,\n id\n LIMIT $3 OFFSET $4\n ) proposed_page_edits\n LEFT JOIN proposed_block_edits ON proposed_page_edits.id = proposed_block_edits.proposal_id\n LEFT JOIN pages ON proposed_page_edits.page_id = pages.id\nWHERE proposed_block_edits.deleted_at IS NULL\n" - }, - "18cad5d0cf2a854a36655738b9a05c4fe5376c77174239b17cdf7e21bc739b1f": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "deleted_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "deadline", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "page_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "score_maximum", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "order_number", - "ordinal": 9, - "type_info": "Int4" - }, - { - "name": "chapter_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 12, - "type_info": "Uuid" - }, - { - "name": "max_tries_per_slide", - "ordinal": 13, - "type_info": "Int4" - }, - { - "name": "limit_number_of_tries", - "ordinal": 14, - "type_info": "Bool" - }, - { - "name": "needs_peer_review", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "use_course_default_peer_review_config", - "ordinal": 16, - "type_info": "Bool" - }, - { - "name": "exercise_language_group_id", - "ordinal": 17, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - false, - true, - false, - false, - false, - true, - true, - true, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM exercises\nWHERE id = $1\n" - }, - "1a8440c66648789d8d0291a90d460e1d31c7a1b79643eff71a63191ddabea2f1": { - "describe": { - "columns": [ - { - "name": "exercise_service_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "grade_endpoint_path", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "public_spec_endpoint_path", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "model_solution_spec_endpoint_path", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "user_interface_iframe_path", - "ordinal": 6, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, false, false, false, false], - "parameters": { - "Left": ["Uuid", "Varchar", "Varchar", "Varchar", "Varchar"] - } - }, - "query": "\nINSERT INTO exercise_service_info (\n exercise_service_id,\n user_interface_iframe_path,\n grade_endpoint_path,\n public_spec_endpoint_path,\n model_solution_spec_endpoint_path\n )\nVALUES ($1, $2, $3, $4, $5)\nRETURNING *\n" - }, - "1aafb5cc9aca5edc7cbe9d5018abd31d4bc7c3ff89448f1231a07de3072c3011": { - "describe": { - "columns": [ - { - "name": "status: ProposalStatus", - "ordinal": 0, - "type_info": { - "Custom": { - "kind": { - "Enum": ["pending", "accepted", "rejected"] - }, - "name": "proposal_status" - } - } - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT status AS \"status: ProposalStatus\"\nFROM proposed_block_edits\nWHERE proposal_id = $1\nAND deleted_at IS NULL\n" - }, - "1d83ed68e73caf732fb229242e040adf81019899632218153511689914e90fab": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Varchar", "Uuid"] - } - }, - "query": "\nUPDATE exercise_repositories SET url = $1 WHERE id = $2\n" - }, - "1dbfd617b075c78d00dccbf6a2b4b329bd15b40fa8e479a3b54490d6a5da17e7": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "UPDATE chapters\n SET chapter_number = floor(random() * (20000000 - 2000000 + 1) + 200000)\n WHERE chapters.id = $1\n AND chapters.course_id = $2\n AND deleted_at IS NULL" - }, - "1e26900e33b2a6f1baafb787523f3539beb5c20be6a2a0857d6510e597217134": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "starts_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "ends_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "description", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "teacher_in_charge_name", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "teacher_in_charge_email", - "ordinal": 10, - "type_info": "Varchar" - }, - { - "name": "support_email", - "ordinal": 11, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, false, true, true, true, true, false, false, true], - "parameters": { - "Left": [] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n deleted_at,\n course_id,\n starts_at,\n ends_at,\n name,\n description,\n teacher_in_charge_name,\n teacher_in_charge_email,\n support_email\nFROM course_instances\nWHERE deleted_at IS NULL\n" - }, - "1e63d1154111b7bc3566775c0c15c19319d079fab4a1bb13d521d40811c5eeef": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "chapter_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "url_path", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "title", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "deleted_at", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "content", - "ordinal": 9, - "type_info": "Jsonb" - }, - { - "name": "order_number", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "hidden", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "page_language_group_id", - "ordinal": 13, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - true, - false, - false, - true, - false, - false, - true, - false, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n course_id,\n exam_id,\n chapter_id,\n url_path,\n title,\n deleted_at,\n content,\n order_number,\n copied_from,\n hidden,\n page_language_group_id\nFROM pages p\nWHERE p.chapter_id = $1\n AND p.deleted_at IS NULL;\n " - }, - "1e72401b4ba225d0a53fff1b132fcb10bf77ab6b168c1eca7b613eb7f33a762a": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "citation_key", - "ordinal": 2, - "type_info": "Text" - }, - { - "name": "reference", - "ordinal": 3, - "type_info": "Text" - }, - { - "name": "created_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 6, - "type_info": "Timestamptz" - } - ], - "nullable": [false, false, false, false, false, false, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM material_references\nWHERE id = $1;\n " - }, - "1e761fd73899779b83115d13a060ac4076bddc50b1698eb41d3791c82d22ed5b": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_slide_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 8, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "user_points_update_strategy: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "can-add-points-but-cannot-remove-points", - "can-add-points-and-can-remove-points" - ] - }, - "name": "user_points_update_strategy" - } - } - } - ], - "nullable": [false, false, false, true, false, true, true, true, false, false, false], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n deleted_at,\n exercise_slide_id,\n course_id,\n course_instance_id,\n exam_id,\n exercise_id,\n user_id,\n user_points_update_strategy AS \"user_points_update_strategy: _\"\nFROM exercise_slide_submissions\nWHERE user_id = $1\n AND (course_instance_id = $2 OR exam_id = $3)\n AND deleted_at IS NULL\n " - }, - "1ea91e201957ee005ad92567c1e9f36210b69a279e6435b747bec1d6580d5a5d": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "user_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "peer_review_config_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "exercise_slide_submission_id", - "ordinal": 8, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM peer_review_submissions\nWHERE id = $1\n AND deleted_at IS NULL\n " - }, - "1ebf7b64a269e1abfec20a6e963258d18e4da50b08361e1e5f3f8b2282718fc3": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nINSERT INTO peer_review_configs (id, course_id, exercise_id)\nVALUES ($1, $2, $3)\nRETURNING id\n " - }, - "1f4cfccde889b2c0c2548fe0aa0fc34eb67f6ddc0fbe18caed52a315ed1f6b2e": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_email", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "expires_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "role!: UserRole", - "ordinal": 3, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "admin", - "assistant", - "teacher", - "reviewer", - "course_or_exam_creator", - "material_viewer", - "teaching_and_learning_services" - ] - }, - "name": "user_role" - } - } - } - ], - "nullable": [false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id, user_email, expires_at, role AS \"role!: UserRole\" FROM pending_roles\nWHERE course_id = $1\nAND deleted_at IS NULL\nAND expires_at > NOW()\n " - }, - "2055a6ff8b925cefcd040b388ae102f5a9b98ff4b91bf9c0cb086ab395df72a9": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Varchar", - "Varchar", - "Varchar", - "Varchar", - { - "Custom": { - "kind": { - "Enum": ["start", "middle", "end"] - }, - "name": "certificate_text_anchor" - } - }, - "Varchar", - "Varchar", - "Varchar", - "Varchar", - { - "Custom": { - "kind": { - "Enum": ["start", "middle", "end"] - }, - "name": "certificate_text_anchor" - } - }, - "Varchar", - "Varchar", - "Varchar", - "Varchar", - { - "Custom": { - "kind": { - "Enum": ["start", "middle", "end"] - }, - "name": "certificate_text_anchor" - } - }, - "Varchar", - { - "Custom": { - "kind": { - "Enum": ["horizontal-a4", "vertical-a4"] - }, - "name": "certificate_paper_size" - } - }, - "Varchar", - "Uuid", - "Varchar", - "Uuid", - "Uuid" - ] - } - }, - "query": "\nUPDATE public.course_module_certificate_configurations\nSET course_module_id = $1,\n course_instance_id = $2,\n certificate_owner_name_y_pos = $3,\n certificate_owner_name_x_pos = $4,\n certificate_owner_name_font_size = $5,\n certificate_owner_name_text_color = $6,\n certificate_owner_name_text_anchor = $7,\n certificate_validate_url_y_pos = $8,\n certificate_validate_url_x_pos = $9,\n certificate_validate_url_font_size = $10,\n certificate_validate_url_text_color = $11,\n certificate_validate_url_text_anchor = $12,\n certificate_date_y_pos = $13,\n certificate_date_x_pos = $14,\n certificate_date_font_size = $15,\n certificate_date_text_color = $16,\n certificate_date_text_anchor = $17,\n certificate_locale = $18,\n paper_size = $19,\n background_svg_path = $20,\n background_svg_file_upload_id = $21,\n overlay_svg_path = $22,\n overlay_svg_file_upload_id = $23\nWHERE id = $24\n" - }, - "20fc12ac7e010520d3a0fc268c01c6fd85802b41adc867ed79edb32b74bcbc17": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_slide_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 8, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "user_points_update_strategy: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "can-add-points-but-cannot-remove-points", - "can-add-points-and-can-remove-points" - ] - }, - "name": "user_points_update_strategy" - } - } - } - ], - "nullable": [false, false, false, true, false, true, true, true, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\ncreated_at,\nupdated_at,\ndeleted_at,\nexercise_slide_id,\ncourse_id,\ncourse_instance_id,\nexam_id,\nexercise_id,\nuser_id,\nuser_points_update_strategy AS \"user_points_update_strategy: _\"\nFROM exercise_slide_submissions\nWHERE id = $1\n AND deleted_at IS NULL;\n " - }, - "21304d8b8bba276e607f2e196a90f42c849efb5dd2e961e368eaa4616667f6c1": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_service_slug", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "user_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "variable_key", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "variable_value", - "ordinal": 9, - "type_info": "Jsonb" - } - ], - "nullable": [false, false, false, true, false, false, true, true, false, false], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nSELECT *\nFROM user_course_instance_exercise_service_variables\nWHERE deleted_at IS NULL\n AND user_id = $1\n AND (course_instance_id = $2 OR course_instance_id IS NULL)\n AND (exam_id = $3 OR exam_id IS NULL);\n " - }, - "216767b7252ab27f7acd3703a46aaf3e75eee851677eeb207baff7fdca8ea3d4": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Varchar"] - } - }, - "query": "\nINSERT INTO student_countries (\n user_id,\n course_id,\n course_instance_id,\n country_code\n)\nVALUES($1, $2, $3, $4)\n " - }, - "21f873be8ae7d46b9aafa8b49f108fd8fadacc2334da674241ac2a6e221b2719": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_task_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "data_json", - "ordinal": 5, - "type_info": "Jsonb" - }, - { - "name": "exercise_task_grading_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "metadata", - "ordinal": 7, - "type_info": "Jsonb" - }, - { - "name": "exercise_slide_id", - "ordinal": 8, - "type_info": "Uuid" - }, - { - "name": "exercise_slide_submission_id", - "ordinal": 9, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, true, false, true, true, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM exercise_task_submissions\nWHERE exercise_slide_submission_id = $1\n AND deleted_at IS NULL\n " - }, - "224bd118478c0bf1ee79ba1e0bf2a5e1359651242a5fba089f2971a85ac7a87c": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "user_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "receiving_peer_reviews_exercise_slide_submission_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "received_enough_peer_reviews", - "ordinal": 8, - "type_info": "Bool" - }, - { - "name": "peer_review_priority", - "ordinal": 9, - "type_info": "Int4" - }, - { - "name": "removed_from_queue_for_unusual_reason", - "ordinal": 10, - "type_info": "Bool" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false, false, false], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nSELECT *\nFROM peer_review_queue_entries\nWHERE user_id = $1\n AND exercise_id = $2\n AND course_instance_id = $3\n AND deleted_at IS NULL\n " - }, - "2287acace1485c0a48de22f8d85eb2ea26349ab882eb27b0bba65c2ae4b7a039": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "deleted_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "deadline", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "page_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "score_maximum", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "order_number", - "ordinal": 9, - "type_info": "Int4" - }, - { - "name": "chapter_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 12, - "type_info": "Uuid" - }, - { - "name": "max_tries_per_slide", - "ordinal": 13, - "type_info": "Int4" - }, - { - "name": "limit_number_of_tries", - "ordinal": 14, - "type_info": "Bool" - }, - { - "name": "needs_peer_review", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "use_course_default_peer_review_config", - "ordinal": 16, - "type_info": "Bool" - }, - { - "name": "exercise_language_group_id", - "ordinal": 17, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - false, - true, - false, - false, - false, - true, - true, - true, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Varchar", - "Int4", - "Uuid", - "Uuid", - "Uuid", - "Int4", - "Int4", - "Bool", - "Timestamptz", - "Bool", - "Bool", - "Uuid" - ] - } - }, - "query": "\nINSERT INTO exercises(\n id,\n course_id,\n name,\n order_number,\n page_id,\n chapter_id,\n exam_id,\n score_maximum,\n max_tries_per_slide,\n limit_number_of_tries,\n deadline,\n needs_peer_review,\n use_course_default_peer_review_config,\n exercise_language_group_id\n )\nVALUES (\n $1,\n $2,\n $3,\n $4,\n $5,\n $6,\n $7,\n $8,\n $9,\n $10,\n $11,\n $12,\n $13,\n $14\n ) ON CONFLICT (id) DO\nUPDATE\nSET course_id = $2,\n name = $3,\n order_number = $4,\n page_id = $5,\n chapter_id = $6,\n exam_id = $7,\n score_maximum = $8,\n max_tries_per_slide = $9,\n limit_number_of_tries = $10,\n deadline = $11,\n needs_peer_review = $12,\n use_course_default_peer_review_config = $13,\n exercise_language_group_id = $14,\n deleted_at = NULL\nRETURNING *;\n " - }, - "22f6c2c2cdd99910cb9f2095b97e3228b7e221d42b5677c8715226dbf4e886b3": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": [ - "Uuid", - { - "Custom": { - "kind": { - "Enum": [ - "admin", - "assistant", - "teacher", - "reviewer", - "course_or_exam_creator", - "material_viewer", - "teaching_and_learning_services" - ] - }, - "name": "user_role" - } - }, - "Uuid" - ] - } - }, - "query": "\nINSERT INTO roles (user_id, role, exam_id)\nVALUES ($1, $2, $3)\nRETURNING id\n" - }, - "2311d15c76557b16045c59de4e7554173054e3e22f97ed17d0f26bace954da74": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Varchar", "Float4"] - } - }, - "query": "\nINSERT INTO peer_review_question_submissions (\n id,\n peer_review_question_id,\n peer_review_submission_id,\n text_data,\n number_data\n )\nVALUES ($1, $2, $3, $4, $5)\nRETURNING id\n " - }, - "2327eff57553a33838e6dcdddca821ffd3cee0c0637332d1942eea2bac657834": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "starts_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "ends_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "description", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "teacher_in_charge_name", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "teacher_in_charge_email", - "ordinal": 10, - "type_info": "Varchar" - }, - { - "name": "support_email", - "ordinal": 11, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, false, true, true, true, true, false, false, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n deleted_at,\n course_id,\n starts_at,\n ends_at,\n name,\n description,\n teacher_in_charge_name,\n teacher_in_charge_email,\n support_email\nFROM course_instances\nWHERE id = $1\n AND deleted_at IS NULL;\n " - }, - "234e23ef92fc6fde134666e3f2d863831c0094986572a741e4dc0012e5b529ca": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Uuid", "Int4"] - } - }, - "query": "\nINSERT INTO exercise_slides (id, exercise_id, order_number)\nVALUES ($1, $2, $3)\nRETURNING id\n " - }, - "24eef5b20d48bde2326df4a865d84941ed894b26deca9fc3047b2788e1dc6f67": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Varchar", "Varchar"] - } - }, - "query": "\nINSERT INTO study_registry_registrars (id, name, secret_key)\nVALUES ($1, $2, $3)\nRETURNING id\n " - }, - "2593886473365e89ef8dfa6c1d6be5457fa0ab17b15d57d11dae06f753433e32": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nINSERT INTO exercise_task_regrading_submissions (\n id,\n regrading_id,\n exercise_task_submission_id,\n grading_before_regrading\n )\nVALUES ($1, $2, $3, $4)\nRETURNING id\n " - }, - "267c9d76696bc99642ad6a55744d7effbef43cdc34d12e1ad786385bad6f6a62": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "exercise_type", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "assignment", - "ordinal": 4, - "type_info": "Jsonb" - }, - { - "name": "deleted_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "private_spec", - "ordinal": 6, - "type_info": "Jsonb" - }, - { - "name": "public_spec", - "ordinal": 7, - "type_info": "Jsonb" - }, - { - "name": "model_solution_spec", - "ordinal": 8, - "type_info": "Jsonb" - }, - { - "name": "copied_from", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "exercise_slide_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "order_number", - "ordinal": 11, - "type_info": "Int4" - } - ], - "nullable": [false, false, false, false, false, true, true, true, true, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM exercise_tasks\nWHERE exercise_slide_id = $1\n AND deleted_at IS NULL;\n " - }, - "271b045703fc15efe6cd32fae9e568d75b66d6f12c48f392dd981a8a322877d5": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "peer_review_config_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "order_number", - "ordinal": 5, - "type_info": "Int4" - }, - { - "name": "question", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "question_type: _", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": ["essay", "scale"] - }, - "name": "peer_review_question_type" - } - } - }, - { - "name": "answer_required", - "ordinal": 8, - "type_info": "Bool" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false], - "parameters": { - "Left": ["UuidArray"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n deleted_at,\n peer_review_config_id,\n order_number,\n question,\n question_type AS \"question_type: _\",\n answer_required\nFROM peer_review_questions\nWHERE id IN (\n SELECT UNNEST($1::uuid [])\n )\n AND deleted_at IS NULL;\n " - }, - "2747949af670b45066518efe972a7a5a01580cf78d465361330c818aa6970788": { - "describe": { - "columns": [ - { - "name": "exercise_slide_submission_id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nSELECT exercise_slide_submission_id\nFROM peer_review_submissions\nWHERE user_id = $1\n AND exercise_id = $2\n AND course_instance_id = $3\n AND deleted_at IS NULL\n " - }, - "276395c8de853f2bb8562650ed45d8c24fdff05b7d94b7955836e1bd5cf645f6": { - "describe": { - "columns": [ - { - "name": "attempted_exercises", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "score_given", - "ordinal": 1, - "type_info": "Float4" - } - ], - "nullable": [null, null], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nSELECT COUNT(ues.exercise_id) AS attempted_exercises,\n COALESCE(SUM(ues.score_given), 0) AS score_given\nFROM user_exercise_states AS ues\n LEFT JOIN exercises ON (ues.exercise_id = exercises.id)\n LEFT JOIN chapters ON (exercises.chapter_id = chapters.id)\nWHERE chapters.course_module_id = $1\n AND ues.course_instance_id = $2\n AND ues.activity_progress IN ('completed', 'submitted')\n AND ues.user_id = $3\n AND ues.deleted_at IS NULL\n " - }, - "277f650443860fecadfe5183d6ce94c8544f1284c8253c8a7fda75c637465c89": { - "describe": { - "columns": [ - { - "name": "date", - "ordinal": 0, - "type_info": "Date" - }, - { - "name": "count", - "ordinal": 1, - "type_info": "Int4" - } - ], - "nullable": [null, null], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT DATE(created_at) date, count(DISTINCT user_id)::integer\nFROM exercise_slide_submissions\nWHERE course_id = $1\nAND deleted_at IS NULL\nGROUP BY date\nORDER BY date;\n " - }, - "2a639dc577c649bec12b4beb3216d0cf93153a74a5c47ee26d0d6172330d2a2f": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Varchar", "Text", "Uuid"] - } - }, - "query": "\nINSERT INTO feedback(\n id,\n user_id,\n course_id,\n feedback_given,\n selected_text,\n page_id\n )\nVALUES ($1, $2, $3, $4, $5, $6)\nRETURNING id\n " - }, - "2a8d2052e1e241693b19cfc230ea0e1e087f74820b5344b333b2dbe5b3071b89": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "slug", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "organization_image_path", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "description", - "ordinal": 7, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, false, true, false, true, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nfrom organizations\nwhere id = $1;" - }, - "2ad115e305eec91cb17792de866f3a7acae88bb5a15165df8fa970d259b32d64": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE course_module_certificate_configurations\nSET deleted_at = now()\nWHERE id = $1\n" - }, - "2b91fe4ad3ba719ad78134124b895d7254751dc9867bc122d821b0c443de0432": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Varchar", "Uuid", "Uuid", "Uuid", "Varchar", "Jsonb"] - } - }, - "query": "\nINSERT INTO user_course_instance_exercise_service_variables (\n exercise_service_slug,\n user_id,\n course_instance_id,\n exam_id,\n variable_key,\n variable_value\n )\nVALUES ($1, $2, $3, $4, $5, $6) ON CONFLICT (\n variable_key,\n user_id,\n course_instance_id,\n exercise_service_slug,\n exam_id,\n deleted_at\n ) DO\nUPDATE\nSET variable_value = $6;\n " - }, - "2be6fd20afaeeb95299a5020a8455a6fc6e7ce347a0003cca2d87441f324d422": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": [ - "Varchar", - "Varchar", - "Varchar", - "Varchar", - "Varchar", - "Timestamptz", - "Timestamptz", - "Uuid" - ] - } - }, - "query": "\nUPDATE course_instances\nSET name = $1,\n description = $2,\n teacher_in_charge_name = $3,\n teacher_in_charge_email = $4,\n support_email = $5,\n starts_at = $6,\n ends_at = $7\nWHERE id = $8\n" - }, - "2cc22c82137a885d0d284ea35c6472243117a30bb98a41c8f371414d01e39f81": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": [ - "Uuid", - { - "Custom": { - "kind": { - "Enum": [ - "admin", - "assistant", - "teacher", - "reviewer", - "course_or_exam_creator", - "material_viewer", - "teaching_and_learning_services" - ] - }, - "name": "user_role" - } - }, - "Uuid" - ] - } - }, - "query": "\nUPDATE roles\nSET deleted_at = NOW()\nWHERE user_id = $1\n AND role = $2\n AND organization_id = $3\n AND deleted_at IS NULL\n" - }, - "2dc3330b399fb3d204887cd2ef29a72cc7df6b66b8ff9ba7872044c8da00bba1": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": [ - "Uuid", - { - "Custom": { - "kind": { - "Enum": [ - "admin", - "assistant", - "teacher", - "reviewer", - "course_or_exam_creator", - "material_viewer", - "teaching_and_learning_services" - ] - }, - "name": "user_role" - } - }, - "Uuid" - ] - } - }, - "query": "\nINSERT INTO roles (user_id, role, course_id)\nVALUES ($1, $2, $3)\nRETURNING id\n" - }, - "2e2e94fc2223f01242fa594ea0cb6183aeceab3dd62b9da489a26ffc94ea274d": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "slug", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "organization_image_path", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "description", - "ordinal": 7, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, false, true, false, true, true], - "parameters": { - "Left": ["Text"] - } - }, - "query": "\nSELECT *\nFROM organizations\nWHERE slug = $1;\n " - }, - "2e65ac8e786951bb3dea5ba4ae9a18f11ac2455034adb132c633d496887103ab": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": [ - "Uuid", - "Varchar", - "Int4", - "Varchar", - "Int4", - "Bool", - "Int4", - "Int4", - "Bool", - "Varchar", - "Bool" - ] - } - }, - "query": "\nUPDATE course_modules\nSET name = COALESCE($2, name),\n order_number = $3,\n uh_course_code = $4,\n ects_credits = $5,\n automatic_completion = $6,\n automatic_completion_number_of_exercises_attempted_treshold = $7,\n automatic_completion_number_of_points_treshold = $8,\n automatic_completion_requires_exam = $9,\n completion_registration_link_override = $10,\n enable_registering_completion_to_uh_open_university = $11\nWHERE id = $1\n " - }, - "306820247b9533af5d464aa15a58f9fcde6a59b1666a3709b32bc1823ad2e970": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "deleted_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "deadline", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "page_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "score_maximum", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "order_number", - "ordinal": 9, - "type_info": "Int4" - }, - { - "name": "chapter_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 12, - "type_info": "Uuid" - }, - { - "name": "max_tries_per_slide", - "ordinal": 13, - "type_info": "Int4" - }, - { - "name": "limit_number_of_tries", - "ordinal": 14, - "type_info": "Bool" - }, - { - "name": "needs_peer_review", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "use_course_default_peer_review_config", - "ordinal": 16, - "type_info": "Bool" - }, - { - "name": "exercise_language_group_id", - "ordinal": 17, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - false, - true, - false, - false, - false, - true, - true, - true, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM exercises\nWHERE course_id = $1\n AND deleted_at IS NULL\n" - }, - "3095a7dcf831b27cc6fe6333b8769f49bd20ac07ad521721b3514dc706c98b6a": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nINSERT INTO peer_review_submissions (\n id,\n user_id,\n exercise_id,\n course_instance_id,\n peer_review_config_id,\n exercise_slide_submission_id\n )\nVALUES ($1, $2, $3, $4, $5, $6)\nRETURNING id\n " - }, - "3123a2e534bef1a86ba82fa20c6ea60e15beab091e459493618e21ab0cc573b4": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "count", - "ordinal": 1, - "type_info": "Int4" - }, - { - "name": "order_number", - "ordinal": 2, - "type_info": "Int4" - }, - { - "name": "name", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "page_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "chapter_id", - "ordinal": 5, - "type_info": "Uuid" - } - ], - "nullable": [false, null, false, false, false, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\n SELECT\n exercises.id, (SELECT COUNT(us_state.id)::integer as count\n FROM exercises AS exercises2\n LEFT JOIN user_exercise_states AS us_state ON us_state.exercise_id = exercises2.id\n LEFT JOIN exercise_slide_submissions AS s_submission ON us_state.selected_exercise_slide_id = s_submission.exercise_slide_id\n LEFT JOIN exercise_task_submissions AS t_submission ON s_submission.id = t_submission.exercise_slide_submission_id\n WHERE us_state.selected_exercise_slide_id = t_submission.exercise_slide_id\n AND us_state.user_id = s_submission.user_id\n AND us_state.reviewing_stage = 'waiting_for_manual_grading'\n AND us_state.deleted_at IS NULL\n AND exercises2.course_id = $1\n AND exercises.id = exercises2.id\n GROUP BY exercises2.id),\n exercises.order_number,\n exercises.name,\n exercises.page_id,\n exercises.chapter_id\n FROM exercises\n WHERE exercises.course_id = $1\n AND exercises.deleted_at IS NULL\n GROUP BY exercises.id;" - }, - "31935ca7a5eb235ff25de151ade3680cd9381921f3017f3413c61875548dc92b": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Varchar", "Text", "Varchar", "Uuid", "Varchar", "Uuid", "Bool", "Bool"] - } - }, - "query": "\nINSERT INTO courses(\n id,\n name,\n description,\n slug,\n organization_id,\n language_code,\n course_language_group_id,\n is_draft,\n is_test_mode\n )\nVALUES(\n $1,\n $2,\n $3,\n $4,\n $5,\n $6,\n $7,\n $8,\n $9\n )\nRETURNING id\n " - }, - "31ec5a4b089caf670c2b3ea745433235b142e889e7ee61621fbf8d4be62bc35d": { - "describe": { - "columns": [ - { - "name": "user_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "first_name", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "last_name", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "email", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "search_helper", - "ordinal": 6, - "type_info": "Text" - } - ], - "nullable": [false, false, false, true, true, false, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM user_details\nWHERE user_id = $1 " - }, - "32df56efc957577fed1752ea0e95d6c7287f9eebb79fd11726c89901b3eb5982": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "user_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "peer_review_config_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "exercise_slide_submission_id", - "ordinal": 8, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nSELECT *\nFROM peer_review_submissions\nWHERE user_id = $1\n AND exercise_id = $3\n AND course_instance_id = $2\n AND deleted_at IS NULL\n " - }, - "33f56f379b3a6a63426f90dfec33fe0938212dba397aafd2581193b93c05dcb2": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_module_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "completion_date", - "ordinal": 7, - "type_info": "Timestamptz" - }, - { - "name": "completion_registration_attempt_date", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "completion_language", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "eligible_for_ects", - "ordinal": 10, - "type_info": "Bool" - }, - { - "name": "email", - "ordinal": 11, - "type_info": "Varchar" - }, - { - "name": "grade", - "ordinal": 12, - "type_info": "Int4" - }, - { - "name": "passed", - "ordinal": 13, - "type_info": "Bool" - }, - { - "name": "course_instance_id", - "ordinal": 14, - "type_info": "Uuid" - }, - { - "name": "prerequisite_modules_completed", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "completion_granter_user_id", - "ordinal": 16, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - false, - false, - false, - true, - false, - false, - false, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": ["UuidArray"] - } - }, - "query": "\nSELECT *\nFROM course_module_completions\nWHERE id = ANY($1)\n AND deleted_at IS NULL\n " - }, - "346bba4f6eff144687c089a398484c43bac12f8c06d7280dc95eb6283193bd4c": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "title", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "content", - "ordinal": 2, - "type_info": "Jsonb" - }, - { - "name": "created_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "history_change_reason: HistoryChangeReason", - "ordinal": 4, - "type_info": { - "Custom": { - "kind": { - "Enum": ["page-saved", "history-restored"] - }, - "name": "history_change_reason" - } - } - }, - { - "name": "restored_from_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "author_user_id", - "ordinal": 6, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, false, false, true, false], - "parameters": { - "Left": ["Uuid", "Int8", "Int8"] - } - }, - "query": "\nSELECT id,\n title,\n content,\n created_at,\n history_change_reason as \"history_change_reason: HistoryChangeReason\",\n restored_from_id,\n author_user_id\nFROM page_history\nWHERE page_id = $1\nAND deleted_at IS NULL\nORDER BY created_at DESC, id\nLIMIT $2\nOFFSET $3\n" - }, - "35113aa3e7d61c91d5f9befed9ad66e3cd72c77d21b7639dd18af3f4feb8c12f": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "slug", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "organization_image_path", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "description", - "ordinal": 7, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, false, true, false, true, true], - "parameters": { - "Left": ["Varchar", "Uuid"] - } - }, - "query": "\nUPDATE organizations\nSET organization_image_path = $1\nWHERE id = $2\nRETURNING *;" - }, - "351fb02061a7a4e72a1197c536b8cbde04ddef1697e46dc78e32d8bdebc1af53": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_slide_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 8, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "user_points_update_strategy: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "can-add-points-but-cannot-remove-points", - "can-add-points-and-can-remove-points" - ] - }, - "name": "user_points_update_strategy" - } - } - } - ], - "nullable": [false, false, false, true, false, true, true, true, false, false, false], - "parameters": { - "Left": ["Uuid", "Int8", "Int8"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n deleted_at,\n exercise_slide_id,\n course_id,\n course_instance_id,\n exam_id,\n exercise_id,\n user_id,\n user_points_update_strategy AS \"user_points_update_strategy: _\"\nFROM exercise_slide_submissions\nWHERE exercise_id = $1\n AND deleted_at IS NULL\nLIMIT $2 OFFSET $3\n " - }, - "3537618f4c53872b727fb68c56e5c799d03b8af65f3e8b8294a7ba49ddab47b8": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "order_number", - "ordinal": 6, - "type_info": "Int4" - }, - { - "name": "copied_from", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "uh_course_code", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "automatic_completion", - "ordinal": 9, - "type_info": "Bool" - }, - { - "name": "automatic_completion_number_of_exercises_attempted_treshold", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "automatic_completion_number_of_points_treshold", - "ordinal": 11, - "type_info": "Int4" - }, - { - "name": "ects_credits", - "ordinal": 12, - "type_info": "Int4" - }, - { - "name": "completion_registration_link_override", - "ordinal": 13, - "type_info": "Varchar" - }, - { - "name": "automatic_completion_requires_exam", - "ordinal": 14, - "type_info": "Bool" - }, - { - "name": "enable_registering_completion_to_uh_open_university", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "certification_enabled", - "ordinal": 16, - "type_info": "Bool" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - true, - false, - true, - true, - false, - true, - true, - true, - true, - false, - false, - false - ], - "parameters": { - "Left": ["Bool", "Int4", "Int4", "Bool", "Uuid"] - } - }, - "query": "\nUPDATE course_modules\nSET automatic_completion = $1,\n automatic_completion_number_of_exercises_attempted_treshold = $2,\n automatic_completion_number_of_points_treshold = $3,\n automatic_completion_requires_exam = $4\nWHERE id = $5\n AND deleted_at IS NULL\nRETURNING *\n " - }, - "36adb9a0f4b64e129e67c8229f7dc0e7055bd3e01d73dad8373c2ca006cc8ece": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "page_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "path", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "mime_type", - "ordinal": 5, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM page_audio_files\nWHERE page_id = $1\nAND deleted_at IS NULL;\n" - }, - "375b467ba026680d07ba6fa844de91afd942e86b2715431e41b6788df0d2b3c0": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "upstream_id", - "ordinal": 4, - "type_info": "Int4" - }, - { - "name": "email_domain", - "ordinal": 5, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, true, true], - "parameters": { - "Left": ["Int4"] - } - }, - "query": "SELECT * FROM users WHERE upstream_id = $1" - }, - "37dfaa87dd74a4c1f409cd120e6997847616214878ae8a66b326699fa8633ad3": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "course_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "chapter_number", - "ordinal": 3, - "type_info": "Int4" - }, - { - "name": "created_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "front_page_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "opens_at", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "chapter_image_path", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "copied_from", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "deadline", - "ordinal": 11, - "type_info": "Timestamptz" - }, - { - "name": "course_module_id", - "ordinal": 12, - "type_info": "Uuid" - }, - { - "name": "color", - "ordinal": 13, - "type_info": "Varchar" - } - ], - "nullable": [ - false, - false, - false, - false, - false, - false, - true, - true, - true, - true, - true, - true, - false, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE chapters\nSET deleted_at = now()\nWHERE id = $1\nRETURNING *;\n" - }, - "3907630830c5ea586310282d05fb8e8baa4e3e3d14b48da3502d88844a4407cf": { - "describe": { - "columns": [ - { - "name": "url_path", - "ordinal": 0, - "type_info": "Varchar" - }, - { - "name": "title", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "chapter_number", - "ordinal": 2, - "type_info": "Int4" - }, - { - "name": "page_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "chapter_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "chapter_opens_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "chapter_front_page_id", - "ordinal": 6, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, false, false, true, true], - "parameters": { - "Left": ["Int4", "Uuid", "Int4"] - } - }, - "query": "\nSELECT p.url_path as url_path,\n p.title as title,\n c.chapter_number as chapter_number,\n p.id as page_id,\n c.id as chapter_id,\n c.opens_at as chapter_opens_at,\n c.front_page_id as chapter_front_page_id\nFROM pages p\n LEFT JOIN chapters c ON p.chapter_id = c.id\nWHERE p.order_number = (\n SELECT MAX(pa.order_number)\n FROM pages pa\n WHERE pa.order_number < $1\n AND pa.deleted_at IS NULL\n )\n AND p.course_id = $2\n AND c.chapter_number = $3\n AND p.deleted_at IS NULL;\n " - }, - "398cddba416318e36683334088580e67fd4a2b995045c3ef01ed5a737194e30c": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Text", "Text", "Uuid"] - } - }, - "query": "\nUPDATE material_references\nSET reference = $1, citation_key = $2\nWHERE id = $3;\n" - }, - "3a3fa537038bdbeb11c9454487111b56afaa5230c97546dc0b29554446bfa27d": { - "describe": { - "columns": [ - { - "name": "score_given", - "ordinal": 0, - "type_info": "Float4" - }, - { - "name": "exercise_id", - "ordinal": 1, - "type_info": "Uuid" - } - ], - "nullable": [null, false], - "parameters": { - "Left": ["UuidArray", "Uuid", "Uuid"] - } - }, - "query": "\nSELECT COALESCE(ues.score_given, 0) AS score_given,\n ues.exercise_id AS exercise_id\nFROM user_exercise_states AS ues\nWHERE ues.deleted_at IS NULL\n AND ues.exercise_id IN (\n SELECT UNNEST($1::uuid [])\n )\n AND ues.course_instance_id = $2\n AND ues.user_id = $3;\n " - }, - "3b4f2012084d03f98735056e0a6a9f3796d5cf45c34116b5cbc23435c25e46e5": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Varchar", "Varchar", "Varchar"] - } - }, - "query": "\nINSERT INTO user_details (user_id, email, first_name, last_name)\nVALUES ($1, $2, $3, $4)\n" - }, - "3b666d5cb36b69f10b7f2320980e21445748ced300a2a4492c7ffb4630cf2721": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nDELETE FROM offered_answers_to_peer_review_temporary\nWHERE exercise_id = $1 AND user_id = $2 AND course_instance_id = $3\n" - }, - "3c54ad6a3cc0b88764f80e64680724a116966367fb28fcb0c85eb1a04c4e8624": { - "describe": { - "columns": [ - { - "name": "user_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "started_at", - "ordinal": 2, - "type_info": "Timestamptz" - } - ], - "nullable": [false, false, false], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nSELECT user_id,\n exam_id,\n started_at\nFROM exam_enrollments\nWHERE exam_id = $1\n AND user_id = $2\n AND deleted_at IS NULL\n" - }, - "3dfdeb92c9da05c6b03789eefdb20cb433a82a8e72cd0d0d85eebe6eba92e7b0": { - "describe": { - "columns": [ - { - "name": "path", - "ordinal": 0, - "type_info": "Varchar" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE page_audio_files\nSET deleted_at = now()\nWHERE id = $1\nRETURNING path\n " - }, - "3e2d1ca77df30e87efe65921bcc7cf0068faf0f9edb309dd86e5d51c1e998b9f": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_email", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "expires_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "role!: UserRole", - "ordinal": 3, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "admin", - "assistant", - "teacher", - "reviewer", - "course_or_exam_creator", - "material_viewer", - "teaching_and_learning_services" - ] - }, - "name": "user_role" - } - } - } - ], - "nullable": [false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id, user_email, expires_at, role AS \"role!: UserRole\" FROM pending_roles\nWHERE course_instance_id = $1\nAND deleted_at IS NULL\nAND expires_at > NOW()\n " - }, - "3e428bdd951fadaeac24cab7e991c4928f8c58df8dd45c61fbb8779b5ddcbe85": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nINSERT INTO course_instance_enrollments (user_id, course_id, course_instance_id)\nVALUES ($1, $2, $3)\n" - }, - "3edc48163996f356aae6cb9c026a429270bd51db11f276bf6178b54a4d46f065": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "exercise_task_submission_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "grading_before_regrading", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "grading_after_regrading", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "regrading_id", - "ordinal": 4, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, true, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n exercise_task_submission_id,\n grading_before_regrading,\n grading_after_regrading,\n regrading_id\nFROM exercise_task_regrading_submissions\nWHERE regrading_id = $1\nAND deleted_at IS NULL\n" - }, - "3efd7e76fe0499f93390283a55c2a211bdd97707302b31e146b85a95361a93aa": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "exercise_task_submission_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "exercise_task_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "grading_priority", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "score_given", - "ordinal": 9, - "type_info": "Float4" - }, - { - "name": "grading_progress: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - }, - { - "name": "unscaled_score_maximum", - "ordinal": 11, - "type_info": "Int4" - }, - { - "name": "unscaled_score_given", - "ordinal": 12, - "type_info": "Float4" - }, - { - "name": "grading_started_at", - "ordinal": 13, - "type_info": "Timestamptz" - }, - { - "name": "grading_completed_at", - "ordinal": 14, - "type_info": "Timestamptz" - }, - { - "name": "feedback_json", - "ordinal": 15, - "type_info": "Jsonb" - }, - { - "name": "feedback_text", - "ordinal": 16, - "type_info": "Text" - }, - { - "name": "deleted_at", - "ordinal": 17, - "type_info": "Timestamptz" - } - ], - "nullable": [ - false, - false, - false, - false, - true, - true, - false, - false, - false, - true, - false, - true, - true, - true, - true, - true, - true, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n exercise_task_submission_id,\n course_id,\n exam_id,\n exercise_id,\n exercise_task_id,\n grading_priority,\n score_given,\n grading_progress as \"grading_progress: _\",\n unscaled_score_maximum,\n unscaled_score_given,\n grading_started_at,\n grading_completed_at,\n feedback_json,\n feedback_text,\n deleted_at\nFROM exercise_task_gradings\nWHERE exercise_task_submission_id = $1\n AND deleted_at IS NULL\n " - }, - "415630997608804ca8202e911e5d8b51cbfdfd965a3920aea7cdaa9a793cd7e8": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "order_number", - "ordinal": 6, - "type_info": "Int4" - }, - { - "name": "copied_from", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "uh_course_code", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "automatic_completion", - "ordinal": 9, - "type_info": "Bool" - }, - { - "name": "automatic_completion_number_of_exercises_attempted_treshold", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "automatic_completion_number_of_points_treshold", - "ordinal": 11, - "type_info": "Int4" - }, - { - "name": "ects_credits", - "ordinal": 12, - "type_info": "Int4" - }, - { - "name": "completion_registration_link_override", - "ordinal": 13, - "type_info": "Varchar" - }, - { - "name": "automatic_completion_requires_exam", - "ordinal": 14, - "type_info": "Bool" - }, - { - "name": "enable_registering_completion_to_uh_open_university", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "certification_enabled", - "ordinal": 16, - "type_info": "Bool" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - true, - false, - true, - true, - false, - true, - true, - true, - true, - false, - false, - false - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM course_modules\nWHERE course_id = $1\nAND deleted_at IS NULL\n" - }, - "41cfd9a2006f2bae1e4e3d7b75687511d6311c82b3d0b3367e77c62c8ba17f97": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_instance_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "question_text", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "question_type: CourseBackgroundQuestionType", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": ["checkbox", "text"] - }, - "name": "course_background_question_type" - } - } - } - ], - "nullable": [false, false, false, true, true, false, false, false], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n deleted_at,\n course_instance_id,\n course_id,\n question_text,\n question_type as \"question_type: CourseBackgroundQuestionType\"\nFROM course_background_questions\nWHERE deleted_at IS NULL\n AND (\n (\n course_instance_id IS NULL\n AND course_id = $1\n )\n OR (\n course_instance_id = $2\n AND course_id = $1\n )\n )\n " - }, - "4256d21bbc321fc1c7412ce81714f8241585f941f96f37bd962aa712631a710a": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "chapter_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "url_path", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "title", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "deleted_at", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "content", - "ordinal": 9, - "type_info": "Jsonb" - }, - { - "name": "order_number", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "hidden", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "page_language_group_id", - "ordinal": 13, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - true, - false, - false, - true, - false, - false, - true, - false, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n course_id,\n exam_id,\n chapter_id,\n url_path,\n title,\n deleted_at,\n content,\n order_number,\n copied_from,\n hidden,\n page_language_group_id\nFROM pages p\nWHERE p.chapter_id = $1\n AND p.deleted_at IS NULL\n AND p.hidden IS FALSE\n AND p.id NOT IN (\n SELECT front_page_id\n FROM chapters c\n WHERE c.front_page_id = p.id\n );\n " - }, - "429b0be3031e72b89ad7ec5a1842d525dffab9765e44a324fdcfaa049787fc74": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "exercise_task_submission_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "exercise_task_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "grading_priority", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "score_given", - "ordinal": 9, - "type_info": "Float4" - }, - { - "name": "grading_progress: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - }, - { - "name": "unscaled_score_given", - "ordinal": 11, - "type_info": "Float4" - }, - { - "name": "unscaled_score_maximum", - "ordinal": 12, - "type_info": "Int4" - }, - { - "name": "grading_started_at", - "ordinal": 13, - "type_info": "Timestamptz" - }, - { - "name": "grading_completed_at", - "ordinal": 14, - "type_info": "Timestamptz" - }, - { - "name": "feedback_json", - "ordinal": 15, - "type_info": "Jsonb" - }, - { - "name": "feedback_text", - "ordinal": 16, - "type_info": "Text" - }, - { - "name": "deleted_at", - "ordinal": 17, - "type_info": "Timestamptz" - } - ], - "nullable": [ - false, - false, - false, - false, - true, - true, - false, - false, - false, - true, - false, - true, - true, - true, - true, - true, - true, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n exercise_task_submission_id,\n course_id,\n exam_id,\n exercise_id,\n exercise_task_id,\n grading_priority,\n score_given,\n grading_progress as \"grading_progress: _\",\n unscaled_score_given,\n unscaled_score_maximum,\n grading_started_at,\n grading_completed_at,\n feedback_json,\n feedback_text,\n deleted_at\nFROM exercise_task_gradings\nWHERE deleted_at IS NULL\n AND id IN (\n SELECT etrs.grading_before_regrading\n FROM exercise_task_regrading_submissions etrs\n WHERE etrs.deleted_at IS NULL\n AND etrs.regrading_id = $1\n UNION\n SELECT etrs.grading_after_regrading\n FROM exercise_task_regrading_submissions etrs\n WHERE etrs.grading_after_regrading IS NOT NULL\n AND etrs.deleted_at IS NULL\n AND etrs.regrading_id = $1\n );\n " - }, - "429f1792955eae2761118cee20e5ee2b98e7b5816cbbfb7a72828e1f9127d0ef": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE student_countries\nSET deleted_at = now()\nWHERE id = $1\n " - }, - "42b4cf229a5eee6de30da086f487c971d1a8989926a0f35256bd298b9c79b6d4": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nUPDATE exercise_slide_submissions\nSET deleted_at = now()\nWHERE user_id = $1\n AND course_instance_id = $2\n AND deleted_at IS NULL\n " - }, - "436363568885b8b7f969a542eea4f9796871c9f2a319023c5a0f12e7613a88d1": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE exercise_repositories\nSET deleted_at = now()\nWHERE id = $1\n" - }, - "436a4b6e66a08b6449ee12211e083a2291b3665a8b580e585fb211f451bd3a15": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "course_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "chapter_number", - "ordinal": 3, - "type_info": "Int4" - }, - { - "name": "created_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "front_page_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "opens_at", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "chapter_image_path", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "copied_from", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "deadline", - "ordinal": 11, - "type_info": "Timestamptz" - }, - { - "name": "course_module_id", - "ordinal": 12, - "type_info": "Uuid" - }, - { - "name": "color", - "ordinal": 13, - "type_info": "Varchar" - } - ], - "nullable": [ - false, - false, - false, - false, - false, - false, - true, - true, - true, - true, - true, - true, - false, - true - ], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nUPDATE chapters\nSET front_page_id = $1\nWHERE id = $2\nRETURNING *;\n " - }, - "43857d321dfe6b676094b0de143893c351bacd10d427c8c5e04109c1f1391877": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 7, - "type_info": "Timestamptz" - }, - { - "name": "score_given", - "ordinal": 8, - "type_info": "Float4" - }, - { - "name": "grading_progress: _", - "ordinal": 9, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - }, - { - "name": "activity_progress: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": ["initialized", "started", "in-progress", "submitted", "completed"] - }, - "name": "activity_progress" - } - } - }, - { - "name": "reviewing_stage: _", - "ordinal": 11, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "not_started", - "peer_review", - "self_review", - "waiting_for_peer_reviews", - "waiting_for_manual_grading", - "reviewed_and_locked" - ] - }, - "name": "reviewing_stage" - } - } - }, - { - "name": "selected_exercise_slide_id", - "ordinal": 12, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - false, - false, - true, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n user_id,\n exercise_id,\n course_instance_id,\n exam_id,\n created_at,\n updated_at,\n deleted_at,\n score_given,\n grading_progress AS \"grading_progress: _\",\n activity_progress AS \"activity_progress: _\",\n reviewing_stage AS \"reviewing_stage: _\",\n selected_exercise_slide_id\nFROM user_exercise_states\nWHERE id = $1\n AND deleted_at IS NULL\n " - }, - "438826ebe59c90f50b22e0cbd7c3599c21a2cd6f5727f077c6fa9b4f9b1aedd6": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Varchar", "Uuid", "Int4"] - } - }, - "query": "UPDATE pages SET url_path = $2, chapter_id = $3, order_number = $4 WHERE pages.id = $1" - }, - "43bd86b52b6834f11c68bbe73feef8a34f444934be89ac77bdf9bfe6d3f0f910": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "course_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "chapter_number", - "ordinal": 3, - "type_info": "Int4" - }, - { - "name": "created_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "front_page_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "opens_at", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "chapter_image_path", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "copied_from", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "deadline", - "ordinal": 11, - "type_info": "Timestamptz" - }, - { - "name": "course_module_id", - "ordinal": 12, - "type_info": "Uuid" - }, - { - "name": "color", - "ordinal": 13, - "type_info": "Varchar" - } - ], - "nullable": [ - false, - false, - false, - false, - false, - false, - true, - true, - true, - true, - true, - true, - false, - true - ], - "parameters": { - "Left": ["Varchar", "Uuid"] - } - }, - "query": "\nUPDATE chapters\nSET chapter_image_path = $1\nWHERE id = $2\nRETURNING *;" - }, - "43c40724758cfae808036b4d917c0278a30c17faadec53ec43d97c9f01f1551f": { - "describe": { - "columns": [ - { - "name": "url_path", - "ordinal": 0, - "type_info": "Varchar" - }, - { - "name": "title", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "page_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "chapter_number", - "ordinal": 3, - "type_info": "Int4" - }, - { - "name": "chapter_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "chapter_opens_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "chapter_front_page_id", - "ordinal": 6, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, false, false, true, true], - "parameters": { - "Left": ["Int4", "Uuid", "Int4"] - } - }, - "query": "\nSELECT p.url_path as url_path,\n p.title as title,\n p.id as page_id,\n c.chapter_number as chapter_number,\n c.id as chapter_id,\n c.opens_at as chapter_opens_at,\n c.front_page_id as chapter_front_page_id\nFROM pages p\n LEFT JOIN chapters c ON p.chapter_id = c.id\nWHERE p.order_number = (\n SELECT MIN(pa.order_number)\n FROM pages pa\n WHERE pa.order_number > $1\n AND pa.deleted_at IS NULL\n )\n AND p.course_id = $2\n AND c.chapter_number = $3\n AND p.deleted_at IS NULL;\n " - }, - "4422d198c0e9c4502344c5b1145df37a6cf0b8a85e43390dfc3c5a1ed57549d2": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "course_name", - "ordinal": 2, - "type_info": "Varchar" - }, - { - "name": "name", - "ordinal": 3, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT exams.id,\n courses.id as course_id,\n courses.name as course_name,\n exams.name\nFROM exams\n JOIN course_exams ON course_exams.exam_id = exams.id\n JOIN courses ON courses.id = course_exams.course_id\nWHERE exams.organization_id = $1\n AND exams.deleted_at IS NULL\n AND courses.deleted_at IS NULL\n" - }, - "44ee880850f5f6851c096fb9682818cf512bc7826a7a3b9cc5b0c0079efc7070": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": [ - { - "Custom": { - "kind": { - "Enum": [ - "can-add-points-but-cannot-remove-points", - "can-add-points-and-can-remove-points" - ] - }, - "name": "user_points_update_strategy" - } - }, - "Uuid" - ] - } - }, - "query": "\nINSERT INTO regradings (user_points_update_strategy, user_id)\nVALUES ($1, $2)\nRETURNING id\n " - }, - "453ecb8425976f854f3b7d4f16d49480b8b91593d1616b615ce3eb7506986f67": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "peer_reviews_to_give", - "ordinal": 3, - "type_info": "Int4" - }, - { - "name": "peer_reviews_to_receive", - "ordinal": 4, - "type_info": "Int4" - }, - { - "name": "accepting_threshold", - "ordinal": 5, - "type_info": "Float4" - }, - { - "name": "accepting_strategy: _", - "ordinal": 6, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "automatically_accept_or_reject_by_average", - "automatically_accept_or_manual_review_by_average", - "manual_review_everything" - ] - }, - "name": "peer_review_accepting_strategy" - } - } - } - ], - "nullable": [false, false, true, false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n course_id,\n exercise_id,\n peer_reviews_to_give,\n peer_reviews_to_receive,\n accepting_threshold,\n accepting_strategy AS \"accepting_strategy: _\"\nFROM peer_review_configs\nWHERE course_id = $1\n AND exercise_id IS NULL\n AND deleted_at IS NULL;\n" - }, - "46baab67e600d6ee84312a6c53a493d7520957e27a76e9bf8188b0ae0844b1a0": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nUPDATE peer_review_question_submissions\nSET deleted_at = now()\nWHERE peer_review_submission_id IN (\n SELECT id\n FROM peer_review_submissions\n WHERE user_id = $1\n AND course_instance_id = $2\n )\n AND deleted_at IS NULL\n" - }, - "4713ef1238437d6952f073fce7db826fac893b938edacba02855eeef03ae1133": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "citation_key", - "ordinal": 2, - "type_info": "Text" - }, - { - "name": "reference", - "ordinal": 3, - "type_info": "Text" - }, - { - "name": "created_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 6, - "type_info": "Timestamptz" - } - ], - "nullable": [false, false, false, false, false, false, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM material_references\nWHERE course_id = $1\n AND deleted_at IS NULL;\n " - }, - "47f6263f110fb34bedaca77322fdf2da160006f60fa8b284be5e4a49bffba714": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nINSERT INTO chapters (\n id,\n name,\n course_id,\n chapter_number,\n front_page_id,\n opens_at,\n chapter_image_path,\n copied_from,\n course_module_id\n )\nSELECT uuid_generate_v5($1, id::text),\n name,\n $1,\n chapter_number,\n front_page_id,\n opens_at,\n chapter_image_path,\n id,\n uuid_generate_v5($1, course_module_id::text)\nFROM chapters\nWHERE (course_id = $2)\nAND deleted_at IS NULL;\n " - }, - "482076e826791b2efbb0cb818032c36a7107a85693869fc65b01b3975d9c01c2": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Uuid", "Jsonb"] - } - }, - "query": "\nINSERT INTO exercise_task_submissions (\n id,\n exercise_slide_submission_id,\n exercise_slide_id,\n exercise_task_id,\n data_json\n )\n VALUES ($1, $2, $3, $4, $5)\n RETURNING id\n " - }, - "48a085b8c43aedb462226aea0dfe4c736cfac20b6bb69edbddd412c3777e6df2": { - "describe": { - "columns": [ - { - "name": "user_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "points_for_each_chapter", - "ordinal": 1, - "type_info": "Jsonb" - } - ], - "nullable": [false, null], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT user_id,\n to_jsonb(array_agg(to_jsonb(uue) - 'email' - 'user_id')) AS points_for_each_chapter\nFROM (\n SELECT ud.email,\n u.id AS user_id,\n c.chapter_number,\n COALESCE(SUM(ues.score_given), 0) AS points_for_chapter\n FROM user_exercise_states ues\n JOIN users u ON u.id = ues.user_id\n JOIN user_details ud ON ud.user_id = u.id\n JOIN exercises e ON e.id = ues.exercise_id\n JOIN chapters c on e.chapter_id = c.id\n WHERE ues.course_instance_id = $1\n AND ues.deleted_at IS NULL\n AND c.deleted_at IS NULL\n AND u.deleted_at IS NULL\n AND e.deleted_at IS NULL\n GROUP BY ud.email,\n u.id,\n c.chapter_number\n ) as uue\nGROUP BY user_id\n\n" - }, - "49dafb59d714ea09cb8693d014aadcb7c60ce112d3a883dc739b551e7b7ea96e": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "research_consent", - "ordinal": 2, - "type_info": "Bool" - }, - { - "name": "created_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 5, - "type_info": "Timestamptz" - } - ], - "nullable": [false, false, false, false, false, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM user_research_consents\nWHERE user_id = $1\nAND deleted_at IS NULL\n " - }, - "49fb36de200703e85a0cc8687d51bbfaa8d3c0303b9c09d0e5011b20926f9f24": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "regrading_started_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "regrading_completed_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "created_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "total_grading_progress: _", - "ordinal": 5, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - }, - { - "name": "user_points_update_strategy: _", - "ordinal": 6, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "can-add-points-but-cannot-remove-points", - "can-add-points-and-can-remove-points" - ] - }, - "name": "user_points_update_strategy" - } - } - }, - { - "name": "user_id", - "ordinal": 7, - "type_info": "Uuid" - } - ], - "nullable": [false, true, true, false, false, false, false, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n regrading_started_at,\n regrading_completed_at,\n created_at,\n updated_at,\n total_grading_progress AS \"total_grading_progress: _\",\n user_points_update_strategy AS \"user_points_update_strategy: _\",\n user_id\nFROM regradings\nWHERE id = $1\n" - }, - "4a0aa4910863c84ae04001fbcc8d207f549f67ffd0343413d11777e83fad89a3": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nUPDATE course_exams\nSET deleted_at = now()\nWHERE course_id = $1\n AND exam_id = $2\n " - }, - "4a0bf7c5a7ca85edec6c14a7c37a494f45735df286c1bba1a83af363e4c2ef34": { - "describe": { - "columns": [ - { - "name": "peer_review_question_submission_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "text_data", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "number_data", - "ordinal": 2, - "type_info": "Float4" - }, - { - "name": "peer_review_config_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "peer_review_question_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "order_number", - "ordinal": 5, - "type_info": "Int4" - }, - { - "name": "question", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "question_type: PeerReviewQuestionType", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": ["essay", "scale"] - }, - "name": "peer_review_question_type" - } - } - }, - { - "name": "answer_required", - "ordinal": 8, - "type_info": "Bool" - }, - { - "name": "peer_review_submission_id", - "ordinal": 9, - "type_info": "Uuid" - } - ], - "nullable": [false, true, true, false, false, false, false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT answers.id AS peer_review_question_submission_id,\n answers.text_data,\n answers.number_data,\n questions.peer_review_config_id,\n questions.id AS peer_review_question_id,\n questions.order_number,\n questions.question,\n questions.question_type AS \"question_type: PeerReviewQuestionType\",\n questions.answer_required,\n submissions.id AS peer_review_submission_id\nFROM peer_review_question_submissions answers\n JOIN peer_review_questions questions ON (\n answers.peer_review_question_id = questions.id\n )\n JOIN peer_review_submissions submissions ON (\n answers.peer_review_submission_id = submissions.id\n )\nWHERE submissions.exercise_slide_submission_id = $1\n AND questions.deleted_at IS NULL\n AND answers.deleted_at IS NULL\n AND submissions.deleted_at IS NULL\n " - }, - "4d463289b30366e199adbf4801cc8a685da54990989a74b6c07e592234f41e1b": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "UPDATE exercise_tasks SET deleted_at = now() WHERE deleted_at IS NULL AND exercise_slide_id IN (SELECT id FROM exercise_slides WHERE exercise_slides.deleted_at IS NULL AND exercise_id IN (SELECT id FROM exercises WHERE chapter_id = $1 AND exercises.deleted_at IS NULL));" - }, - "4dd782cd803242c13bb09a513ce1b947433a940989d46a40391a4564e305dfa8": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "slug", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "organization_image_path", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "description", - "ordinal": 7, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, false, true, false, true, true], - "parameters": { - "Left": [] - } - }, - "query": "SELECT * FROM organizations WHERE deleted_at IS NULL ORDER BY name;" - }, - "4dfad46c56a2f729b23734eeb99f9cc249b333ee5a0ac7420c3a52cbe941540e": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nINSERT INTO roles (\n id,\n user_id,\n organization_id,\n course_id,\n role\n )\nSELECT uuid_generate_v5($2, id::text),\n user_id,\n organization_id,\n $2,\n role\nFROM roles\nWHERE (course_id = $1)\nAND NOT (user_id = $3)\nAND deleted_at IS NULL;\n " - }, - "4dffcac2b11a34fa08132bc4b28e097e1c150fba42f6c7b10bbb1239767997cd": { - "describe": { - "columns": [ - { - "name": "exercise_task_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_exercise_slide_state_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "score_given", - "ordinal": 5, - "type_info": "Float4" - }, - { - "name": "grading_progress: _", - "ordinal": 6, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - } - ], - "nullable": [false, false, false, false, true, true, false], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nSELECT exercise_task_id,\n user_exercise_slide_state_id,\n created_at,\n updated_at,\n deleted_at,\n score_given,\n grading_progress as \"grading_progress: _\"\nFROM user_exercise_task_states\nWHERE exercise_task_id = $1\n AND user_exercise_slide_state_id = $2\n AND deleted_at IS NULL\n " - }, - "4e1330923d557ca14ae78ff9ac8548ae9931d672bbeafa360ebfc95cc0f605f2": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_background_question_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "answer_value", - "ordinal": 6, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, false, false, true], - "parameters": { - "Left": ["Uuid", "UuidArray"] - } - }, - "query": "\nSELECT *\nFROM course_background_question_answers\nWHERE deleted_at IS NULL\nAND user_id = $1\nAND course_background_question_id IN (\n SELECT UNNEST($2::uuid [])\n )\n " - }, - "4eca059409dad574dc860d0e4fe601568b9816153c09beec5823970bd4a21dc9": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "user_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "receiving_peer_reviews_exercise_slide_submission_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "received_enough_peer_reviews", - "ordinal": 8, - "type_info": "Bool" - }, - { - "name": "peer_review_priority", - "ordinal": 9, - "type_info": "Int4" - }, - { - "name": "removed_from_queue_for_unusual_reason", - "ordinal": 10, - "type_info": "Bool" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM peer_review_queue_entries\nWHERE exercise_id = $1\n AND received_enough_peer_reviews = 'false'\n AND deleted_at IS NULL\n " - }, - "4f7e2b9650e10a87e8df9091b99fb43d3eb68974730a3c08dc6a63ae3ec4f92e": { - "describe": { - "columns": [ - { - "name": "user_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "course_language_group_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "current_course_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "current_course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, false, true, false, false], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nSELECT ucs.*\nFROM courses c\n JOIN user_course_settings ucs ON (\n ucs.course_language_group_id = c.course_language_group_id\n )\nWHERE c.id = $1\n AND ucs.user_id = $2\n AND c.deleted_at IS NULL\n AND ucs.deleted_at IS NULL;\n " - }, - "4fbd5a17fe45ed5277fb8d64c297636a26781f4c3688bd92f6d04a9922562e81": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "browser", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "browser_version", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "operating_system", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "device_type", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "course_id", - "ordinal": 8, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "num_visitors", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "visit_date", - "ordinal": 11, - "type_info": "Date" - } - ], - "nullable": [false, false, false, true, true, true, true, true, true, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM page_visit_datum_summary_by_courses_device_types\nWHERE course_id = $1\n AND deleted_at IS NULL\n" - }, - "506df024df23a7e649d8d69b1a1a37bf7b13743f2fea316a0012e2f779508679": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "order_number", - "ordinal": 6, - "type_info": "Int4" - }, - { - "name": "copied_from", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "uh_course_code", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "automatic_completion", - "ordinal": 9, - "type_info": "Bool" - }, - { - "name": "automatic_completion_number_of_exercises_attempted_treshold", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "automatic_completion_number_of_points_treshold", - "ordinal": 11, - "type_info": "Int4" - }, - { - "name": "ects_credits", - "ordinal": 12, - "type_info": "Int4" - }, - { - "name": "completion_registration_link_override", - "ordinal": 13, - "type_info": "Varchar" - }, - { - "name": "automatic_completion_requires_exam", - "ordinal": 14, - "type_info": "Bool" - }, - { - "name": "enable_registering_completion_to_uh_open_university", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "certification_enabled", - "ordinal": 16, - "type_info": "Bool" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - true, - false, - true, - true, - false, - true, - true, - true, - true, - false, - false, - false - ], - "parameters": { - "Left": ["Uuid", "Uuid", "Varchar", "Int4", "Bool", "Int4", "Int4", "Bool", "Int4", "Bool"] - } - }, - "query": "\nINSERT INTO course_modules (\n id,\n course_id,\n name,\n order_number,\n automatic_completion,\n automatic_completion_number_of_exercises_attempted_treshold,\n automatic_completion_number_of_points_treshold,\n automatic_completion_requires_exam,\n ects_credits,\n enable_registering_completion_to_uh_open_university\n )\nVALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)\nRETURNING *\n " - }, - "512ac25a3bacaac7233a1134eed215abc920b98f2d41c096ede6cbf015009f7e": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_slide_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 8, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "user_points_update_strategy: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "can-add-points-but-cannot-remove-points", - "can-add-points-and-can-remove-points" - ] - }, - "name": "user_points_update_strategy" - } - } - } - ], - "nullable": [false, false, false, true, false, true, true, true, false, false, false], - "parameters": { - "Left": ["Uuid", "UuidArray", "Uuid"] - } - }, - "query": "\nSELECT DISTINCT ON (user_id)\n id,\n created_at,\n updated_at,\n deleted_at,\n exercise_slide_id,\n course_id,\n course_instance_id,\n exam_id,\n exercise_id,\n user_id,\n user_points_update_strategy AS \"user_points_update_strategy: _\"\nFROM exercise_slide_submissions\nWHERE exercise_id = $1\n AND id <> ALL($2)\n AND user_id <> $3\n AND deleted_at IS NULL\nORDER BY user_id, created_at DESC\n " - }, - "527d742c378dfc52f5d1c999138ee8c12547442f36d8ea9b3df18405f7e526d5": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "order_number", - "ordinal": 6, - "type_info": "Int4" - }, - { - "name": "copied_from", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "uh_course_code", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "automatic_completion", - "ordinal": 9, - "type_info": "Bool" - }, - { - "name": "automatic_completion_number_of_exercises_attempted_treshold", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "automatic_completion_number_of_points_treshold", - "ordinal": 11, - "type_info": "Int4" - }, - { - "name": "ects_credits", - "ordinal": 12, - "type_info": "Int4" - }, - { - "name": "completion_registration_link_override", - "ordinal": 13, - "type_info": "Varchar" - }, - { - "name": "automatic_completion_requires_exam", - "ordinal": 14, - "type_info": "Bool" - }, - { - "name": "enable_registering_completion_to_uh_open_university", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "certification_enabled", - "ordinal": 16, - "type_info": "Bool" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - true, - false, - true, - true, - false, - true, - true, - true, - true, - false, - false, - false - ], - "parameters": { - "Left": ["Varchar", "Uuid"] - } - }, - "query": "\nUPDATE course_modules\nSET uh_course_code = $1\nWHERE id = $2\n AND deleted_at IS NULL\nRETURNING *\n " - }, - "53458681ad5f9d08690fb88c154837f4713b0d9823ae65ed56a7dc336597ba01": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "user_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_module_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "name_on_certificate", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "verification_id", - "ordinal": 8, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false], - "parameters": { - "Left": ["Text"] - } - }, - "query": "\nSELECT *\nFROM course_module_completion_certificates\nWHERE verification_id = $1\n AND deleted_at IS NULL\n" - }, - "53bfa80a5ca2c543393bbe2266c1129ea103eb4699aaf0fd1445b8daeb408cd0": { - "describe": { - "columns": [ - { - "name": "organization_id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT organization_id\nFROM exams\nWHERE id = $1\n" - }, - "53da2d9f5b7e378e8e4663ff682c8c7331c6d6ad695b04d83de7c83a74a0fbe2": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "chapter_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "url_path", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "title", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "deleted_at", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "content", - "ordinal": 9, - "type_info": "Jsonb" - }, - { - "name": "order_number", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "hidden", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "page_language_group_id", - "ordinal": 13, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - true, - false, - false, - true, - false, - false, - true, - false, - true - ], - "parameters": { - "Left": ["Uuid", "Bool"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n course_id,\n exam_id,\n chapter_id,\n url_path,\n title,\n deleted_at,\n content,\n order_number,\n copied_from,\n hidden,\n page_language_group_id\nFROM pages p\nWHERE course_id = $1\n AND hidden IS DISTINCT FROM $2\n AND p.chapter_id IS NULL\n AND p.deleted_at IS NULL\n " - }, - "55495b3872d09432230c60f846f69c5967fb9d3a41508aa2e4b8c823bd762fc3": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "peer_reviews_to_give", - "ordinal": 6, - "type_info": "Int4" - }, - { - "name": "peer_reviews_to_receive", - "ordinal": 7, - "type_info": "Int4" - }, - { - "name": "accepting_threshold", - "ordinal": 8, - "type_info": "Float4" - }, - { - "name": "accepting_strategy: _", - "ordinal": 9, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "automatically_accept_or_reject_by_average", - "automatically_accept_or_manual_review_by_average", - "manual_review_everything" - ] - }, - "name": "peer_review_accepting_strategy" - } - } - } - ], - "nullable": [false, false, false, true, false, true, false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n deleted_at,\n course_id,\n exercise_id,\n peer_reviews_to_give,\n peer_reviews_to_receive,\n accepting_threshold,\n accepting_strategy AS \"accepting_strategy: _\"\nFROM peer_review_configs\nWHERE course_id = $1\n AND exercise_id IS NULL\n AND deleted_at IS NULL;\n " - }, - "56769774cc71f5cdd7d676f792ec6b2ad296ed3c220fcd65cae452983e2bf326": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "user_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "receiving_peer_reviews_exercise_slide_submission_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "received_enough_peer_reviews", - "ordinal": 8, - "type_info": "Bool" - }, - { - "name": "peer_review_priority", - "ordinal": 9, - "type_info": "Int4" - }, - { - "name": "removed_from_queue_for_unusual_reason", - "ordinal": 10, - "type_info": "Bool" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false, false, false], - "parameters": { - "Left": ["Uuid", "Uuid", "UuidArray", "Int8"] - } - }, - "query": "\nSELECT *\nFROM peer_review_queue_entries\nWHERE exercise_id = $1\n AND user_id <> $2\n AND receiving_peer_reviews_exercise_slide_submission_id <> ALL($3)\n AND deleted_at IS NULL\nORDER BY peer_review_priority DESC\nLIMIT $4\n " - }, - "572ec9f648f001d9bcd63d8c58f4456b8baa53284c15b0415ab0cdc59dc11b0e": { - "describe": { - "columns": [ - { - "name": "date", - "ordinal": 0, - "type_info": "Date" - }, - { - "name": "count", - "ordinal": 1, - "type_info": "Int4" - } - ], - "nullable": [null, null], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT DATE(created_at) date, count(*)::integer\nFROM exercise_slide_submissions\nWHERE course_id = $1\nAND deleted_at IS NULL\nGROUP BY date\nORDER BY date;\n " - }, - "576035aeb9e877869815eabed2f331073438c344f65a06022c74c23592c51dd6": { - "describe": { - "columns": [ - { - "name": "opens_at", - "ordinal": 0, - "type_info": "Timestamptz" - } - ], - "nullable": [true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT opens_at\nFROM chapters\nWHERE id = $1\n" - }, - "580725516d5909d10496b98974fac43b4d5e16db195bf2d79cd58eba4c6e6bb3": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Jsonb", "Varchar", "Varchar", "Int4", "Bool", "Uuid"] - } - }, - "query": "\nINSERT INTO pages (\n course_id,\n content,\n url_path,\n title,\n order_number,\n hidden,\n page_language_group_id\n )\nVALUES ($1, $2, $3, $4, $5, $6, $7)\nRETURNING id\n" - }, - "5866622c871cf13ddcf8be4db233bc7b1773b3fc978f96b6ccee1386e6e3a48e": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Int4"] - } - }, - "query": "UPDATE pages SET order_number = $2 WHERE pages.id = $1" - }, - "58ae58e604010e4728d05a0017d57597d1cbe1fc609259ea9370b2e85a8210ea": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "user_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_module_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "name_on_certificate", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "verification_id", - "ordinal": 8, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nSELECT *\nFROM course_module_completion_certificates\nWHERE user_id = $1\n AND course_module_id = $2\n AND course_instance_id = $3\n AND deleted_at IS NULL\n" - }, - "59830bf03af0473697a647c7ff0ee73027922ef7fc4ebfe705e47caf4b9ee7e9": { - "describe": { - "columns": [ - { - "name": "exam_id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT exam_id\nFROM course_exams\nWHERE course_id = $1\n AND deleted_at IS NULL\n " - }, - "59c480d849f7798893ef7cc56f426216e4b7a6b33f554c7b301acae2262f7e97": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE exercise_repositories\nSET status = 'success'\nWHERE id = $1\n" - }, - "5a540e7832d883d03e1aa9e24e816f3dd434cd1f754395d0e23b3a3b587ec75c": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "order_number", - "ordinal": 6, - "type_info": "Int4" - }, - { - "name": "copied_from", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "uh_course_code", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "automatic_completion", - "ordinal": 9, - "type_info": "Bool" - }, - { - "name": "automatic_completion_number_of_exercises_attempted_treshold", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "automatic_completion_number_of_points_treshold", - "ordinal": 11, - "type_info": "Int4" - }, - { - "name": "ects_credits", - "ordinal": 12, - "type_info": "Int4" - }, - { - "name": "completion_registration_link_override", - "ordinal": 13, - "type_info": "Varchar" - }, - { - "name": "automatic_completion_requires_exam", - "ordinal": 14, - "type_info": "Bool" - }, - { - "name": "enable_registering_completion_to_uh_open_university", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "certification_enabled", - "ordinal": 16, - "type_info": "Bool" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - true, - false, - true, - true, - false, - true, - true, - true, - true, - false, - false, - false - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT course_modules.*\nFROM exercises\n LEFT JOIN chapters ON (exercises.chapter_id = chapters.id)\n LEFT JOIN course_modules ON (chapters.course_module_id = course_modules.id)\nWHERE exercises.id = $1\nAND chapters.deleted_at IS NULL\nAND course_modules.deleted_at IS NULL\n " - }, - "5aa5b0629666c849e87f50b545a2f83f7bfadc42d475b3b2979f1c2507fdc551": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "order_number", - "ordinal": 5, - "type_info": "Int4" - } - ], - "nullable": [false, false, false, true, false, false], - "parameters": { - "Left": ["UuidArray"] - } - }, - "query": "\nSELECT *\nFROM exercise_slides\nWHERE exercise_id = ANY($1)\n AND deleted_at IS NULL;\n " - }, - "5bf296199f464130717be2910f6d241261334a31a65e9a6911d6e795d1435d8f": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Bool", "Uuid"] - } - }, - "query": "\nUPDATE proposed_page_edits\nSET pending = $1\nWHERE id = $2\n" - }, - "5bff2d6b08b954b12c31a399396e4f855f055ac3994940b626d05fbd4b415c54": { - "describe": { - "columns": [ - { - "name": "course_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 1, - "type_info": "Uuid" - } - ], - "nullable": [true, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT course_id, exam_id\nFROM pages\nWHERE id = $1\n AND deleted_at IS NULL;\n " - }, - "5bffd3713a72d39d37bb7bb50aafe5a7f418332d65126b3ff6d9601024359be4": { - "describe": { - "columns": [ - { - "name": "starts_at", - "ordinal": 0, - "type_info": "Timestamptz" - }, - { - "name": "ends_at", - "ordinal": 1, - "type_info": "Timestamptz" - } - ], - "nullable": [true, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT starts_at,\n ends_at\nFROM course_instances\nWHERE id = $1\n" - }, - "5c2d00b7d8e7f5656b0c77ba75fdb90aaac7dcdafbd40bf0c6ac411ee1debeac": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "UPDATE exercise_slides SET deleted_at = now() WHERE deleted_at IS NULL AND exercise_id IN (SELECT id FROM exercises WHERE chapter_id = $1 AND exercises.deleted_at IS NULL);" - }, - "5ca1aa049939baf58ecd4ef69a9344cf7cf82ce93aa64f694250008a1ecd5f07": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": [ - "Uuid", - { - "Custom": { - "kind": { - "Enum": [ - "admin", - "assistant", - "teacher", - "reviewer", - "course_or_exam_creator", - "material_viewer", - "teaching_and_learning_services" - ] - }, - "name": "user_role" - } - } - ] - } - }, - "query": "\nINSERT INTO roles (user_id, role, is_global)\nVALUES ($1, $2, True)\nRETURNING id\n" - }, - "5ce10ca01b040c32f34bc292b903a3d9d68a06c813bb95a98802719159fcdfb7": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": [ - "Uuid", - { - "Custom": { - "kind": { - "Enum": [ - "admin", - "assistant", - "teacher", - "reviewer", - "course_or_exam_creator", - "material_viewer", - "teaching_and_learning_services" - ] - }, - "name": "user_role" - } - }, - "Uuid" - ] - } - }, - "query": "\nUPDATE roles\nSET deleted_at = NOW()\nWHERE user_id = $1\n AND role = $2\n AND exam_id = $3\n AND deleted_at IS NULL\n" - }, - "5d41c0616383d2002f260f7de068cd6cf54d2d1335463b7fb4eebd1ea9b206b9": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nINSERT INTO proposed_page_edits (id, course_id, page_id, user_id)\nVALUES ($1, $2, $3, $4)\nRETURNING id\n " - }, - "5e4551b9e8ca73beb311441ee6d09921b130502349f3e0b9e00380f7eae2563f": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "peer_reviews_to_give", - "ordinal": 3, - "type_info": "Int4" - }, - { - "name": "peer_reviews_to_receive", - "ordinal": 4, - "type_info": "Int4" - }, - { - "name": "accepting_threshold", - "ordinal": 5, - "type_info": "Float4" - }, - { - "name": "accepting_strategy:_", - "ordinal": 6, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "automatically_accept_or_reject_by_average", - "automatically_accept_or_manual_review_by_average", - "manual_review_everything" - ] - }, - "name": "peer_review_accepting_strategy" - } - } - } - ], - "nullable": [false, false, true, false, false, false, false], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Uuid", - "Int4", - "Int4", - "Float4", - { - "Custom": { - "kind": { - "Enum": [ - "automatically_accept_or_reject_by_average", - "automatically_accept_or_manual_review_by_average", - "manual_review_everything" - ] - }, - "name": "peer_review_accepting_strategy" - } - } - ] - } - }, - "query": "\n INSERT INTO peer_review_configs (\n id,\n course_id,\n exercise_id,\n peer_reviews_to_give,\n peer_reviews_to_receive,\n accepting_threshold,\n accepting_strategy\n )\nVALUES ($1, $2, $3, $4, $5, $6, $7) ON CONFLICT (id) DO\nUPDATE\nSET course_id = excluded.course_id,\n exercise_id = excluded.exercise_id,\n peer_reviews_to_give = excluded.peer_reviews_to_give,\n peer_reviews_to_receive = excluded.peer_reviews_to_receive,\n accepting_threshold = excluded.accepting_threshold,\n accepting_strategy = excluded.accepting_strategy\nRETURNING id,\n course_id,\n exercise_id,\n peer_reviews_to_give,\n peer_reviews_to_receive,\n accepting_threshold,\n accepting_strategy AS \"accepting_strategy:_\";" - }, - "5e92276cd35f5b56591706b2e6b9e5229aba70df37b21a2654298bf9a0caf783": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Varchar", "Varchar", "Varchar"] - } - }, - "query": "\nINSERT INTO organizations (id, name, slug, description)\nVALUES ($1, $2, $3, $4)\nRETURNING id\n" - }, - "5e9d24bbd4a73c6bbaf6e8a8bf197723df5bfeba3b355567d65235a7844b9422": { - "describe": { - "columns": [ - { - "name": "count", - "ordinal": 0, - "type_info": "Int8" - } - ], - "nullable": [null], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT COUNT(*) as count\nFROM exercise_slide_submissions\nWHERE exercise_id = $1\nAND deleted_at IS NULL\n" - }, - "5ed164d4da522f655120cbdf4ab79f589d4d7cebfdfa4aeb09f8742f52322f07": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "peer_review_question_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "peer_review_submission_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "text_data", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "number_data", - "ordinal": 7, - "type_info": "Float4" - } - ], - "nullable": [false, false, false, true, false, false, true, true], - "parameters": { - "Left": ["UuidArray"] - } - }, - "query": "\nSELECT *\nFROM peer_review_question_submissions\nWHERE peer_review_submission_id IN (\n SELECT UNNEST($1::uuid [])\n )\n AND deleted_at IS NULL\n " - }, - "5f2094a61c95d6ab4b5e0402e3dc65b420f52e2cb8613676c73548efa6762ab4": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "organization_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "deleted_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "slug", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "content_search_language", - "ordinal": 7, - "type_info": "Text" - }, - { - "name": "language_code", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "copied_from", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "course_language_group_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "description", - "ordinal": 11, - "type_info": "Text" - }, - { - "name": "is_draft", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "is_test_mode", - "ordinal": 13, - "type_info": "Bool" - }, - { - "name": "base_module_completion_requires_n_submodule_completions", - "ordinal": 14, - "type_info": "Int4" - } - ], - "nullable": [ - false, - false, - false, - false, - false, - true, - false, - null, - false, - true, - false, - true, - false, - false, - false - ], - "parameters": { - "Left": ["Varchar", "Uuid", "Varchar", "Varchar", "Varchar", "Uuid", "Uuid", "Bool", "Int4"] - } - }, - "query": "\nINSERT INTO courses (\n name,\n organization_id,\n slug,\n content_search_language,\n language_code,\n copied_from,\n course_language_group_id,\n is_draft,\n base_module_completion_requires_n_submodule_completions\n )\nVALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9)\nRETURNING id,\n name,\n created_at,\n updated_at,\n organization_id,\n deleted_at,\n slug,\n content_search_language::text,\n language_code,\n copied_from,\n course_language_group_id,\n description,\n is_draft,\n is_test_mode,\n base_module_completion_requires_n_submodule_completions\n " - }, - "60b4d9ad7ac2d73ccda5d003284a9c1f8976ed4ec2020ad43c4c37bf16de5d80": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 7, - "type_info": "Timestamptz" - }, - { - "name": "score_given", - "ordinal": 8, - "type_info": "Float4" - }, - { - "name": "grading_progress: _", - "ordinal": 9, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - }, - { - "name": "activity_progress: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": ["initialized", "started", "in-progress", "submitted", "completed"] - }, - "name": "activity_progress" - } - } - }, - { - "name": "reviewing_stage: _", - "ordinal": 11, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "not_started", - "peer_review", - "self_review", - "waiting_for_peer_reviews", - "waiting_for_manual_grading", - "reviewed_and_locked" - ] - }, - "name": "reviewing_stage" - } - } - }, - { - "name": "selected_exercise_slide_id", - "ordinal": 12, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - false, - false, - true, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nSELECT id,\n user_id,\n exercise_id,\n course_instance_id,\n exam_id,\n created_at,\n updated_at,\n deleted_at,\n score_given,\n grading_progress AS \"grading_progress: _\",\n activity_progress AS \"activity_progress: _\",\n reviewing_stage AS \"reviewing_stage: _\",\n selected_exercise_slide_id\nFROM user_exercise_states\nWHERE user_id = $1\n AND (course_instance_id = $2 OR exam_id = $3)\n AND deleted_at IS NULL\n " - }, - "6115b4ea6be3824a74f2274a9e0f5dd876b87c83517915f895038bb5ed3e155d": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE study_registry_registrars\nSET deleted_at = now()\nWHERE id = $1\n " - }, - "61bf107004b50428f84d69be289d73379c985a0e04a2e4f02471b79920990123": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "order_number", - "ordinal": 6, - "type_info": "Int4" - }, - { - "name": "copied_from", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "uh_course_code", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "automatic_completion", - "ordinal": 9, - "type_info": "Bool" - }, - { - "name": "automatic_completion_number_of_exercises_attempted_treshold", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "automatic_completion_number_of_points_treshold", - "ordinal": 11, - "type_info": "Int4" - }, - { - "name": "ects_credits", - "ordinal": 12, - "type_info": "Int4" - }, - { - "name": "completion_registration_link_override", - "ordinal": 13, - "type_info": "Varchar" - }, - { - "name": "automatic_completion_requires_exam", - "ordinal": 14, - "type_info": "Bool" - }, - { - "name": "enable_registering_completion_to_uh_open_university", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "certification_enabled", - "ordinal": 16, - "type_info": "Bool" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - true, - false, - true, - true, - false, - true, - true, - true, - true, - false, - false, - false - ], - "parameters": { - "Left": ["Bool", "Uuid"] - } - }, - "query": "\nUPDATE course_modules\nSET enable_registering_completion_to_uh_open_university = $1\nWHERE id = $2\n AND deleted_at IS NULL\nRETURNING *\n " - }, - "62574df67f4064d592cf971f718072cba0cc4497013af8878fc33bbe7edf58b3": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_module_completion_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_module_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "study_registry_registrar_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 8, - "type_info": "Uuid" - }, - { - "name": "real_student_number", - "ordinal": 9, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM course_module_completion_registered_to_study_registries\nWHERE id = $1\n AND deleted_at IS NULL\n " - }, - "62eb815d156490c85deffee0a43a04e454890fe62b07edebe2ad8b9616268ba4": { - "describe": { - "columns": [ - { - "name": "page_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "page_title", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "course_id?", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "course_name?", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "course_slug?", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "organization_slug?", - "ordinal": 5, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\n SELECT\n p.id as page_id,\n p.title as page_title,\n c.id as \"course_id?\",\n c.name as \"course_name?\",\n c.slug as \"course_slug?\",\n o.slug as \"organization_slug?\"\n FROM pages p\n LEFT JOIN courses c\n on c.id = p.course_id\n LEFT JOIN organizations o\n on o.id = c.organization_id\n WHERE p.id = $1;\n " - }, - "638ed4d8404f56dc045e29928b128b15554a1bb7d3ae2741d7bf772eff84bc92": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "rank", - "ordinal": 1, - "type_info": "Float4" - }, - { - "name": "title_headline", - "ordinal": 2, - "type_info": "Text" - }, - { - "name": "content_headline", - "ordinal": 3, - "type_info": "Text" - }, - { - "name": "url_path", - "ordinal": 4, - "type_info": "Varchar" - } - ], - "nullable": [false, null, null, null, false], - "parameters": { - "Left": [ - "Uuid", - { - "Custom": { - "kind": "Simple", - "name": "regconfig" - } - }, - "Text", - "Text" - ] - } - }, - "query": "\n-- common table expression for the search term tsquery so that we don't have to repeat it many times\nWITH cte as (\n -- Converts the search term to a phrase search with phraseto_tsquery but appends ':*' to the last word so that it\n -- becomes a prefix match. This way the search will also contain results when the last word in the search term\n -- is only partially typed. Note that if to_tsquery($4) decides to stem the word, the replacement will be skipped.\n SELECT ts_rewrite(\n phraseto_tsquery($2::regconfig, $3),\n to_tsquery($4),\n to_tsquery($4 || ':*')\n ) as query\n)\nSELECT id,\n ts_rank(\n content_search,\n (\n SELECT query\n from cte\n )\n ) as rank,\n ts_headline(\n $2::regconfig,\n title,\n (\n SELECT query\n from cte\n )\n ) as title_headline,\n ts_headline(\n $2::regconfig,\n content_search_original_text,\n (\n SELECT query\n from cte\n )\n ) as content_headline,\n url_path\nFROM pages\nWHERE course_id = $1\n AND deleted_at IS NULL\n AND hidden IS FALSE\n AND content_search @@ (\n SELECT query\n from cte\n )\nORDER BY rank DESC\nLIMIT 50;\n " - }, - "63d58cdbacf38184f86b054d840c4d9a5dead359588dd2c6f028003211e0184e": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Int4", - "Varchar", - { - "Custom": { - "kind": { - "Enum": ["essay", "scale"] - }, - "name": "peer_review_question_type" - } - } - ] - } - }, - "query": "\nINSERT INTO peer_review_questions (\n id,\n peer_review_config_id,\n order_number,\n question,\n question_type\n )\nVALUES ($1, $2, $3, $4, $5)\nRETURNING id\n " - }, - "64fc40c3fe0f442a0fbb85a5295039374b67635e04ff6f8cb16f29ef14494cfd": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_module_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "completion_date", - "ordinal": 7, - "type_info": "Timestamptz" - }, - { - "name": "completion_registration_attempt_date", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "completion_language", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "eligible_for_ects", - "ordinal": 10, - "type_info": "Bool" - }, - { - "name": "email", - "ordinal": 11, - "type_info": "Varchar" - }, - { - "name": "grade", - "ordinal": 12, - "type_info": "Int4" - }, - { - "name": "passed", - "ordinal": 13, - "type_info": "Bool" - }, - { - "name": "course_instance_id", - "ordinal": 14, - "type_info": "Uuid" - }, - { - "name": "prerequisite_modules_completed", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "completion_granter_user_id", - "ordinal": 16, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - false, - false, - false, - true, - false, - false, - false, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM course_module_completions\nWHERE id = $1\n AND deleted_at IS NULL\n " - }, - "64fe3f5421ad33305f9f1daef9da4fb63db3edc86b7e769e21e689b67f2d9839": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "exercise_task_submission_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "exercise_task_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "grading_priority", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "score_given", - "ordinal": 9, - "type_info": "Float4" - }, - { - "name": "grading_progress: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - }, - { - "name": "unscaled_score_given", - "ordinal": 11, - "type_info": "Float4" - }, - { - "name": "unscaled_score_maximum", - "ordinal": 12, - "type_info": "Int4" - }, - { - "name": "grading_started_at", - "ordinal": 13, - "type_info": "Timestamptz" - }, - { - "name": "grading_completed_at", - "ordinal": 14, - "type_info": "Timestamptz" - }, - { - "name": "feedback_json", - "ordinal": 15, - "type_info": "Jsonb" - }, - { - "name": "feedback_text", - "ordinal": 16, - "type_info": "Text" - }, - { - "name": "deleted_at", - "ordinal": 17, - "type_info": "Timestamptz" - } - ], - "nullable": [ - false, - false, - false, - false, - true, - true, - false, - false, - false, - true, - false, - true, - true, - true, - true, - true, - true, - true - ], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nINSERT INTO exercise_task_gradings(\n exercise_task_submission_id,\n course_id,\n exam_id,\n exercise_id,\n exercise_task_id,\n grading_started_at\n )\nVALUES($1, $2, $3, $4, $5, now())\nRETURNING id,\n created_at,\n updated_at,\n exercise_task_submission_id,\n course_id,\n exam_id,\n exercise_id,\n exercise_task_id,\n grading_priority,\n score_given,\n grading_progress as \"grading_progress: _\",\n unscaled_score_given,\n unscaled_score_maximum,\n grading_started_at,\n grading_completed_at,\n feedback_json,\n feedback_text,\n deleted_at\n" - }, - "65c2e4824bd1690a7ab8fcdb1125f546b9fe47ec2851ce6febc0c6aba3e9d3d0": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nINSERT INTO course_modules (\n id,\n course_id,\n name,\n order_number,\n copied_from\n )\nSELECT uuid_generate_v5($1, id::text),\n $1,\n name,\n order_number,\n id\nFROM course_modules\nWHERE course_id = $2\n AND deleted_at IS NULL\n " - }, - "65cc3c8d7fd2610ad86c2aec0773281029298a5165fcb245bdb10c1dfc9e73c6": { - "describe": { - "columns": [ - { - "name": "cfgname", - "ordinal": 0, - "type_info": "Text" - } - ], - "nullable": [null], - "parameters": { - "Left": ["Name"] - } - }, - "query": "SELECT cfgname::text FROM pg_ts_config WHERE cfgname = $1" - }, - "65e065e43e42d10b162417831b6345cfa6a72f18c5d611b6b9fc89440fbf3021": { - "describe": { - "columns": [ - { - "name": "user_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "first_name", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "last_name", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "email", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "search_helper", - "ordinal": 6, - "type_info": "Text" - } - ], - "nullable": [false, false, false, true, true, false, true], - "parameters": { - "Left": ["Text"] - } - }, - "query": "\nSELECT *\nFROM user_details\nWHERE lower(email::text) LIKE '%' || lower($1) || '%'\nLIMIT 1000;\n" - }, - "668cb347914fe2f1772618a9c0512176d536a677877419994d9ea163ba734cb6": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "chapter_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "url_path", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "title", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "deleted_at", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "content", - "ordinal": 9, - "type_info": "Jsonb" - }, - { - "name": "order_number", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "hidden", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "page_language_group_id", - "ordinal": 13, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - true, - false, - false, - true, - false, - false, - true, - false, - true - ], - "parameters": { - "Left": ["Uuid", "Bool"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n course_id,\n exam_id,\n chapter_id,\n url_path,\n title,\n deleted_at,\n content,\n order_number,\n copied_from,\n hidden,\n page_language_group_id\nFROM pages\nWHERE course_id = $1\n AND hidden IS DISTINCT FROM $2\n AND deleted_at IS NULL\n " - }, - "67434094ef52c37f9526ff5cf3ff6ae8bdb13a10d23476976f36c17b0a4030a6": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nUPDATE teacher_grading_decisions\nSET deleted_at = now()\nWHERE user_exercise_state_id IN (\n SELECT id\n FROM user_exercise_states\n WHERE user_id = $1\n AND course_instance_id = $2\n )\n AND deleted_at IS NULL\n" - }, - "677aa28a43686947893f1a17b1ede4bc06c3d1d980b246fe2b41918f4ae838aa": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Varchar", - "Jsonb", - { - "Custom": { - "kind": { - "Enum": ["page-saved", "history-restored"] - }, - "name": "history_change_reason" - } - }, - "Uuid", - "Uuid" - ] - } - }, - "query": "\nINSERT INTO page_history (\n id,\n page_id,\n title,\n content,\n history_change_reason,\n author_user_id,\n restored_from_id\n )\nVALUES ($1, $2, $3, $4, $5, $6, $7)\nRETURNING id\n " - }, - "6780ef0878bec62e6542834a3184f3c1a5c6a934147fa3cedf9ea770d4fbb093": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nUPDATE user_exercise_slide_states\nSET deleted_at = now()\nWHERE user_exercise_state_id IN (\n SELECT id\n FROM user_exercise_states\n WHERE user_id = $1\n AND course_instance_id = $2\n )\n AND deleted_at IS NULL\n" - }, - "67d2d1da97dc5c1a26f920551b36f7f8c7d92be95bf05920aa12d09d2e3920ba": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nINSERT INTO course_exams (course_id, exam_id)\nVALUES ($1, $2) ON CONFLICT (course_id, exam_id) DO\nUPDATE\nSET deleted_at = NULL;\n" - }, - "68052d507640e11e277ecb710b46b41c0e8874f8e47a35c8a46ae6992d33f1ca": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "first_name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "last_name", - "ordinal": 2, - "type_info": "Varchar" - }, - { - "name": "email", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "role: UserRole", - "ordinal": 4, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "admin", - "assistant", - "teacher", - "reviewer", - "course_or_exam_creator", - "material_viewer", - "teaching_and_learning_services" - ] - }, - "name": "user_role" - } - } - } - ], - "nullable": [false, true, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT users.id,\n user_details.first_name,\n user_details.last_name,\n user_details.email,\n role AS \"role: UserRole\"\nFROM users\n JOIN roles ON users.id = roles.user_id\n JOIN user_details ON users.id = user_details.user_id\nWHERE roles.course_id = $1\nAND roles.deleted_at IS NULL\n" - }, - "680c5eed3c49d67d404af7d0a2df7dc8f9391db14848e8aff877a8a117335be2": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "deleted_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "deadline", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "page_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "score_maximum", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "order_number", - "ordinal": 9, - "type_info": "Int4" - }, - { - "name": "chapter_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 12, - "type_info": "Uuid" - }, - { - "name": "max_tries_per_slide", - "ordinal": 13, - "type_info": "Int4" - }, - { - "name": "limit_number_of_tries", - "ordinal": 14, - "type_info": "Bool" - }, - { - "name": "needs_peer_review", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "use_course_default_peer_review_config", - "ordinal": 16, - "type_info": "Bool" - }, - { - "name": "exercise_language_group_id", - "ordinal": 17, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - false, - true, - false, - false, - false, - true, - true, - true, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "SELECT * FROM exercises WHERE id = $1;" - }, - "6810cfd6e870d2bf90d0c59a93b806cbd184eb93d31c3a3519e6e6fcba821fbd": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nINSERT INTO exercise_task_gradings (\n id,\n exercise_task_submission_id,\n course_id,\n exercise_id,\n exercise_task_id\n )\nVALUES ($1, $2, $3, $4, $5)\nRETURNING id\n " - }, - "684da3248694cb9460fd8b524fc4ad1644c72671cbc1b76b144440e9f7a0a31b": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "exercise_slide_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "assignment", - "ordinal": 2, - "type_info": "Jsonb" - }, - { - "name": "exercise_type", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "private_spec", - "ordinal": 4, - "type_info": "Jsonb" - }, - { - "name": "order_number", - "ordinal": 5, - "type_info": "Int4" - } - ], - "nullable": [false, false, false, false, true, false], - "parameters": { - "Left": ["Uuid", "Uuid", "Varchar", "Jsonb", "Jsonb", "Jsonb", "Jsonb", "Int4"] - } - }, - "query": "\nINSERT INTO exercise_tasks(\n id,\n exercise_slide_id,\n exercise_type,\n assignment,\n public_spec,\n private_spec,\n model_solution_spec,\n order_number\n )\nVALUES ($1, $2, $3, $4, $5, $6, $7, $8) ON CONFLICT (id) DO\nUPDATE\nSET exercise_slide_id = $2,\n exercise_type = $3,\n assignment = $4,\n public_spec = $5,\n private_spec = $6,\n model_solution_spec = $7,\n order_number = $8,\n deleted_at = NULL\nRETURNING id,\n exercise_slide_id,\n assignment,\n exercise_type,\n private_spec,\n order_number\n " - }, - "695a949ba3558ee7732376d21552a497407519d4909f24c6590b20ba41445e86": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_module_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "completion_date", - "ordinal": 7, - "type_info": "Timestamptz" - }, - { - "name": "completion_registration_attempt_date", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "completion_language", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "eligible_for_ects", - "ordinal": 10, - "type_info": "Bool" - }, - { - "name": "email", - "ordinal": 11, - "type_info": "Varchar" - }, - { - "name": "grade", - "ordinal": 12, - "type_info": "Int4" - }, - { - "name": "passed", - "ordinal": 13, - "type_info": "Bool" - }, - { - "name": "course_instance_id", - "ordinal": 14, - "type_info": "Uuid" - }, - { - "name": "prerequisite_modules_completed", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "completion_granter_user_id", - "ordinal": 16, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - false, - false, - false, - true, - false, - false, - false, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": ["UuidArray"] - } - }, - "query": "\nSELECT *\nFROM course_module_completions\nWHERE course_module_id = ANY($1)\n AND prerequisite_modules_completed\n AND eligible_for_ects\n AND deleted_at IS NULL\n " - }, - "695e8a6d471bab1f075c02369254c2a542b6a46a9d0a3bbca8d14c2af0499a5d": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nUPDATE peer_review_queue_entries\nSET removed_from_queue_for_unusual_reason = TRUE\nWHERE user_id = $1\n AND exercise_id = $2\n AND course_instance_id = $3\n AND deleted_at IS NULL\n " - }, - "698645b38127cda478f4179461f69a880c3bf2cc6b190eea2560cfc67273495f": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "chapter_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "url_path", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "title", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "deleted_at", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "content", - "ordinal": 9, - "type_info": "Jsonb" - }, - { - "name": "order_number", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "hidden", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "page_language_group_id", - "ordinal": 13, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - true, - false, - false, - true, - false, - false, - true, - false, - true - ], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n course_id,\n exam_id,\n chapter_id,\n url_path,\n title,\n deleted_at,\n content,\n order_number,\n copied_from,\n hidden,\n page_language_group_id\nFROM pages p\nWHERE p.course_id = $1\n AND p.page_language_group_id = $2\n AND p.deleted_at IS NULL\n " - }, - "69ce80ab82e60eebfbd382f16c0e5ea305457176ea0868b935835b4398e09106": { - "describe": { - "columns": [ - { - "name": "score_given", - "ordinal": 0, - "type_info": "Float4" - }, - { - "name": "grading_progress: GradingProgress", - "ordinal": 1, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - } - ], - "nullable": [true, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT score_given,\n grading_progress AS \"grading_progress: GradingProgress\"\nFROM user_exercise_task_states\nWHERE user_exercise_slide_state_id = $1\n AND deleted_at IS NULL\n " - }, - "69f09958c20649684f9da3a2308530802e8590348dd0959fea8a10263b830bd4": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_exercise_state_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "score_given", - "ordinal": 5, - "type_info": "Float4" - }, - { - "name": "teacher_decision: _", - "ordinal": 6, - "type_info": { - "Custom": { - "kind": { - "Enum": ["full-points", "zero-points", "custom-points", "suspected-plagiarism"] - }, - "name": "teacher_decision_type" - } - } - } - ], - "nullable": [false, false, false, false, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n user_exercise_state_id,\n created_at,\n updated_at,\n deleted_at,\n score_given,\n teacher_decision AS \"teacher_decision: _\"\nFROM teacher_grading_decisions\nWHERE user_exercise_state_id = $1\n AND deleted_at IS NULL\nORDER BY created_at DESC\nLIMIT 1\n " - }, - "6abae7185ea5e131996a7792bce21e0e1f30b0bce4bae05061259a63cfc92a01": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_slide_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 8, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "user_points_update_strategy: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "can-add-points-but-cannot-remove-points", - "can-add-points-and-can-remove-points" - ] - }, - "name": "user_points_update_strategy" - } - } - } - ], - "nullable": [false, false, false, true, false, true, true, true, false, false, false], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Uuid", - "Uuid", - "Uuid", - "Uuid", - "Uuid", - { - "Custom": { - "kind": { - "Enum": [ - "can-add-points-but-cannot-remove-points", - "can-add-points-and-can-remove-points" - ] - }, - "name": "user_points_update_strategy" - } - } - ] - } - }, - "query": "\nINSERT INTO exercise_slide_submissions (\n id,\n exercise_slide_id,\n course_id,\n course_instance_id,\n exam_id,\n exercise_id,\n user_id,\n user_points_update_strategy\n )\nVALUES ($1, $2, $3, $4, $5, $6, $7, $8)\nRETURNING id,\n created_at,\n updated_at,\n deleted_at,\n exercise_slide_id,\n course_id,\n course_instance_id,\n exam_id,\n exercise_id,\n user_id,\n user_points_update_strategy AS \"user_points_update_strategy: _\"\n " - }, - "6b1d2d02c551a78e8ac46f38a69af4a12fcdf343700d147064fa97603558a19e": { - "describe": { - "columns": [ - { - "name": "course_id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT course_id\nFROM course_exams\nWHERE exam_id = $1\n AND deleted_at IS NULL\n " - }, - "6b764fb042540c04fc7a581e5e95427dbd071d439b167d5b541a5e3054110e58": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 7, - "type_info": "Timestamptz" - }, - { - "name": "score_given", - "ordinal": 8, - "type_info": "Float4" - }, - { - "name": "grading_progress: _", - "ordinal": 9, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - }, - { - "name": "activity_progress: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": ["initialized", "started", "in-progress", "submitted", "completed"] - }, - "name": "activity_progress" - } - } - }, - { - "name": "reviewing_stage: _", - "ordinal": 11, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "not_started", - "peer_review", - "self_review", - "waiting_for_peer_reviews", - "waiting_for_manual_grading", - "reviewed_and_locked" - ] - }, - "name": "reviewing_stage" - } - } - }, - { - "name": "selected_exercise_slide_id", - "ordinal": 12, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - false, - false, - true, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Uuid", - "Uuid", - { - "Custom": { - "kind": { - "Enum": [ - "not_started", - "peer_review", - "self_review", - "waiting_for_peer_reviews", - "waiting_for_manual_grading", - "reviewed_and_locked" - ] - }, - "name": "reviewing_stage" - } - } - ] - } - }, - "query": "\nUPDATE user_exercise_states\nSET reviewing_stage = $5\nWHERE user_id = $1\nAND (course_instance_id = $2 OR exam_id = $3)\nAND exercise_id = $4\nRETURNING id,\n user_id,\n exercise_id,\n course_instance_id,\n exam_id,\n created_at,\n updated_at,\n deleted_at,\n score_given,\n grading_progress AS \"grading_progress: _\",\n activity_progress AS \"activity_progress: _\",\n reviewing_stage AS \"reviewing_stage: _\",\n selected_exercise_slide_id\n " - }, - "6b8536e8f4621ec17b4b6a7aea1b2df02d5f86d70df29eaa89dd00c028aa4e67": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Uuid", "Text", "Text", "Text"] - } - }, - "query": "\nINSERT INTO proposed_block_edits (\n proposal_id,\n block_id,\n block_attribute,\n original_text,\n changed_text\n)\nVALUES ($1, $2, $3, $4, $5)\nRETURNING id\n" - }, - "6b93f383b77d88e9c71992c02d506432df4a5b8f2c61e3a1110de8bc9c74d2f8": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "chapter_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "url_path", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "title", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "deleted_at", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "content", - "ordinal": 9, - "type_info": "Jsonb" - }, - { - "name": "order_number", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "hidden", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "page_language_group_id", - "ordinal": 13, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - true, - false, - false, - true, - false, - false, - true, - false, - true - ], - "parameters": { - "Left": ["Uuid", "Text"] - } - }, - "query": "\nSELECT pages.id,\n pages.created_at,\n pages.updated_at,\n pages.course_id,\n pages.exam_id,\n pages.chapter_id,\n pages.url_path,\n pages.title,\n pages.deleted_at,\n pages.content,\n pages.order_number,\n pages.copied_from,\n pages.hidden,\n pages.page_language_group_id\nFROM pages\nWHERE pages.course_id = $1\n AND url_path = $2\n AND pages.deleted_at IS NULL;\n " - }, - "6bc403d5e34e4661d2e6930c35e5d8caafea81db10220cdaf612d9be967a056b": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "order_number", - "ordinal": 5, - "type_info": "Int4" - } - ], - "nullable": [false, false, false, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM exercise_slides\nWHERE exercise_id = $1\n AND deleted_at IS NULL;\n " - }, - "6c851f2866f37f7c17cc393acffeedaa93942e9e4f54e06428e833fedbd8ab86": { - "describe": { - "columns": [ - { - "name": "course_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 1, - "type_info": "Uuid" - } - ], - "nullable": [true, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT\n course_id,\n exam_id\nFROM exercises\nWHERE id = (\n SELECT s.exercise_id\n FROM exercise_slides s\n JOIN exercise_tasks t ON (s.id = t.exercise_slide_id)\n WHERE s.deleted_at IS NULL\n AND t.id = $1\n AND t.deleted_at IS NULL\n )\n" - }, - "6cec1b04cf71dd7bb136282cc8fa0394824a1f2109be65e2d4ed0b685eabafa2": { - "describe": { - "columns": [ - { - "name": "user_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "first_name", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "last_name", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "email", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "search_helper", - "ordinal": 6, - "type_info": "Text" - } - ], - "nullable": [false, false, false, true, true, false, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM user_details\nWHERE user_id in (\n SELECT DISTINCT (user_id)\n FROM user_exercise_states\n WHERE course_instance_id IN (\n SELECT id\n FROM course_instances\n WHERE course_id = $1\n )\n AND deleted_at IS NULL\n );\n " - }, - "6d67760ed5e869f8dc268d933d039919f1d354580efddbdccc668f03f0a73289": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "organization_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "deleted_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "slug", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "content_search_language", - "ordinal": 7, - "type_info": "Text" - }, - { - "name": "language_code", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "copied_from", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "course_language_group_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "description", - "ordinal": 11, - "type_info": "Text" - }, - { - "name": "is_draft", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "is_test_mode", - "ordinal": 13, - "type_info": "Bool" - }, - { - "name": "base_module_completion_requires_n_submodule_completions", - "ordinal": 14, - "type_info": "Int4" - } - ], - "nullable": [ - false, - false, - false, - false, - false, - true, - false, - null, - false, - true, - false, - true, - false, - false, - false - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n name,\n created_at,\n updated_at,\n organization_id,\n deleted_at,\n slug,\n content_search_language::text,\n language_code,\n copied_from,\n course_language_group_id,\n description,\n is_draft,\n is_test_mode,\n base_module_completion_requires_n_submodule_completions\nFROM courses\nWHERE id = $1;\n " - }, - "6dc128286df6ae206c53e92dc831e40b64a03a9b8b6b4c831ab1aeee7426ce13": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id\nFROM chapters\nWHERE course_module_id = $1\nAND deleted_at IS NULL\n" - }, - "6e839a249fbc2dbf1ff7dc7bc4c46bf6b93f0f0ff5f1ca8488e177c46490d389": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "peer_review_question_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "peer_review_submission_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "text_data", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "number_data", - "ordinal": 7, - "type_info": "Float4" - } - ], - "nullable": [false, false, false, true, false, false, true, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT prqs.*\nFROM peer_review_submissions prs\n JOIN peer_review_question_submissions prqs on prs.id = prqs.peer_review_submission_id\nWHERE prs.exercise_slide_submission_id = $1\n AND prs.deleted_at IS NULL\n AND prqs.deleted_at IS NULL\n " - }, - "6f2e58a27e907e090727b45fb17e8e2658ea8d2d08ae97a2d21361aab63b40e5": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "deleted_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "deadline", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "page_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "score_maximum", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "order_number", - "ordinal": 9, - "type_info": "Int4" - }, - { - "name": "chapter_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 12, - "type_info": "Uuid" - }, - { - "name": "max_tries_per_slide", - "ordinal": 13, - "type_info": "Int4" - }, - { - "name": "limit_number_of_tries", - "ordinal": 14, - "type_info": "Bool" - }, - { - "name": "needs_peer_review", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "use_course_default_peer_review_config", - "ordinal": 16, - "type_info": "Bool" - }, - { - "name": "exercise_language_group_id", - "ordinal": 17, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - false, - true, - false, - false, - false, - true, - true, - true, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\n FROM exercises\nWHERE page_id = $1\n AND deleted_at IS NULL;\n" - }, - "6f5ab6a5fb0636d714701ea1c4d6c01ca9b3a54efc33322c8bf81d98d356d8e6": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "url", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "width", - "ordinal": 6, - "type_info": "Int4" - }, - { - "name": "data", - "ordinal": 7, - "type_info": "Jsonb" - } - ], - "nullable": [false, false, false, true, false, false, false, false], - "parameters": { - "Left": [] - } - }, - "query": "\nSELECT *\nfrom playground_examples\nWHERE deleted_at IS NULL;\n " - }, - "6f991c6fb574e712b360038802e99f87606b370f10fe37c8160388a4b087c638": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Int4"] - } - }, - "query": "UPDATE chapters SET chapter_number = $2 WHERE chapters.id = $1" - }, - "70153b30b4c994da2fcc85853bc4a56e406477b77390a85d8d2c4436a038e67a": { - "describe": { - "columns": [ - { - "name": "exercise_slide_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "count", - "ordinal": 1, - "type_info": "Int8" - } - ], - "nullable": [false, null], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nSELECT exercise_slide_id,\n COUNT(*) as count\nFROM exercise_slide_submissions\nWHERE exercise_id = $1\n AND (course_instance_id = $2 OR exam_id = $2)\n AND user_id = $3\n AND deleted_at IS NULL\nGROUP BY exercise_slide_id;\n " - }, - "7074164915eca8a60f6f1d36ba2dfaf2df3b8b430c01f15a37b4a8ec4fd62470": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "starts_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "ends_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "description", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "teacher_in_charge_name", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "teacher_in_charge_email", - "ordinal": 10, - "type_info": "Varchar" - }, - { - "name": "support_email", - "ordinal": 11, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, false, true, true, true, true, false, false, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n deleted_at,\n course_id,\n starts_at,\n ends_at,\n name,\n description,\n teacher_in_charge_name,\n teacher_in_charge_email,\n support_email\nFROM course_instances\nWHERE course_id = $1\n AND deleted_at IS NULL;\n " - }, - "70891a58f730b5fb922d10f56170ecf3a5f46e32bfd28b435582381a0a11e866": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nSELECT\nFROM user_exercise_states\nWHERE user_id = $1\n AND exercise_id = $2\n AND (course_instance_id = $3 OR exam_id = $4)\n AND deleted_at IS NULL\n" - }, - "70d9446d80cf86ae0dac235c0a2f87d600e2328fa2c2cf56686b78105694d3b5": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_slide_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "user_exercise_state_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "score_given", - "ordinal": 6, - "type_info": "Float4" - }, - { - "name": "grading_progress: _", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - } - ], - "nullable": [false, false, false, true, false, false, true, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n deleted_at,\n exercise_slide_id,\n user_exercise_state_id,\n score_given,\n grading_progress AS \"grading_progress: _\"\nFROM user_exercise_slide_states\nWHERE id = $1\n AND deleted_at IS NULL\n " - }, - "70e6ff26e3d7640f22ecdf62170020d22c8359c84dd2415b66d6308e147f02c7": { - "describe": { - "columns": [ - { - "name": "url_path", - "ordinal": 0, - "type_info": "Varchar" - }, - { - "name": "title", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "page_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "chapter_number", - "ordinal": 3, - "type_info": "Int4" - }, - { - "name": "chapter_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "chapter_opens_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "chapter_front_page_id", - "ordinal": 6, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, false, false, true, true], - "parameters": { - "Left": ["Int4", "Uuid"] - } - }, - "query": "\nSELECT p.url_path as url_path,\n p.title as title,\n p.id as page_id,\n c.chapter_number as chapter_number,\n c.id as chapter_id,\n c.opens_at as chapter_opens_at,\n c.front_page_id as chapter_front_page_id\nFROM chapters c\n INNER JOIN pages p on c.id = p.chapter_id\nWHERE c.chapter_number = (\n SELECT MIN(ca.chapter_number)\n FROM chapters ca\n WHERE ca.chapter_number > $1\n AND ca.deleted_at IS NULL\n )\n AND c.course_id = $2\n AND p.deleted_at IS NULL\nORDER BY p.order_number\nLIMIT 1;\n " - }, - "71c23bcb5071b61e8396c4a86227b25ab24dfeaa741c4f482d534d58d2b69825": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE exercise_slides\nSET deleted_at = now()\nWHERE exercise_id IN (\n SELECT id\n FROM exercises\n WHERE page_id = $1\n )\n AND deleted_at IS NULL;\n " - }, - "7223a3531443967d4b50601055af85fafffa93f5fe3432ab7433f14ac8ae7d35": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_module_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "certificate_owner_name_y_pos", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "certificate_owner_name_x_pos", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "certificate_owner_name_font_size", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "certificate_owner_name_text_color", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "certificate_owner_name_text_anchor: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": ["start", "middle", "end"] - }, - "name": "certificate_text_anchor" - } - } - }, - { - "name": "certificate_validate_url_y_pos", - "ordinal": 11, - "type_info": "Varchar" - }, - { - "name": "certificate_validate_url_x_pos", - "ordinal": 12, - "type_info": "Varchar" - }, - { - "name": "certificate_validate_url_font_size", - "ordinal": 13, - "type_info": "Varchar" - }, - { - "name": "certificate_validate_url_text_color", - "ordinal": 14, - "type_info": "Varchar" - }, - { - "name": "certificate_validate_url_text_anchor: _", - "ordinal": 15, - "type_info": { - "Custom": { - "kind": { - "Enum": ["start", "middle", "end"] - }, - "name": "certificate_text_anchor" - } - } - }, - { - "name": "certificate_date_y_pos", - "ordinal": 16, - "type_info": "Varchar" - }, - { - "name": "certificate_date_x_pos", - "ordinal": 17, - "type_info": "Varchar" - }, - { - "name": "certificate_date_font_size", - "ordinal": 18, - "type_info": "Varchar" - }, - { - "name": "certificate_date_text_color", - "ordinal": 19, - "type_info": "Varchar" - }, - { - "name": "certificate_date_text_anchor: _", - "ordinal": 20, - "type_info": { - "Custom": { - "kind": { - "Enum": ["start", "middle", "end"] - }, - "name": "certificate_text_anchor" - } - } - }, - { - "name": "certificate_locale", - "ordinal": 21, - "type_info": "Varchar" - }, - { - "name": "paper_size: _", - "ordinal": 22, - "type_info": { - "Custom": { - "kind": { - "Enum": ["horizontal-a4", "vertical-a4"] - }, - "name": "certificate_paper_size" - } - } - }, - { - "name": "background_svg_path", - "ordinal": 23, - "type_info": "Varchar" - }, - { - "name": "background_svg_file_upload_id", - "ordinal": 24, - "type_info": "Uuid" - }, - { - "name": "overlay_svg_path", - "ordinal": 25, - "type_info": "Varchar" - }, - { - "name": "overlay_svg_file_upload_id", - "ordinal": 26, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - true, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - true - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Varchar", - "Varchar", - "Varchar", - "Varchar", - { - "Custom": { - "kind": { - "Enum": ["start", "middle", "end"] - }, - "name": "certificate_text_anchor" - } - }, - "Varchar", - "Varchar", - "Varchar", - "Varchar", - { - "Custom": { - "kind": { - "Enum": ["start", "middle", "end"] - }, - "name": "certificate_text_anchor" - } - }, - "Varchar", - "Varchar", - "Varchar", - "Varchar", - { - "Custom": { - "kind": { - "Enum": ["start", "middle", "end"] - }, - "name": "certificate_text_anchor" - } - }, - "Varchar", - { - "Custom": { - "kind": { - "Enum": ["horizontal-a4", "vertical-a4"] - }, - "name": "certificate_paper_size" - } - }, - "Varchar", - "Uuid", - "Varchar", - "Uuid" - ] - } - }, - "query": "\nINSERT INTO public.course_module_certificate_configurations (\n course_module_id,\n course_instance_id,\n certificate_owner_name_y_pos,\n certificate_owner_name_x_pos,\n certificate_owner_name_font_size,\n certificate_owner_name_text_color,\n certificate_owner_name_text_anchor,\n certificate_validate_url_y_pos,\n certificate_validate_url_x_pos,\n certificate_validate_url_font_size,\n certificate_validate_url_text_color,\n certificate_validate_url_text_anchor,\n certificate_date_y_pos,\n certificate_date_x_pos,\n certificate_date_font_size,\n certificate_date_text_color,\n certificate_date_text_anchor,\n certificate_locale,\n paper_size,\n background_svg_path,\n background_svg_file_upload_id,\n overlay_svg_path,\n overlay_svg_file_upload_id\n )\nVALUES (\n $1,\n $2,\n $3,\n $4,\n $5,\n $6,\n $7,\n $8,\n $9,\n $10,\n $11,\n $12,\n $13,\n $14,\n $15,\n $16,\n $17,\n $18,\n $19,\n $20,\n $21,\n $22,\n $23\n )\nRETURNING id,\n created_at,\n updated_at,\n deleted_at,\n course_module_id,\n course_instance_id,\n certificate_owner_name_y_pos,\n certificate_owner_name_x_pos,\n certificate_owner_name_font_size,\n certificate_owner_name_text_color,\n certificate_owner_name_text_anchor as \"certificate_owner_name_text_anchor: _\",\n certificate_validate_url_y_pos,\n certificate_validate_url_x_pos,\n certificate_validate_url_font_size,\n certificate_validate_url_text_color,\n certificate_validate_url_text_anchor as \"certificate_validate_url_text_anchor: _\",\n certificate_date_y_pos,\n certificate_date_x_pos,\n certificate_date_font_size,\n certificate_date_text_color,\n certificate_date_text_anchor as \"certificate_date_text_anchor: _\",\n certificate_locale,\n paper_size as \"paper_size: _\",\n background_svg_path,\n background_svg_file_upload_id,\n overlay_svg_path,\n overlay_svg_file_upload_id\n" - }, - "72ccb19101a587401452123425b5659747e50e8cd0693b33a914a4aa10875521": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Jsonb", "Varchar", "Varchar", "Int4"] - } - }, - "query": "\nINSERT INTO pages (\n exam_id,\n content,\n url_path,\n title,\n order_number\n )\nVALUES ($1, $2, $3, $4, $5)\nRETURNING id\n" - }, - "730d9d3474c329d22e509b14cef2eca33b1fe2c99df9bce0836a8f1f4a47a1ab": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Uuid", "Jsonb"] - } - }, - "query": "\nINSERT INTO exercise_task_submissions (\n id,\n exercise_slide_submission_id,\n exercise_slide_id,\n exercise_task_id,\n data_json\n )\nVALUES ($1, $2, $3, $4, $5)\nRETURNING id\n " - }, - "73892fd71012ea8901dcd2d447faf4f20cc2c7c6e8d3bee7c02dd772563ed1f4": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nUPDATE chapters\nSET course_module_id = $2\nWHERE id = $1\n" - }, - "73f849dd919626107c3c9a60f1e8d53cb96b408f6ab0890598a9739d357b6e32": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "term", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "definition", - "ordinal": 2, - "type_info": "Text" - } - ], - "nullable": [false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT glossary.id,\n glossary.term,\n glossary.definition\nFROM glossary\nWHERE glossary.course_id = $1\nAND deleted_at IS NULL\n" - }, - "74352f4327d0fbf9a24990bd2421fd5274a2062c5cf4ae2a2be4ec046b541d61": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "content", - "ordinal": 1, - "type_info": "Jsonb" - } - ], - "nullable": [false, false], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\n INSERT INTO pages (\n id,\n course_id,\n content,\n url_path,\n title,\n chapter_id,\n order_number,\n copied_from,\n content_search_language,\n page_language_group_id\n )\n SELECT uuid_generate_v5($1, id::text),\n $1,\n content,\n url_path,\n title,\n uuid_generate_v5($1, chapter_id::text),\n order_number,\n id,\n content_search_language,\n page_language_group_id\n FROM pages\n WHERE (course_id = $2)\n AND deleted_at IS NULL\n RETURNING id,\n content;\n " - }, - "744d6db0137323cc6398d3dacc9a6a59866b6e23798c33e118a0683f6a58cd36": { - "describe": { - "columns": [ - { - "name": "exercise_service_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "grade_endpoint_path", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "public_spec_endpoint_path", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "model_solution_spec_endpoint_path", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "user_interface_iframe_path", - "ordinal": 6, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM exercise_service_info\nWHERE exercise_service_id = $1\n " - }, - "747f27a8faee046a1f0399dfcf47117d4d3aa4435cba44fd88bb29fa6afec9b8": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "page_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "num_visitors", - "ordinal": 7, - "type_info": "Int4" - }, - { - "name": "visit_date", - "ordinal": 8, - "type_info": "Date" - } - ], - "nullable": [false, false, false, true, true, true, false, false, false], - "parameters": { - "Left": ["Date"] - } - }, - "query": "\nINSERT INTO page_visit_datum_summary_by_pages (\n course_id,\n exam_id,\n page_id,\n num_visitors,\n visit_date\n )\nSELECT course_id,\n exam_id,\n page_id,\n COUNT(DISTINCT anonymous_identifier) AS num_visitors,\n $1 AS visit_date\nFROM page_visit_datum\nWHERE deleted_at IS NULL\n AND created_at::date = $1\n AND is_bot = FALSE\nGROUP BY course_id,\n exam_id,\n page_id\n ON CONFLICT (\n course_id,\n exam_id,\n page_id,\n visit_date,\n deleted_at\n ) DO\nUPDATE\nSET num_visitors = EXCLUDED.num_visitors\nRETURNING *\n" - }, - "74ce5f6da9f0821f29c75d03f4a8f532fa1d7afd1fb3cdf2955f808206efa118": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "country_code", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "created_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 6, - "type_info": "Timestamptz" - } - ], - "nullable": [false, false, false, false, false, false, true], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nSELECT *\nFROM student_countries\nWHERE course_id = $1\nAND course_instance_id = $2\nAND deleted_at IS NULL;\n" - }, - "74d82f3b6234558038f0d4cebd6f4b05aaef172cb0b75276f9ae429f7c3c10ec": { - "describe": { - "columns": [ - { - "name": "user_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "first_name", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "last_name", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "email", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "search_helper", - "ordinal": 6, - "type_info": "Text" - } - ], - "nullable": [false, false, false, true, true, false, true], - "parameters": { - "Left": ["UuidArray"] - } - }, - "query": "\nSELECT *\nFROM user_details\nWHERE user_id IN (\n SELECT UNNEST($1::uuid [])\n )\n" - }, - "75bb3d48e36a7e1e5abc9299be4ba8557b5262870049b1b6ad09837db447d9ef": { - "describe": { - "columns": [ - { - "name": "points", - "ordinal": 0, - "type_info": "Float4" - } - ], - "nullable": [null], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nSELECT SUM(score_given) AS \"points\"\nFROM user_exercise_states\nWHERE user_id = $2\n AND exam_id = $1\n AND deleted_at IS NULL\n " - }, - "75c86b3ca30ccd7322ac790122f61827d673c3bdce6509a9c27b2b8103c012a2": { - "describe": { - "columns": [ - { - "name": "grading_progress: GradingProgress", - "ordinal": 0, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT etg.grading_progress as \"grading_progress: GradingProgress\"\nFROM exercise_task_gradings etg\n JOIN exercise_task_submissions ets ON etg.exercise_task_submission_id = ets.id\nWHERE ets.exercise_slide_submission_id = $1\n AND etg.deleted_at IS NULL\n AND ets.deleted_at IS NULL\nLIMIT 1\n " - }, - "760b3239a34d7d9c67aa58dba9d5469f5aeaf02419916a4eb4db8970529ca907": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_module_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "completion_date", - "ordinal": 7, - "type_info": "Timestamptz" - }, - { - "name": "completion_registration_attempt_date", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "completion_language", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "eligible_for_ects", - "ordinal": 10, - "type_info": "Bool" - }, - { - "name": "email", - "ordinal": 11, - "type_info": "Varchar" - }, - { - "name": "grade", - "ordinal": 12, - "type_info": "Int4" - }, - { - "name": "passed", - "ordinal": 13, - "type_info": "Bool" - }, - { - "name": "course_instance_id", - "ordinal": 14, - "type_info": "Uuid" - }, - { - "name": "prerequisite_modules_completed", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "completion_granter_user_id", - "ordinal": 16, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - false, - false, - false, - true, - false, - false, - false, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nSELECT *\nFROM course_module_completions\nWHERE course_module_id = $1\n AND course_instance_id = $2\n AND user_id = $3\n AND completion_granter_user_id IS NULL\n AND deleted_at IS NULL\n " - }, - "76489a57347d862ae4f2648bf634db9387d07d03aa2351e365f1be70c8324412": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE glossary\nSET deleted_at = now()\nWHERE id = $1\n" - }, - "7666244a0e4b2cffbf384c765c8b51635d7e9800fb7329f7b8fbef6dc3f7361c": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_module_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "completion_date", - "ordinal": 7, - "type_info": "Timestamptz" - }, - { - "name": "completion_registration_attempt_date", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "completion_language", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "eligible_for_ects", - "ordinal": 10, - "type_info": "Bool" - }, - { - "name": "email", - "ordinal": 11, - "type_info": "Varchar" - }, - { - "name": "grade", - "ordinal": 12, - "type_info": "Int4" - }, - { - "name": "passed", - "ordinal": 13, - "type_info": "Bool" - }, - { - "name": "course_instance_id", - "ordinal": 14, - "type_info": "Uuid" - }, - { - "name": "prerequisite_modules_completed", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "completion_granter_user_id", - "ordinal": 16, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - false, - false, - false, - true, - false, - false, - false, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM course_module_completions\nWHERE user_id = $1\n AND deleted_at IS NULL\n " - }, - "769c3c707fb5eec0d42419aa8fe9a145fb258c4e256d3d6954919f47bec172e4": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "page_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "path", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "mime_type", - "ordinal": 5, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM page_audio_files\nWHERE id = $1\nAND deleted_at IS NULL;\n" - }, - "76ce92c1173e95b850a803ae754c1a94af1c02eb4e5e553df48901d90eb6e923": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "upstream_id", - "ordinal": 4, - "type_info": "Int4" - }, - { - "name": "email_domain", - "ordinal": 5, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, true, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM users\nWHERE id = $1\n " - }, - "76d4f28b04383543bc7dbee4815ab0c0d63ded052387db1dfeeaae943e02ea77": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "peer_reviews_to_give", - "ordinal": 6, - "type_info": "Int4" - }, - { - "name": "peer_reviews_to_receive", - "ordinal": 7, - "type_info": "Int4" - }, - { - "name": "accepting_threshold", - "ordinal": 8, - "type_info": "Float4" - }, - { - "name": "accepting_strategy: _", - "ordinal": 9, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "automatically_accept_or_reject_by_average", - "automatically_accept_or_manual_review_by_average", - "manual_review_everything" - ] - }, - "name": "peer_review_accepting_strategy" - } - } - } - ], - "nullable": [false, false, false, true, false, true, false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n deleted_at,\n course_id,\n exercise_id,\n peer_reviews_to_give,\n peer_reviews_to_receive,\n accepting_threshold,\n accepting_strategy AS \"accepting_strategy: _\"\nFROM peer_review_configs\nWHERE id = $1\n AND deleted_at IS NULL\n " - }, - "7810aad05ddd12ee79dedff5518fd93a8314e4e6e39b81142b1f3da1bc56cd6a": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 7, - "type_info": "Timestamptz" - }, - { - "name": "score_given", - "ordinal": 8, - "type_info": "Float4" - }, - { - "name": "grading_progress: _", - "ordinal": 9, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - }, - { - "name": "activity_progress: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": ["initialized", "started", "in-progress", "submitted", "completed"] - }, - "name": "activity_progress" - } - } - }, - { - "name": "reviewing_stage: _", - "ordinal": 11, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "not_started", - "peer_review", - "self_review", - "waiting_for_peer_reviews", - "waiting_for_manual_grading", - "reviewed_and_locked" - ] - }, - "name": "reviewing_stage" - } - } - }, - { - "name": "selected_exercise_slide_id", - "ordinal": 12, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - false, - false, - true, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nSELECT id,\n user_id,\n exercise_id,\n course_instance_id,\n exam_id,\n created_at,\n updated_at,\n deleted_at,\n score_given,\n grading_progress AS \"grading_progress: _\",\n activity_progress AS \"activity_progress: _\",\n reviewing_stage AS \"reviewing_stage: _\",\n selected_exercise_slide_id\nFROM user_exercise_states\nWHERE user_id = $1\n AND exercise_id = $2\n AND (course_instance_id = $3 OR exam_id = $4)\n AND deleted_at IS NULL\n" - }, - "78193a38be835dbfb19c07ba153ea3e661127f7e718e1d3db9a717e01312b7a7": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "referrer", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "utm_source", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "utm_medium", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "utm_campaign", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "utm_term", - "ordinal": 10, - "type_info": "Varchar" - }, - { - "name": "utm_content", - "ordinal": 11, - "type_info": "Varchar" - }, - { - "name": "num_visitors", - "ordinal": 12, - "type_info": "Int4" - }, - { - "name": "visit_date", - "ordinal": 13, - "type_info": "Date" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - true, - true, - true, - true, - true, - true, - true, - false, - false - ], - "parameters": { - "Left": ["Date"] - } - }, - "query": "\nINSERT INTO page_visit_datum_summary_by_courses (\n course_id,\n exam_id,\n referrer,\n utm_source,\n utm_medium,\n utm_campaign,\n utm_term,\n utm_content,\n num_visitors,\n visit_date\n )\nSELECT\n course_id,\n exam_id,\n referrer,\n utm_source,\n utm_medium,\n utm_campaign,\n utm_term,\n utm_content,\n COUNT(DISTINCT anonymous_identifier) AS num_visitors,\n $1 AS visit_date\nFROM page_visit_datum\nWHERE deleted_at IS NULL\n AND created_at::date = $1\n AND is_bot = FALSE\nGROUP BY course_id,\n exam_id,\n referrer,\n utm_source,\n utm_medium,\n utm_campaign,\n utm_term,\n utm_content\n ON CONFLICT (\n course_id,\n exam_id,\n referrer,\n visit_date,\n utm_source,\n utm_medium,\n utm_campaign,\n utm_term,\n utm_content,\n deleted_at\n ) DO\nUPDATE\nSET num_visitors = EXCLUDED.num_visitors\nRETURNING *\n" - }, - "78a6905e84ce0cdd8ac41e9fb923260b69f24e946cfe2efdad7ab15084f1658c": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "color", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "course_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "deleted_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "chapter_image_path", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "chapter_number", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "front_page_id", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "opens_at", - "ordinal": 10, - "type_info": "Timestamptz" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "deadline", - "ordinal": 12, - "type_info": "Timestamptz" - }, - { - "name": "course_module_id", - "ordinal": 13, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - false, - true, - false, - true, - true, - false, - true, - true, - true, - true, - false - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n name,\n color,\n course_id,\n deleted_at,\n chapter_image_path,\n chapter_number,\n front_page_id,\n opens_at,\n copied_from,\n deadline,\n course_module_id\nFROM chapters\nWHERE course_id = $1\n AND deleted_at IS NULL;\n" - }, - "7a76df8c10629d8afcfc6863e2ada85d9108c74ccae8ffe4f5e2fd7c6a36432a": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["UuidArray"] - } - }, - "query": "\nUPDATE exercise_slides\nSET deleted_at = now()\nWHERE exercise_id = ANY($1)\nRETURNING id;\n " - }, - "7a7a56fe873db6427ef31e355cd69c6cd2353e6e8644bba0fa9ff3264e78f1af": { - "describe": { - "columns": [ - { - "name": "course_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "course_name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "course_slug", - "ordinal": 2, - "type_info": "Varchar" - }, - { - "name": "organization_slug", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "organization_name", - "ordinal": 4, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT courses.id as course_id,\n courses.name as course_name,\n courses.slug as course_slug,\n organizations.slug as organization_slug,\n organizations.name as organization_name\nFROM courses\n JOIN organizations ON (courses.organization_id = organizations.id)\nWHERE courses.id = $1;\n " - }, - "7ac092aa73f25fe5f40a136af9ce3f9ff9b370f2b118be04b49c3f4a5fa8dafd": { - "describe": { - "columns": [ - { - "name": "course_module_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "attempted_exercises", - "ordinal": 1, - "type_info": "Int8" - }, - { - "name": "score_given", - "ordinal": 2, - "type_info": "Float4" - } - ], - "nullable": [false, null, null], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nSELECT chapters.course_module_id,\n COUNT(ues.exercise_id) AS attempted_exercises,\n COALESCE(SUM(ues.score_given), 0) AS score_given\nFROM user_exercise_states AS ues\n LEFT JOIN exercises ON (ues.exercise_id = exercises.id)\n LEFT JOIN chapters ON (exercises.chapter_id = chapters.id)\nWHERE ues.course_instance_id = $1\n AND ues.activity_progress IN ('completed', 'submitted')\n AND ues.user_id = $2\n AND ues.deleted_at IS NULL\nGROUP BY chapters.course_module_id;\n " - }, - "7b20a0607bcc9030593d45c58002b5adf794d5956f57c4262ef3868b443e2a35": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nUPDATE exercise_task_regrading_submissions\nSET grading_after_regrading = $1\nWHERE id = $2\n" - }, - "7b2522da4b0600f492929fe3c14e8e0bed11bc4854800297ed5952f4456418f0": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "user_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "receiving_peer_reviews_exercise_slide_submission_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "received_enough_peer_reviews", - "ordinal": 8, - "type_info": "Bool" - }, - { - "name": "peer_review_priority", - "ordinal": 9, - "type_info": "Int4" - }, - { - "name": "removed_from_queue_for_unusual_reason", - "ordinal": 10, - "type_info": "Bool" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false, false, false], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nSELECT *\nFROM peer_review_queue_entries\nWHERE user_id = $1\n AND course_instance_id = $2\n AND deleted_at IS NULL\n " - }, - "7bddd472988845dad2057a8bb70d570d37b68efc29a61be4c01e7c589a398091": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nUPDATE course_module_completion_certificates\nSET deleted_at = now()\nWHERE user_id = $1\nAND course_instance_id = $2\nAND deleted_at IS NULL\n" - }, - "7c2cc58d398cf1584bac88ff9c7786d687b3909482e8d3245ea263cb54ede227": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Uuid", - "Uuid", - "Uuid", - "Timestamptz", - "Timestamptz", - "Varchar", - "Bool", - "Varchar", - "Int4", - "Bool", - "Uuid" - ] - } - }, - "query": "\nINSERT INTO course_module_completions (\n id,\n course_id,\n course_instance_id,\n course_module_id,\n user_id,\n completion_date,\n completion_registration_attempt_date,\n completion_language,\n eligible_for_ects,\n email,\n grade,\n passed,\n completion_granter_user_id\n )\nVALUES (\n $1,\n $2,\n $3,\n $4,\n $5,\n $6,\n $7,\n $8,\n $9,\n $10,\n $11,\n $12,\n $13\n )\nRETURNING id\n " - }, - "7c5be873ef8c65f4416c921b7a2ce606eb3c20208b8ef496db93c6ae57743f25": { - "describe": { - "columns": [ - { - "name": "id!", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "first_name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "last_name", - "ordinal": 2, - "type_info": "Varchar" - }, - { - "name": "email", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "role!: UserRole", - "ordinal": 4, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "admin", - "assistant", - "teacher", - "reviewer", - "course_or_exam_creator", - "material_viewer", - "teaching_and_learning_services" - ] - }, - "name": "user_role" - } - } - } - ], - "nullable": [false, true, true, false, false], - "parameters": { - "Left": [] - } - }, - "query": "\nSELECT users.id AS \"id!\",\n user_details.first_name,\n user_details.last_name,\n user_details.email,\n role AS \"role!: UserRole\"\nFROM users\n JOIN roles ON users.id = roles.user_id\n JOIN user_details ON users.id = user_details.user_id\nWHERE is_global = TRUE\nAND roles.deleted_at IS NULL\n" - }, - "7e800a24c812e30e18d4b632fda39b8a227e56230fa70de8108091c0e31ba061": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Varchar", "Varchar", "Varchar", "Uuid"] - } - }, - "query": "\nINSERT INTO file_uploads(path, name, mime, uploaded_by_user)\nVALUES ($1, $2, $3, $4)\nRETURNING id\n" - }, - "7e8a1529d1b3f6ab629888c8382b9d78c79a31e3c71271a44e43698ad3335791": { - "describe": { - "columns": [ - { - "name": "exercise_service_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "grade_endpoint_path", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "public_spec_endpoint_path", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "model_solution_spec_endpoint_path", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "user_interface_iframe_path", - "ordinal": 6, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, false, false, false, false], - "parameters": { - "Left": ["Uuid", "Varchar", "Varchar", "Varchar", "Varchar"] - } - }, - "query": "\nINSERT INTO exercise_service_info(\n exercise_service_id,\n user_interface_iframe_path,\n grade_endpoint_path,\n public_spec_endpoint_path,\n model_solution_spec_endpoint_path\n )\nVALUES ($1, $2, $3, $4, $5)\nON CONFLICT(exercise_service_id) DO UPDATE\nSET user_interface_iframe_path = $2,\n grade_endpoint_path = $3,\n public_spec_endpoint_path = $4,\n model_solution_spec_endpoint_path = $5\nRETURNING *\n " - }, - "7e93af46e399fa11ea564bc1a517af1315b252b98c06760d90e22e261fcbb747": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "first_name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "last_name", - "ordinal": 2, - "type_info": "Varchar" - }, - { - "name": "email", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "role: UserRole", - "ordinal": 4, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "admin", - "assistant", - "teacher", - "reviewer", - "course_or_exam_creator", - "material_viewer", - "teaching_and_learning_services" - ] - }, - "name": "user_role" - } - } - } - ], - "nullable": [false, true, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT users.id,\n user_details.first_name,\n user_details.last_name,\n user_details.email,\n role AS \"role: UserRole\"\nFROM users\n JOIN roles ON users.id = roles.user_id\n JOIN user_details ON users.id = user_details.user_id\nWHERE roles.exam_id = $1\nAND roles.deleted_at IS NULL\n" - }, - "7f0db66e0632c16cf13fa9f5596374c60a150cb186968575fc86c49bbbb9b7c8": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "research_consent_form_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "question", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "created_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 6, - "type_info": "Timestamptz" - } - ], - "nullable": [false, false, false, false, false, false, true], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Varchar"] - } - }, - "query": "\nINSERT INTO course_specific_consent_form_questions (\n id,\n course_id,\n research_consent_form_id,\n question\n )\nVALUES ($1, $2, $3, $4) ON CONFLICT (id)\nDO UPDATE SET question = $4\nRETURNING *\n" - }, - "7f1cb8b1bbc4ed001fa4fc6dcbbc90e30e0d509e64de0d75461ae1c82a285268": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Timestamptz", "Uuid"] - } - }, - "query": "UPDATE chapters SET opens_at = $1 WHERE id = $2" - }, - "80712b4361ac05ee1fe5ac3650cc206e90e1675c1e7c1b1ab39f730aa77987b9": { - "describe": { - "columns": [ - { - "name": "id!", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "answer_required!", - "ordinal": 1, - "type_info": "Bool" - }, - { - "name": "order_number!", - "ordinal": 2, - "type_info": "Int4" - }, - { - "name": "peer_review_config_id!", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "question!", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "question_type!: _", - "ordinal": 5, - "type_info": { - "Custom": { - "kind": { - "Enum": ["essay", "scale"] - }, - "name": "peer_review_question_type" - } - } - } - ], - "nullable": [false, false, false, false, false, false], - "parameters": { - "Left": ["UuidArray"] - } - }, - "query": "\nSELECT id AS \"id!\",\n answer_required AS \"answer_required!\",\n order_number AS \"order_number!\",\n peer_review_config_id AS \"peer_review_config_id!\",\n question AS \"question!\",\n question_type AS \"question_type!: _\"\nFROM peer_review_questions\nWHERE id IN (\n SELECT UNNEST($1::uuid [])\n )\n AND deleted_at is null;\n " - }, - "80dfad0eaa63b0a6f86662abf8ca7d8ecfdda580f02d58f56d6ac6ec79e3d943": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE repository_exercises\nSET deleted_at = now()\nWHERE repository_id = $1\nAND deleted_at IS NULL\nRETURNING id\n" - }, - "814b64d8d02dc308fe81f4d5608f698d8dfb5ea72049fd321754feb1c1104626": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "slug", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "public_url", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "internal_url", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "max_reprocessing_submissions_at_once", - "ordinal": 8, - "type_info": "Int4" - } - ], - "nullable": [false, false, false, true, false, false, false, true, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE exercise_services\n SET deleted_at = now()\nWHERE id = $1\n RETURNING *\n " - }, - "817fdeb83f68f4e75de5d6f3f2450064bde871114232f113c7f7a6900ac06b25": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "organization_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "deleted_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "slug", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "content_search_language", - "ordinal": 7, - "type_info": "Text" - }, - { - "name": "language_code", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "copied_from", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "course_language_group_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "description", - "ordinal": 11, - "type_info": "Text" - }, - { - "name": "is_draft", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "is_test_mode", - "ordinal": 13, - "type_info": "Bool" - }, - { - "name": "base_module_completion_requires_n_submodule_completions", - "ordinal": 14, - "type_info": "Int4" - } - ], - "nullable": [ - false, - false, - false, - false, - false, - true, - false, - null, - false, - true, - false, - true, - false, - false, - false - ], - "parameters": { - "Left": ["Uuid", "Uuid", "Int8", "Int8"] - } - }, - "query": "\nSELECT courses.id,\n courses.name,\n courses.created_at,\n courses.updated_at,\n courses.organization_id,\n courses.deleted_at,\n courses.slug,\n courses.content_search_language::text,\n courses.language_code,\n courses.copied_from,\n courses.course_language_group_id,\n courses.description,\n courses.is_draft,\n courses.is_test_mode,\n base_module_completion_requires_n_submodule_completions\nFROM courses\nWHERE courses.organization_id = $1\n AND (\n courses.is_draft IS FALSE\n OR EXISTS (\n SELECT id\n FROM roles\n WHERE user_id = $2\n AND (\n course_id = courses.id\n OR roles.organization_id = courses.organization_id\n OR roles.is_global IS TRUE\n )\n )\n )\n AND courses.deleted_at IS NULL\nORDER BY courses.name\nLIMIT $3 OFFSET $4;\n" - }, - "8198f7adf5e5c8c71a7d632e7ccc1e8d139d30af2e410b57d710321fad7e18ba": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "order_number", - "ordinal": 5, - "type_info": "Int4" - } - ], - "nullable": [false, false, false, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM exercise_slides\nWHERE exercise_id = $1\n AND deleted_at IS NULL\nORDER BY random()\nLIMIT 1;\n " - }, - "82b9f016917f5bf78f6228b0ccf88dc14850a4d18fbb80a334d8ca7d55b6e125": { - "describe": { - "columns": [ - { - "name": "path", - "ordinal": 0, - "type_info": "Varchar" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE file_uploads\nSET deleted_at = now()\nWHERE id = $1\nRETURNING path\n" - }, - "82ffa049e18cf6c93894bae082e6668116f2c0587811368fb1d57edb6d4b6591": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_module_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "completion_date", - "ordinal": 7, - "type_info": "Timestamptz" - }, - { - "name": "completion_registration_attempt_date", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "completion_language", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "eligible_for_ects", - "ordinal": 10, - "type_info": "Bool" - }, - { - "name": "email", - "ordinal": 11, - "type_info": "Varchar" - }, - { - "name": "grade", - "ordinal": 12, - "type_info": "Int4" - }, - { - "name": "passed", - "ordinal": 13, - "type_info": "Bool" - }, - { - "name": "course_instance_id", - "ordinal": 14, - "type_info": "Uuid" - }, - { - "name": "prerequisite_modules_completed", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "completion_granter_user_id", - "ordinal": 16, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - false, - false, - false, - true, - false, - false, - false, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nSELECT *\nFROM course_module_completions\nWHERE course_module_id = $1\n AND course_instance_id = $2\n AND user_id = $3\n AND deleted_at IS NULL\n " - }, - "8359aee706ee7461e8bf4896f78a9bbde8cf436a8cd497797964868173c5df09": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "url", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "course_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "status: ExerciseRepositoryStatus", - "ordinal": 4, - "type_info": { - "Custom": { - "kind": { - "Enum": ["pending", "success", "failure"] - }, - "name": "exercise_repository_status" - } - } - }, - { - "name": "error_message", - "ordinal": 5, - "type_info": "Text" - } - ], - "nullable": [false, false, true, true, false, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n url,\n course_id,\n exam_id,\n status AS \"status: ExerciseRepositoryStatus\",\n error_message\nFROM exercise_repositories\nWHERE id = $1\n AND deleted_at IS NULL\n" - }, - "8418000fb3d50f52e42766c3884416520d434ea9588248e26c3b4fbfb1abae90": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "content", - "ordinal": 4, - "type_info": "Jsonb" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "subject", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "exercise_completions_threshold", - "ordinal": 7, - "type_info": "Int4" - }, - { - "name": "points_threshold", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "course_instance_id", - "ordinal": 9, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, true, true, false, true, true, true, false], - "parameters": { - "Left": ["Varchar", "Varchar", "Jsonb", "Int4", "Int4", "Uuid"] - } - }, - "query": "\nUPDATE email_templates\nSET name = $1,\n subject = $2,\n content = $3,\n exercise_completions_threshold = $4,\n points_threshold = $5\nWHERE id = $6\nRETURNING *\n " - }, - "844761ffa3828dbb058335aabe21117aef31f4576c2ac52c49765582ae5c2db5": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "user_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "receiving_peer_reviews_exercise_slide_submission_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "received_enough_peer_reviews", - "ordinal": 8, - "type_info": "Bool" - }, - { - "name": "peer_review_priority", - "ordinal": 9, - "type_info": "Int4" - }, - { - "name": "removed_from_queue_for_unusual_reason", - "ordinal": 10, - "type_info": "Bool" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false, false, false], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Int4", "Uuid", "Bool"] - } - }, - "query": "\nINSERT INTO peer_review_queue_entries (\n user_id,\n exercise_id,\n course_instance_id,\n peer_review_priority,\n receiving_peer_reviews_exercise_slide_submission_id,\n received_enough_peer_reviews\n )\nVALUES ($1, $2, $3, $4, $5, $6) ON CONFLICT (user_id, exercise_id, course_instance_id, deleted_at) DO\nUPDATE\nSET peer_review_priority = $4\nRETURNING *\n " - }, - "847259eb536964b60b3e3f63e8f17953c122882180424f85dc800e6eab2eca2f": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\n\nUPDATE course_module_completions\nSET deleted_at = now()\nWHERE id = $1\n " - }, - "84c2556e05ea8609772e747e978f9ee3277ed20cf0b7044f74953e4a2735c9f2": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "peer_review_config_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "order_number", - "ordinal": 2, - "type_info": "Int4" - }, - { - "name": "question", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "question_type: _", - "ordinal": 4, - "type_info": { - "Custom": { - "kind": { - "Enum": ["essay", "scale"] - }, - "name": "peer_review_question_type" - } - } - }, - { - "name": "answer_required", - "ordinal": 5, - "type_info": "Bool" - } - ], - "nullable": [false, false, false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT prq.id as id,\n prq.peer_review_config_id as peer_review_config_id,\n prq.order_number as order_number,\n prq.question as question,\n prq.question_type AS \"question_type: _\",\n prq.answer_required as answer_required\nfrom pages p\n join exercises e on p.id = e.page_id\n join peer_review_configs pr on e.id = pr.exercise_id\n join peer_review_questions prq on pr.id = prq.peer_review_config_id\nwhere p.id = $1\n AND p.deleted_at IS NULL\n AND e.deleted_at IS NULL\n AND pr.deleted_at IS NULL\n AND prq.deleted_at IS NULL;\n " - }, - "84ce2f6c8172782efc0ae32aa4f1920599146e4c32141401c8a4a8f74a58390b": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "color", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "course_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "deleted_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "chapter_image_path", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "chapter_number", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "front_page_id", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "opens_at", - "ordinal": 10, - "type_info": "Timestamptz" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "deadline", - "ordinal": 12, - "type_info": "Timestamptz" - }, - { - "name": "course_module_id", - "ordinal": 13, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - false, - true, - false, - true, - true, - false, - true, - true, - true, - true, - false - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n name,\n color,\n course_id,\n deleted_at,\n chapter_image_path,\n chapter_number,\n front_page_id,\n opens_at,\n copied_from,\n deadline,\n course_module_id\nFROM chapters\nWHERE course_id = (SELECT course_id FROM course_instances WHERE id = $1)\n AND deleted_at IS NULL;\n" - }, - "84ed121289ad070f6f78698fbf408aff79602d7c059567fc5c94c3f85f777a19": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 7, - "type_info": "Timestamptz" - }, - { - "name": "score_given", - "ordinal": 8, - "type_info": "Float4" - }, - { - "name": "grading_progress: _", - "ordinal": 9, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - }, - { - "name": "activity_progress: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": ["initialized", "started", "in-progress", "submitted", "completed"] - }, - "name": "activity_progress" - } - } - }, - { - "name": "reviewing_stage: _", - "ordinal": 11, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "not_started", - "peer_review", - "self_review", - "waiting_for_peer_reviews", - "waiting_for_manual_grading", - "reviewed_and_locked" - ] - }, - "name": "reviewing_stage" - } - } - }, - { - "name": "selected_exercise_slide_id", - "ordinal": 12, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - false, - false, - true, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": [ - { - "Custom": { - "kind": { - "Enum": [ - "not_started", - "peer_review", - "self_review", - "waiting_for_peer_reviews", - "waiting_for_manual_grading", - "reviewed_and_locked" - ] - }, - "name": "reviewing_stage" - } - }, - "Uuid" - ] - } - }, - "query": "\nUPDATE user_exercise_states\nSET reviewing_stage = $1\nWHERE id = $2\n AND deleted_at IS NULL\nRETURNING id,\n user_id,\n exercise_id,\n course_instance_id,\n exam_id,\n created_at,\n updated_at,\n deleted_at,\n score_given,\n grading_progress AS \"grading_progress: _\",\n activity_progress AS \"activity_progress: _\",\n reviewing_stage AS \"reviewing_stage: _\",\n selected_exercise_slide_id\n " - }, - "84f4e609ee774821c19ffe693d79e6175066c745aa7ac8a3d947cd7ef04fdc0e": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": [ - { - "Custom": { - "kind": { - "Enum": [ - "can-add-points-but-cannot-remove-points", - "can-add-points-and-can-remove-points" - ] - }, - "name": "user_points_update_strategy" - } - } - ] - } - }, - "query": "\nINSERT INTO regradings (user_points_update_strategy)\nVALUES ($1)\nRETURNING id\n " - }, - "85d460d9a14e12b66d387b3cdf0caf930e42725cd706c38a85d02613ae14130e": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "order_number", - "ordinal": 5, - "type_info": "Int4" - } - ], - "nullable": [false, false, false, true, false, false], - "parameters": { - "Left": [] - } - }, - "query": "\nSELECT *\nFROM exercise_slides\nWHERE deleted_at IS NULL;\n " - }, - "85e75fc324178be2da3671efdfa3145a7cfbb7ef16aa52539fc9fd71b955a461": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["UuidArray"] - } - }, - "query": "\nUPDATE peer_review_configs\nSET deleted_at = now()\nWHERE exercise_id = ANY ($1)\nAND deleted_at IS NULL\nRETURNING id;\n " - }, - "86e4f2ed06a5d71757103eb84619f9092cee9e61b78d74822be98736c19849c0": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "peer_review_config_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "order_number", - "ordinal": 5, - "type_info": "Int4" - }, - { - "name": "question", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "question_type: _", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": ["essay", "scale"] - }, - "name": "peer_review_question_type" - } - } - }, - { - "name": "answer_required", - "ordinal": 8, - "type_info": "Bool" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n deleted_at,\n peer_review_config_id,\n order_number,\n question,\n question_type AS \"question_type: _\",\n answer_required\nFROM peer_review_questions\nWHERE peer_review_config_id = $1\n AND deleted_at IS NULL;\n " - }, - "874ce76ed10bd237e9bd8382db06045c38f85c1f262392eb79f46034a374e40e": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": [] - } - }, - "query": "\nDELETE FROM offered_answers_to_peer_review_temporary\nWHERE created_at < now() - '1 hour'::interval\n" - }, - "886ce1402b7ffe6cffd8db5fb2e0e6486d9aa6ba52db7183f76d009069ade7be": { - "describe": { - "columns": [ - { - "name": "exercise_task_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_exercise_slide_state_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "score_given", - "ordinal": 5, - "type_info": "Float4" - }, - { - "name": "grading_progress: _", - "ordinal": 6, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - } - ], - "nullable": [false, false, false, false, true, true, false], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Float4", - { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - ] - } - }, - "query": "\nINSERT INTO user_exercise_task_states (\n exercise_task_id,\n user_exercise_slide_state_id,\n score_given,\n grading_progress\n )\nVALUES ($1, $2, $3, $4) ON CONFLICT (exercise_task_id, user_exercise_slide_state_id) DO\nUPDATE\nSET deleted_at = NULL,\n score_given = $3,\n grading_progress = $4\nRETURNING exercise_task_id,\n user_exercise_slide_state_id,\n created_at,\n updated_at,\n deleted_at,\n score_given,\n grading_progress as \"grading_progress: _\"\n " - }, - "88890869dabe25130451185ec231260f8cdc6121649923e7209346dded7d0014": { - "describe": { - "columns": [ - { - "name": "organization_id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "SELECT organization_id FROM courses WHERE id = $1" - }, - "89089e691171de510f8629313e0ed9cfd0b6908f4fa30e826480a2eb97168d16": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "user_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "receiving_peer_reviews_exercise_slide_submission_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "received_enough_peer_reviews", - "ordinal": 8, - "type_info": "Bool" - }, - { - "name": "peer_review_priority", - "ordinal": 9, - "type_info": "Int4" - }, - { - "name": "removed_from_queue_for_unusual_reason", - "ordinal": 10, - "type_info": "Bool" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false, false, false], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nSELECT *\nFROM peer_review_queue_entries\nWHERE receiving_peer_reviews_exercise_slide_submission_id = $1\n AND course_instance_id = $2\n AND deleted_at IS NULL\n " - }, - "8970926da64c069bb6e0e63bcf3fbfbf6b0c53fb9a027464fbeddcbfca56a727": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "UPDATE roles set deleted_at = now() WHERE user_id = $1" - }, - "8996c28a928545504a3741a926ceb7831d752406f9f3c6871854343bb7b1aa4b": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "order_number", - "ordinal": 5, - "type_info": "Int4" - } - ], - "nullable": [false, false, false, true, false, false], - "parameters": { - "Left": ["Uuid", "Int4"] - } - }, - "query": "\nINSERT INTO exercise_slides (exercise_id, order_number)\nVALUES ($1, $2)\nRETURNING *;\n " - }, - "8a468e0f7e88e4f1c700b5679eb18976c9b2bacbd1b47901cf2ae4e71f2e4b11": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "peer_reviews_to_give", - "ordinal": 3, - "type_info": "Int4" - }, - { - "name": "peer_reviews_to_receive", - "ordinal": 4, - "type_info": "Int4" - }, - { - "name": "accepting_threshold", - "ordinal": 5, - "type_info": "Float4" - }, - { - "name": "accepting_strategy:_", - "ordinal": 6, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "automatically_accept_or_reject_by_average", - "automatically_accept_or_manual_review_by_average", - "manual_review_everything" - ] - }, - "name": "peer_review_accepting_strategy" - } - } - } - ], - "nullable": [false, false, true, false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n course_id,\n exercise_id,\n peer_reviews_to_give,\n peer_reviews_to_receive,\n accepting_threshold,\n accepting_strategy AS \"accepting_strategy:_\"\nFROM peer_review_configs\nWHERE id = $1;\n " - }, - "8aa2929ece3e236aa14649c45da2a6d7fe15787fda833ad97628c86b001fb790": { - "describe": { - "columns": [ - { - "name": "count", - "ordinal": 0, - "type_info": "Int8" - } - ], - "nullable": [null], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT\n COUNT(DISTINCT c.id) as count\nFROM courses as c\n LEFT JOIN course_instances as ci on c.id = ci.course_id\nWHERE\n c.organization_id = $1 AND\n ci.starts_at < NOW() AND ci.ends_at > NOW() AND\n c.deleted_at IS NULL AND ci.deleted_at IS NULL;\n " - }, - "8b433b1a652c4da0b1a256a815450e64391212687859fe76e61417e90abc9204": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "chapter_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "url_path", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "title", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "deleted_at", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "content", - "ordinal": 9, - "type_info": "Jsonb" - }, - { - "name": "order_number", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "hidden", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "page_language_group_id", - "ordinal": 13, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - true, - false, - false, - true, - false, - false, - true, - false, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT pages.id,\n pages.created_at,\n pages.updated_at,\n pages.course_id,\n pages.exam_id,\n pages.chapter_id,\n pages.url_path,\n pages.title,\n pages.deleted_at,\n pages.content,\n pages.order_number,\n pages.copied_from,\n pages.hidden,\n pages.page_language_group_id\nFROM pages\nWHERE exam_id = $1\nAND pages.deleted_at IS NULL\n" - }, - "8ccdf9e32ae384f6124487d607971e09c002db1bbc7ba5fa895cdd58c919c76f": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE exercises\nSET deleted_at = now()\nWHERE page_id = $1\nRETURNING id;\n " - }, - "8db74ac0f9b12b45233fec8e0bf8e9f76d90085c4a8c766f784a1aca3c370662": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": [ - { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - }, - "Uuid" - ] - } - }, - "query": "\nUPDATE exercise_task_gradings\nSET grading_progress = $1\nWHERE id = $2\n" - }, - "8e4790d294f0967409acff05c29f7c84dc45905de0e2ee90def15c1ad9c16704": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "repository_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "part", - "ordinal": 2, - "type_info": "Varchar" - }, - { - "name": "name", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "repository_url", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "checksum", - "ordinal": 5, - "type_info": "Bytea" - }, - { - "name": "download_url", - "ordinal": 6, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT re.id,\ner.id AS repository_id,\n re.part,\n re.name,\n er.url AS repository_url,\n re.checksum,\n re.download_url\nFROM repository_exercises AS re\nJOIN exercise_repositories AS er ON er.id = re.repository_id\nWHERE er.course_id = $1\nAND re.deleted_at IS NULL\nand er.deleted_at IS NULL\n" - }, - "8ea13e0a449c89ff9814eb6c5b313b7959a2f8a9c37b3d649c2579e114e4030c": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Uuid", - "Varchar", - "Varchar", - "Varchar", - "Varchar", - "Varchar", - "Varchar", - "Varchar", - "Bool", - "Varchar", - "Varchar", - "Varchar", - "Varchar", - "Varchar", - "Varchar" - ] - } - }, - "query": "\nINSERT INTO page_visit_datum (\n course_id,\n exam_id,\n page_id,\n country,\n browser,\n browser_version,\n operating_system,\n operating_system_version,\n device_type,\n referrer,\n is_bot,\n utm_source,\n utm_medium,\n utm_campaign,\n utm_term,\n utm_content,\n anonymous_identifier\n )\nVALUES (\n $1,\n $2,\n $3,\n $4,\n $5,\n $6,\n $7,\n $8,\n $9,\n $10,\n $11,\n $12,\n $13,\n $14,\n $15,\n $16,\n $17\n )\nRETURNING id\n" - }, - "8ed2051947d490a69f8ce2851f2c790d6912cb23c1001c7d3b7e1f61bb1a67cb": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "chapter_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "url_path", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "title", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "deleted_at", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "content", - "ordinal": 9, - "type_info": "Jsonb" - }, - { - "name": "order_number", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "hidden", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "page_language_group_id", - "ordinal": 13, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - true, - false, - false, - true, - false, - false, - true, - false, - true - ], - "parameters": { - "Left": ["Uuid", "Uuid", "Jsonb", "Varchar", "Varchar", "Int4", "Uuid", "Varchar", "Uuid"] - } - }, - "query": "\nINSERT INTO pages(\n course_id,\n exam_id,\n content,\n url_path,\n title,\n order_number,\n chapter_id,\n content_search_language,\n page_language_group_id\n )\nVALUES($1, $2, $3, $4, $5, $6, $7, $8, $9)\nRETURNING id,\n created_at,\n updated_at,\n course_id,\n exam_id,\n chapter_id,\n url_path,\n title,\n deleted_at,\n content,\n order_number,\n copied_from,\n pages.hidden,\n page_language_group_id\n " - }, - "8eec12a84339d2b51c3a819162f81860ee76d77b461ef26fe90d5b85621fca4a": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid", "Varchar", "Varchar", "Bytea", "Varchar"] - } - }, - "query": "\nINSERT INTO repository_exercises (\n id,\n repository_id,\n part,\n name,\n checksum,\n download_url\n)\nVALUES ($1, $2, $3, $4, $5, $6)\n" - }, - "9042f4a78140ea8061a5d2f7ea3f6d8ae53b484871e869ebd0dd4cb31da6d9fb": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Int4", "Uuid"] - } - }, - "query": "UPDATE pages\nSET order_number = floor(random() * (2000000 -200000 + 1) + 200000)\nWHERE pages.order_number = $1\n AND pages.chapter_id = $2\n AND deleted_at IS NULL" - }, - "91108a6b2d9e01b67ac3ad7ce990ed65d9f8f3b092afeb69ac85e077578fe3ce": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE peer_review_queue_entries\nSET deleted_at = now()\nWHERE receiving_peer_reviews_exercise_slide_submission_id = $1\nAND deleted_at is NULL\n " - }, - "9113a9bb47f4075916056074ed25a1138e57765d6020b94687a8fee84934d501": { - "describe": { - "columns": [ - { - "name": "count", - "ordinal": 0, - "type_info": "Int8" - } - ], - "nullable": [null], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nSELECT COUNT(*) AS count\nFROM peer_review_submissions\nWHERE user_id = $1\n AND exercise_id = $2\n AND course_instance_id = $3\n AND deleted_at IS NULL\n " - }, - "914c27018fed1236546e255830df750e48467b84068621c48f06cfb9a50aa71d": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": [ - "Uuid", - { - "Custom": { - "kind": { - "Enum": [ - "admin", - "assistant", - "teacher", - "reviewer", - "course_or_exam_creator", - "material_viewer", - "teaching_and_learning_services" - ] - }, - "name": "user_role" - } - } - ] - } - }, - "query": "\nUPDATE roles\nSET deleted_at = NOW()\nWHERE user_id = $1\n AND role = $2\n AND deleted_at IS NULL\n" - }, - "9306546d3c8ca209c7fbc0ed7d85d6e347b974550d51e9dabc288a687fe6c8c2": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE user_exercise_slide_states\nSET deleted_at = now()\nWHERE id = $1\nRETURNING id\n " - }, - "949b187041da0d8fb7048042dc786d754141c16dd88e80e970804a5b802172b2": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Varchar"] - } - }, - "query": "\nINSERT INTO users (id, email_domain)\nVALUES ($1, $2)\nRETURNING id\n" - }, - "95507d06c93371645624282c196546afb39b428df76d978d7d87a8595f4bed05": { - "describe": { - "columns": [ - { - "name": "registration_link", - "ordinal": 0, - "type_info": "Varchar" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Text"] - } - }, - "query": "\nSELECT registration_link\nFROM open_university_registration_links\nWHERE uh_course_code = $1\n AND deleted_at IS NULL\n " - }, - "9725efd61b9041c572a3a1cfe81bbbf6ac6497b62d3c9194757cf3f9e423977c": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "exercise_task_submission_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "exercise_task_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "grading_priority", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "score_given", - "ordinal": 9, - "type_info": "Float4" - }, - { - "name": "grading_progress: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - }, - { - "name": "unscaled_score_given", - "ordinal": 11, - "type_info": "Float4" - }, - { - "name": "unscaled_score_maximum", - "ordinal": 12, - "type_info": "Int4" - }, - { - "name": "grading_started_at", - "ordinal": 13, - "type_info": "Timestamptz" - }, - { - "name": "grading_completed_at", - "ordinal": 14, - "type_info": "Timestamptz" - }, - { - "name": "feedback_json", - "ordinal": 15, - "type_info": "Jsonb" - }, - { - "name": "feedback_text", - "ordinal": 16, - "type_info": "Text" - }, - { - "name": "deleted_at", - "ordinal": 17, - "type_info": "Timestamptz" - } - ], - "nullable": [ - false, - false, - false, - false, - true, - true, - false, - false, - false, - true, - false, - true, - true, - true, - true, - true, - true, - true - ], - "parameters": { - "Left": [ - "Uuid", - { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - }, - "Float4", - "Int4", - "Text", - "Jsonb", - "Timestamptz", - "Float4" - ] - } - }, - "query": "\nUPDATE exercise_task_gradings\nSET grading_progress = $2,\n unscaled_score_given = $3,\n unscaled_score_maximum = $4,\n feedback_text = $5,\n feedback_json = $6,\n grading_completed_at = $7,\n score_given = $8\nWHERE id = $1\nRETURNING id,\n created_at,\n updated_at,\n exercise_task_submission_id,\n course_id,\n exam_id,\n exercise_id,\n exercise_task_id,\n grading_priority,\n score_given,\n grading_progress as \"grading_progress: _\",\n unscaled_score_given,\n unscaled_score_maximum,\n grading_started_at,\n grading_completed_at,\n feedback_json,\n feedback_text,\n deleted_at\n" - }, - "974f0fff32d5d42aa0aa4d4f9e52ebe1b69c95cc677bdb0fce4f8bfd7b519639": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": [ - { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - }, - "Uuid" - ] - } - }, - "query": "\nUPDATE regradings\nSET total_grading_progress = $1\nWHERE id = $2\n" - }, - "97725b48f6343a99acc51e520470f6b76e84bd60b6c9444bf49005bcece5e97e": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE course_instances\nSET deleted_at = now()\nWHERE id = $1\n" - }, - "97863f3295349de9881d18e705ef461353c7bbca65e2f0c65c43c6a4bb1365ee": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "slug", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "public_url", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "internal_url", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "max_reprocessing_submissions_at_once", - "ordinal": 8, - "type_info": "Int4" - } - ], - "nullable": [false, false, false, true, false, false, false, true, false], - "parameters": { - "Left": ["TextArray"] - } - }, - "query": "\nSELECT *\nFROM exercise_services\nWHERE slug = ANY($1);" - }, - "97cfe5f5a7632a15e0195291a313920c0f3a665a037b5b15a012c73d580776ad": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nSELECT id\nFROM course_module_completion_certificates\nWHERE user_id = $1\n AND course_module_id = $2\n AND course_instance_id = $3\n AND deleted_at IS NULL\n" - }, - "996a3e8ba767ac07fb92643bb07d3dbfff928fa28b05b7c2192352dfa574dd72": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "regrading_started_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "regrading_completed_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "total_grading_progress: _", - "ordinal": 5, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - }, - { - "name": "user_points_update_strategy: _", - "ordinal": 6, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "can-add-points-but-cannot-remove-points", - "can-add-points-and-can-remove-points" - ] - }, - "name": "user_points_update_strategy" - } - } - }, - { - "name": "user_id", - "ordinal": 7, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, true, true, false, false, true], - "parameters": { - "Left": ["Int8", "Int8"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n regrading_started_at,\n regrading_completed_at,\n total_grading_progress AS \"total_grading_progress: _\",\n user_points_update_strategy AS \"user_points_update_strategy: _\",\n user_id\nFROM regradings\nWHERE deleted_at IS NULL\nORDER BY regradings.created_at\nLIMIT $1 OFFSET $2;\n" - }, - "99b1997af8d5aa3529b09bedb96ce42e45865a370df916c56c2d5775717a8af2": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_module_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "certificate_owner_name_y_pos", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "certificate_owner_name_x_pos", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "certificate_owner_name_font_size", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "certificate_owner_name_text_color", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "certificate_owner_name_text_anchor: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": ["start", "middle", "end"] - }, - "name": "certificate_text_anchor" - } - } - }, - { - "name": "certificate_validate_url_y_pos", - "ordinal": 11, - "type_info": "Varchar" - }, - { - "name": "certificate_validate_url_x_pos", - "ordinal": 12, - "type_info": "Varchar" - }, - { - "name": "certificate_validate_url_font_size", - "ordinal": 13, - "type_info": "Varchar" - }, - { - "name": "certificate_validate_url_text_color", - "ordinal": 14, - "type_info": "Varchar" - }, - { - "name": "certificate_validate_url_text_anchor: _", - "ordinal": 15, - "type_info": { - "Custom": { - "kind": { - "Enum": ["start", "middle", "end"] - }, - "name": "certificate_text_anchor" - } - } - }, - { - "name": "certificate_date_y_pos", - "ordinal": 16, - "type_info": "Varchar" - }, - { - "name": "certificate_date_x_pos", - "ordinal": 17, - "type_info": "Varchar" - }, - { - "name": "certificate_date_font_size", - "ordinal": 18, - "type_info": "Varchar" - }, - { - "name": "certificate_date_text_color", - "ordinal": 19, - "type_info": "Varchar" - }, - { - "name": "certificate_date_text_anchor: _", - "ordinal": 20, - "type_info": { - "Custom": { - "kind": { - "Enum": ["start", "middle", "end"] - }, - "name": "certificate_text_anchor" - } - } - }, - { - "name": "certificate_locale", - "ordinal": 21, - "type_info": "Varchar" - }, - { - "name": "paper_size: _", - "ordinal": 22, - "type_info": { - "Custom": { - "kind": { - "Enum": ["horizontal-a4", "vertical-a4"] - }, - "name": "certificate_paper_size" - } - } - }, - { - "name": "background_svg_path", - "ordinal": 23, - "type_info": "Varchar" - }, - { - "name": "background_svg_file_upload_id", - "ordinal": 24, - "type_info": "Uuid" - }, - { - "name": "overlay_svg_path", - "ordinal": 25, - "type_info": "Varchar" - }, - { - "name": "overlay_svg_file_upload_id", - "ordinal": 26, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - true, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n deleted_at,\n course_module_id,\n course_instance_id,\n certificate_owner_name_y_pos,\n certificate_owner_name_x_pos,\n certificate_owner_name_font_size,\n certificate_owner_name_text_color,\n certificate_owner_name_text_anchor as \"certificate_owner_name_text_anchor: _\",\n certificate_validate_url_y_pos,\n certificate_validate_url_x_pos,\n certificate_validate_url_font_size,\n certificate_validate_url_text_color,\n certificate_validate_url_text_anchor as \"certificate_validate_url_text_anchor: _\",\n certificate_date_y_pos,\n certificate_date_x_pos,\n certificate_date_font_size,\n certificate_date_text_color,\n certificate_date_text_anchor as \"certificate_date_text_anchor: _\",\n certificate_locale,\n paper_size as \"paper_size: _\",\n background_svg_path,\n background_svg_file_upload_id,\n overlay_svg_path,\n overlay_svg_file_upload_id\nFROM course_module_certificate_configurations\nWHERE course_instance_id = $1\n AND deleted_at IS NULL\n " - }, - "9b22240e7ed6238509fccd2191dfed47215d59363003b204f7f666a587d34a48": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "user_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "receiving_peer_reviews_exercise_slide_submission_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "received_enough_peer_reviews", - "ordinal": 8, - "type_info": "Bool" - }, - { - "name": "peer_review_priority", - "ordinal": 9, - "type_info": "Int4" - }, - { - "name": "removed_from_queue_for_unusual_reason", - "ordinal": 10, - "type_info": "Bool" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false, false, false], - "parameters": { - "Left": ["Uuid", "Int4", "Uuid"] - } - }, - "query": "\nUPDATE peer_review_queue_entries\nSET receiving_peer_reviews_exercise_slide_submission_id = $1,\n peer_review_priority = $2\nWHERE id = $3\nRETURNING *\n " - }, - "9b49a1a2d7f0ba69c11599bcf459f7c8a0b39c49ce86f5c211c62fa09a0dfedc": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "organization_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "deleted_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "slug", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "content_search_language", - "ordinal": 7, - "type_info": "Text" - }, - { - "name": "language_code", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "copied_from", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "course_language_group_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "description", - "ordinal": 11, - "type_info": "Text" - }, - { - "name": "is_draft", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "is_test_mode", - "ordinal": 13, - "type_info": "Bool" - }, - { - "name": "base_module_completion_requires_n_submodule_completions", - "ordinal": 14, - "type_info": "Int4" - } - ], - "nullable": [ - false, - false, - false, - false, - false, - true, - false, - null, - false, - true, - false, - true, - false, - false, - false - ], - "parameters": { - "Left": ["Text"] - } - }, - "query": "\nSELECT id,\n name,\n created_at,\n updated_at,\n organization_id,\n deleted_at,\n slug,\n content_search_language::text,\n language_code,\n copied_from,\n course_language_group_id,\n description,\n is_draft,\n is_test_mode,\n base_module_completion_requires_n_submodule_completions\nFROM courses\nWHERE slug = $1\n AND deleted_at IS NULL\n" - }, - "9bc0b3ae6672ff787250bbbfbf353634b598e814cb2e3b8ca26235466b22ee63": { - "describe": { - "columns": [ - { - "name": "course_id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT course_id\nFROM course_instances\nWHERE id = $1\n" - }, - "9c6243474cc02c99f6974e143c88dde690c982125071ddc69df713350de1f875": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "exercise_type", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "assignment", - "ordinal": 4, - "type_info": "Jsonb" - }, - { - "name": "deleted_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "private_spec", - "ordinal": 6, - "type_info": "Jsonb" - }, - { - "name": "public_spec", - "ordinal": 7, - "type_info": "Jsonb" - }, - { - "name": "model_solution_spec", - "ordinal": 8, - "type_info": "Jsonb" - }, - { - "name": "copied_from", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "exercise_slide_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "order_number", - "ordinal": 11, - "type_info": "Int4" - } - ], - "nullable": [false, false, false, false, false, true, true, true, true, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "SELECT * FROM exercise_tasks WHERE id = $1;" - }, - "9c6ffd6f0bd7cd8e1a60d3742c94ba7fce2c9923409d0df60c9eef0ee715e706": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nINSERT INTO exercise_language_groups (\n id,\n course_language_group_id\n )\nVALUES ($1, $2)\nRETURNING id\n " - }, - "9c85b99d223ec35dd6a3d00598117fba6db802ec315cd2d1c38012b577d270bb": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "deleted_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "deadline", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "page_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "score_maximum", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "order_number", - "ordinal": 9, - "type_info": "Int4" - }, - { - "name": "chapter_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 12, - "type_info": "Uuid" - }, - { - "name": "max_tries_per_slide", - "ordinal": 13, - "type_info": "Int4" - }, - { - "name": "limit_number_of_tries", - "ordinal": 14, - "type_info": "Bool" - }, - { - "name": "needs_peer_review", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "use_course_default_peer_review_config", - "ordinal": 16, - "type_info": "Bool" - }, - { - "name": "exercise_language_group_id", - "ordinal": 17, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - false, - true, - false, - false, - false, - true, - true, - true, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": ["UuidArray"] - } - }, - "query": "\nSELECT *\nFROM exercises\nWHERE page_id IN (\n SELECT UNNEST($1::uuid [])\n )\n AND deleted_at IS NULL\n " - }, - "9c9fe2a99244830594405a490b42ac70e1bc5c7a51d81f4808b5a81ef27a2e54": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE course_module_completion_registered_to_study_registries\nSET deleted_at = now()\nWHERE id = $1\n " - }, - "9d574567e7aa12228c9ce67546df505e1eec89cb3720969ed7685cee32765f3d": { - "describe": { - "columns": [ - { - "name": "is_global", - "ordinal": 0, - "type_info": "Bool" - }, - { - "name": "organization_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "role: UserRole", - "ordinal": 5, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "admin", - "assistant", - "teacher", - "reviewer", - "course_or_exam_creator", - "material_viewer", - "teaching_and_learning_services" - ] - }, - "name": "user_role" - } - } - } - ], - "nullable": [false, true, true, true, true, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT is_global,\n organization_id,\n course_id,\n course_instance_id,\n exam_id,\n role AS \"role: UserRole\"\nFROM roles\nWHERE user_id = $1\nAND roles.deleted_at IS NULL\n" - }, - "9da508da43833f61d11dc169c22d68f7d9c390ba693363576b49778bad4ada4c": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "first_name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "last_name", - "ordinal": 2, - "type_info": "Varchar" - }, - { - "name": "email", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "role: UserRole", - "ordinal": 4, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "admin", - "assistant", - "teacher", - "reviewer", - "course_or_exam_creator", - "material_viewer", - "teaching_and_learning_services" - ] - }, - "name": "user_role" - } - } - } - ], - "nullable": [false, true, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT users.id,\n user_details.first_name,\n user_details.last_name,\n user_details.email,\n role AS \"role: UserRole\"\nFROM users\n JOIN roles ON users.id = roles.user_id\n JOIN user_details ON users.id = user_details.user_id\nWHERE roles.course_instance_id = $1\nAND roles.deleted_at IS NULL\n" - }, - "9e0a5d551ad41a6e755261ec8fabc267c3b5c57de4c3e6fe9968e6b3cdb4db38": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "peer_review_config_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "order_number", - "ordinal": 2, - "type_info": "Int4" - }, - { - "name": "question_type: _", - "ordinal": 3, - "type_info": { - "Custom": { - "kind": { - "Enum": ["essay", "scale"] - }, - "name": "peer_review_question_type" - } - } - }, - { - "name": "question", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "answer_required", - "ordinal": 5, - "type_info": "Bool" - } - ], - "nullable": [false, false, false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n peer_review_config_id,\n order_number,\n question_type AS \"question_type: _\",\n question,\n answer_required\nFROM peer_review_questions\nwhere peer_review_config_id = $1\n AND deleted_at IS NULL;\n " - }, - "9f2d190d47dfc1e28d110f543072751bdefbede1ae4c1ae0e4d2d29a28f9bae1": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Varchar", "Varchar", "Uuid", "Int4", "Timestamptz", "Timestamptz", "Uuid"] - } - }, - "query": "\nINSERT INTO chapters(\n id,\n name,\n color,\n course_id,\n chapter_number,\n deadline,\n opens_at,\n course_module_id\n )\nVALUES($1, $2, $3, $4, $5, $6, $7, $8)\nRETURNING id\n " - }, - "9f31d0d3d1943980f58b78597e60339681c9f451b85a34d67c8bc64ba71c790d": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "course_name", - "ordinal": 2, - "type_info": "Varchar" - }, - { - "name": "name", - "ordinal": 3, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT exams.id,\n courses.id as course_id,\n courses.name as course_name,\n exams.name\nFROM exams\n JOIN course_exams ON course_id = $1\n JOIN courses ON courses.id = $1\n AND exams.deleted_at IS NULL\n AND courses.deleted_at IS NULL\n" - }, - "9ff58b17cdc5899c665753277fdaea2d36d6254b4d2863efe22f49db91fa0bf2": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "upstream_id", - "ordinal": 4, - "type_info": "Int4" - }, - { - "name": "email_domain", - "ordinal": 5, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, true, true], - "parameters": { - "Left": ["Text"] - } - }, - "query": "\nSELECT users.*\nFROM user_details\nJOIN users ON (user_details.user_id = users.id)\nWHERE user_details.email = $1\n " - }, - "a0506edd480e7dec860a33702092c243a207450909a69db5a44ad6fcb72b2fb2": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nINSERT INTO exam_enrollments (exam_id, user_id)\nVALUES ($1, $2)\n" - }, - "a0b48249b8e8eaabcb2549b040ac9c368170235edd5c605028ed2d16f72e1ce6": { - "describe": { - "columns": [ - { - "name": "user_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "course_language_group_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "current_course_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "current_course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, false, true, false, false], - "parameters": { - "Left": ["UuidArray", "Uuid"] - } - }, - "query": "\nSELECT *\nFROM user_course_settings\nWHERE current_course_id = ANY($1)\n AND user_id = $2\n AND deleted_at IS NULL\n " - }, - "a19f57e81e5e7d1c9496088a4de630d0d939ebf8229c409525d0224808dfb9ae": { - "describe": { - "columns": [ - { - "name": "url_path", - "ordinal": 0, - "type_info": "Varchar" - }, - { - "name": "title", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "page_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "chapter_number", - "ordinal": 3, - "type_info": "Int4" - }, - { - "name": "chapter_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "chapter_opens_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "chapter_front_page_id", - "ordinal": 6, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, false, false, true, true], - "parameters": { - "Left": ["Int4", "Uuid"] - } - }, - "query": "\nSELECT p.url_path as url_path,\n p.title as title,\n p.id as page_id,\n c.chapter_number as chapter_number,\n c.id as chapter_id,\n c.opens_at as chapter_opens_at,\n c.front_page_id as chapter_front_page_id\nFROM chapters c\n INNER JOIN pages p on c.id = p.chapter_id\nWHERE c.chapter_number = (\n SELECT MAX(ca.chapter_number)\n FROM chapters ca\n WHERE ca.chapter_number < $1\n AND ca.deleted_at IS NULL\n )\n AND c.course_id = $2\n AND p.deleted_at IS NULL\nORDER BY p.order_number\nLIMIT 1;\n " - }, - "a20713f03a272294f8134ee1dba5e327215625cc98568daff6691f879928bf4e": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "instructions", - "ordinal": 2, - "type_info": "Jsonb" - }, - { - "name": "page_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "starts_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "ends_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "time_minutes", - "ordinal": 6, - "type_info": "Int4" - }, - { - "name": "minimum_points_treshold", - "ordinal": 7, - "type_info": "Int4" - } - ], - "nullable": [false, false, false, false, true, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT exams.id,\n exams.name,\n exams.instructions,\n pages.id AS page_id,\n exams.starts_at,\n exams.ends_at,\n exams.time_minutes,\n exams.minimum_points_treshold\nFROM exams\n JOIN pages ON pages.exam_id = exams.id\nWHERE exams.id = $1\n" - }, - "a31ab4987f8b24cf19bb676819c964d629e6147d37e4732109cd39ad9793e68a": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Varchar"] - } - }, - "query": "UPDATE pages SET url_path = $2 WHERE pages.id = $1" - }, - "a32343d6d6a1285b5d0c8f47e31e1731f2bbfed3df606357f158067ec7ed4033": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 7, - "type_info": "Timestamptz" - }, - { - "name": "score_given", - "ordinal": 8, - "type_info": "Float4" - }, - { - "name": "grading_progress: _", - "ordinal": 9, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - }, - { - "name": "activity_progress: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": ["initialized", "started", "in-progress", "submitted", "completed"] - }, - "name": "activity_progress" - } - } - }, - { - "name": "reviewing_stage: _", - "ordinal": 11, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "not_started", - "peer_review", - "self_review", - "waiting_for_peer_reviews", - "waiting_for_manual_grading", - "reviewed_and_locked" - ] - }, - "name": "reviewing_stage" - } - } - }, - { - "name": "selected_exercise_slide_id", - "ordinal": 12, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - false, - false, - true, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": [ - "Float4", - { - "Custom": { - "kind": { - "Enum": ["initialized", "started", "in-progress", "submitted", "completed"] - }, - "name": "activity_progress" - } - }, - { - "Custom": { - "kind": { - "Enum": [ - "not_started", - "peer_review", - "self_review", - "waiting_for_peer_reviews", - "waiting_for_manual_grading", - "reviewed_and_locked" - ] - }, - "name": "reviewing_stage" - } - }, - { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - }, - "Uuid" - ] - } - }, - "query": "\nUPDATE user_exercise_states\nSET score_given = $1,\n activity_progress = $2,\n reviewing_stage = $3,\n grading_progress = $4\nWHERE id = $5\n AND deleted_at IS NULL\nRETURNING id,\n user_id,\n exercise_id,\n course_instance_id,\n exam_id,\n created_at,\n updated_at,\n deleted_at,\n score_given,\n grading_progress AS \"grading_progress: _\",\n activity_progress AS \"activity_progress: _\",\n reviewing_stage AS \"reviewing_stage: _\",\n selected_exercise_slide_id\n " - }, - "a38113607035916d35463f3d2496532283338aee520851aabc879f96ab0f6537": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "exercise_type", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "private_spec", - "ordinal": 4, - "type_info": "Jsonb" - } - ], - "nullable": [false, false, false, false, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT distinct (t.id),\n t.created_at,\n t.updated_at,\n t.exercise_type,\n t.private_spec\nfrom exercise_tasks t\nwhere t.exercise_slide_id in (\n SELECT id\n from exercise_slides s\n where s.exercise_id in (\n SELECT id\n from exercises e\n where e.course_id = $1\n )\n )\n AND deleted_at IS NULL;\n " - }, - "a54dccecd05081f97834f4f8654132d47eeff79664ba79fee7ebbb5ad4368cbf": { - "describe": { - "columns": [ - { - "name": "completion_registration_attempt_date", - "ordinal": 0, - "type_info": "Timestamptz" - }, - { - "name": "course_module_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "grade", - "ordinal": 3, - "type_info": "Int4" - }, - { - "name": "passed", - "ordinal": 4, - "type_info": "Bool" - }, - { - "name": "prerequisite_modules_completed", - "ordinal": 5, - "type_info": "Bool" - }, - { - "name": "registered!", - "ordinal": 6, - "type_info": "Bool" - }, - { - "name": "user_id", - "ordinal": 7, - "type_info": "Uuid" - } - ], - "nullable": [true, false, false, true, false, false, null, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT completions.completion_registration_attempt_date,\n completions.course_module_id,\n completions.created_at,\n completions.grade,\n completions.passed,\n completions.prerequisite_modules_completed,\n (registered.id IS NOT NULL) AS \"registered!\",\n completions.user_id\nFROM course_module_completions completions\n LEFT JOIN course_module_completion_registered_to_study_registries registered ON (\n completions.id = registered.course_module_completion_id\n )\nWHERE completions.course_instance_id = $1\n AND completions.deleted_at IS NULL\n AND registered.deleted_at IS NULL\n " - }, - "a5d0f35186ad5815e4c1ea3255e64db3c93922a4ca016cb1333c77462fd68661": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "repository_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "part", - "ordinal": 2, - "type_info": "Varchar" - }, - { - "name": "name", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "repository_url", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "checksum", - "ordinal": 5, - "type_info": "Bytea" - }, - { - "name": "download_url", - "ordinal": 6, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT re.id,\n er.id AS repository_id,\n re.part,\n re.name,\n er.url AS repository_url,\n re.checksum,\n re.download_url\nFROM repository_exercises AS re\nJOIN exercise_repositories AS er ON er.id = re.repository_id\nWHERE repository_id = $1\nAND re.deleted_at IS NULL\n" - }, - "a6415a33cec482a8effc9d8a64067813de54de796571d81b6ed4f0c1d4ac3edb": { - "describe": { - "columns": [ - { - "name": "exercise_name", - "ordinal": 0, - "type_info": "Varchar" - }, - { - "name": "exercise_order_number", - "ordinal": 1, - "type_info": "Int4" - }, - { - "name": "page_order_number", - "ordinal": 2, - "type_info": "Int4" - }, - { - "name": "chapter_number", - "ordinal": 3, - "type_info": "Int4" - }, - { - "name": "exercise_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "n_users_attempted", - "ordinal": 5, - "type_info": "Int8" - }, - { - "name": "n_users_with_some_points", - "ordinal": 6, - "type_info": "Int8" - }, - { - "name": "n_users_with_max_points", - "ordinal": 7, - "type_info": "Int8" - } - ], - "nullable": [false, false, false, false, false, null, null, null], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT exercises.name as exercise_name,\n exercises.order_number as exercise_order_number,\n pages.order_number as page_order_number,\n chapters.chapter_number,\n stat_data.*\nFROM (\n SELECT exercise_id,\n COUNT(DISTINCT user_id) FILTER (\n WHERE ues.activity_progress = 'completed'\n ) as n_users_attempted,\n COUNT(DISTINCT user_id) FILTER (\n WHERE ues.score_given IS NOT NULL\n and ues.score_given > 0\n AND ues.activity_progress = 'completed'\n ) as n_users_with_some_points,\n COUNT(DISTINCT user_id) FILTER (\n WHERE ues.score_given IS NOT NULL\n and ues.score_given >= exercises.score_maximum\n and ues.activity_progress = 'completed'\n ) as n_users_with_max_points\n FROM exercises\n JOIN user_exercise_states ues on exercises.id = ues.exercise_id\n WHERE exercises.course_id = $1\n AND exercises.deleted_at IS NULL\n AND ues.deleted_at IS NULL\n GROUP BY exercise_id\n ) as stat_data\n JOIN exercises ON stat_data.exercise_id = exercises.id\n JOIN pages on exercises.page_id = pages.id\n JOIN chapters on pages.chapter_id = chapters.id\nWHERE exercises.deleted_at IS NULL\n AND pages.deleted_at IS NULL\n AND chapters.deleted_at IS NULL\n " - }, - "a670b7eda0b82b828d1dfb15b504fc15365649b5e69aa07eaa96cd3c9de0d302": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Varchar", "Int4", "Uuid"] - } - }, - "query": "\nUPDATE course_modules\nSET name = COALESCE($1, name),\n order_number = $2\nWHERE id = $3\n" - }, - "a6ff9906b260de5cc678047b03f5877008cd43e36ed513ae81040d2ce9fd9470": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "organization_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "deleted_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "slug", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "content_search_language", - "ordinal": 7, - "type_info": "Text" - }, - { - "name": "language_code", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "copied_from", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "course_language_group_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "description", - "ordinal": 11, - "type_info": "Text" - }, - { - "name": "is_draft", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "is_test_mode", - "ordinal": 13, - "type_info": "Bool" - }, - { - "name": "base_module_completion_requires_n_submodule_completions", - "ordinal": 14, - "type_info": "Int4" - } - ], - "nullable": [ - false, - false, - false, - false, - false, - true, - false, - null, - false, - true, - false, - true, - false, - false, - false - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n name,\n created_at,\n updated_at,\n organization_id,\n deleted_at,\n slug,\n content_search_language::text,\n language_code,\n copied_from,\n course_language_group_id,\n description,\n is_draft,\n is_test_mode,\n base_module_completion_requires_n_submodule_completions\nFROM courses\nWHERE course_language_group_id = $1\nAND deleted_at IS NULL\n " - }, - "a76579e426500a1f99f9e02cf2c523658f58d86dcb036aef2aa3bdf71d8a563e": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE regradings\nSET regrading_completed_at = now(),\n total_grading_progress = 'fully-graded'\nWHERE id = $1\n" - }, - "a7ce881fdb0ab29c0bb212aab7a8ee4da3c99fef64c8c1e041af74edd888e1d5": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Bytea", "Uuid"] - } - }, - "query": "\nUPDATE repository_exercises\nSET checksum = $1\nWHERE id = $2\n" - }, - "a80adc88f16d5ce7df3ab0724d59ba485ee56323fef9d6e89cde588994a2ee63": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_slide_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 8, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "user_points_update_strategy: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "can-add-points-but-cannot-remove-points", - "can-add-points-and-can-remove-points" - ] - }, - "name": "user_points_update_strategy" - } - } - } - ], - "nullable": [false, false, false, true, false, true, true, true, false, false, false], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Uuid", - "Uuid", - "Uuid", - "Uuid", - { - "Custom": { - "kind": { - "Enum": [ - "can-add-points-but-cannot-remove-points", - "can-add-points-and-can-remove-points" - ] - }, - "name": "user_points_update_strategy" - } - } - ] - } - }, - "query": "\nINSERT INTO exercise_slide_submissions (\n exercise_slide_id,\n course_id,\n course_instance_id,\n exam_id,\n exercise_id,\n user_id,\n user_points_update_strategy\n )\nVALUES ($1, $2, $3, $4, $5, $6, $7)\nRETURNING id,\n created_at,\n updated_at,\n deleted_at,\n exercise_slide_id,\n course_id,\n course_instance_id,\n exam_id,\n exercise_id,\n user_id,\n user_points_update_strategy AS \"user_points_update_strategy: _\"\n " - }, - "a84c3dbddf4bce77929cf8522694fd1d4d7ff5e8a95afb9d4590c2d1b6ba6841": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "exercise_task_submission_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "exercise_task_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "grading_priority", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "score_given", - "ordinal": 9, - "type_info": "Float4" - }, - { - "name": "grading_progress: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - }, - { - "name": "unscaled_score_given", - "ordinal": 11, - "type_info": "Float4" - }, - { - "name": "unscaled_score_maximum", - "ordinal": 12, - "type_info": "Int4" - }, - { - "name": "grading_started_at", - "ordinal": 13, - "type_info": "Timestamptz" - }, - { - "name": "grading_completed_at", - "ordinal": 14, - "type_info": "Timestamptz" - }, - { - "name": "feedback_json", - "ordinal": 15, - "type_info": "Jsonb" - }, - { - "name": "feedback_text", - "ordinal": 16, - "type_info": "Text" - }, - { - "name": "deleted_at", - "ordinal": 17, - "type_info": "Timestamptz" - } - ], - "nullable": [ - false, - false, - false, - false, - true, - true, - false, - false, - false, - true, - false, - true, - true, - true, - true, - true, - true, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\ncreated_at,\nupdated_at,\nexercise_task_submission_id,\ncourse_id,\nexam_id,\nexercise_id,\nexercise_task_id,\ngrading_priority,\nscore_given,\ngrading_progress as \"grading_progress: _\",\nunscaled_score_given,\nunscaled_score_maximum,\ngrading_started_at,\ngrading_completed_at,\nfeedback_json,\nfeedback_text,\ndeleted_at\nFROM exercise_task_gradings\nWHERE deleted_at IS NULL\n AND exercise_task_submission_id IN (\n SELECT id\n FROM exercise_task_submissions\n WHERE exercise_slide_submission_id = $1\n )\n" - }, - "a8ea36034543bcc580413790b2bf159402da39f943469c0fe24efc63597b07e1": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "research_consent", - "ordinal": 2, - "type_info": "Bool" - }, - { - "name": "created_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 5, - "type_info": "Timestamptz" - } - ], - "nullable": [false, false, false, false, false, true], - "parameters": { - "Left": ["Uuid", "Uuid", "Bool"] - } - }, - "query": "\nINSERT INTO user_research_consents (\n id,\n user_id,\n research_consent\n)\nVALUES ($1, $2, $3) ON CONFLICT (user_id, deleted_at)\nDO UPDATE SET research_consent = $3\nRETURNING *;\n " - }, - "a963c734bc1f9c48be192fa5c8537d461c9ded7412268b17b64085e4f44b174a": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "order_number", - "ordinal": 5, - "type_info": "Int4" - } - ], - "nullable": [false, false, false, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM exercise_slides\nWHERE id = $1\n AND deleted_at IS NULL;\n " - }, - "a9dc52e4a43f9ebb2699af00a000ca381ae1eb74978d7f4513702a62d344a52a": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_instance_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exercise_task_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "score_given", - "ordinal": 6, - "type_info": "Float4" - }, - { - "name": "data_json", - "ordinal": 7, - "type_info": "Jsonb" - } - ], - "nullable": [false, false, false, true, false, false, true, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT exercise_task_submissions.id,\n user_id,\n exercise_task_submissions.created_at,\n exercise_slide_submissions.course_instance_id,\n exercise_slide_submissions.exercise_id,\n exercise_task_submissions.exercise_task_id,\n exercise_task_gradings.score_given,\n exercise_task_submissions.data_json\nFROM exercise_task_submissions\n JOIN exercise_slide_submissions ON exercise_task_submissions.exercise_slide_submission_id = exercise_slide_submissions.id\n JOIN exercise_task_gradings ON exercise_task_submissions.exercise_task_grading_id = exercise_task_gradings.id\n JOIN exercises ON exercise_slide_submissions.exercise_id = exercises.id\nWHERE exercise_slide_submissions.course_id = $1\n AND exercise_task_submissions.deleted_at IS NULL\n AND exercise_task_gradings.deleted_at IS NULL\n AND exercises.deleted_at IS NULL;\n " - }, - "a9e6bf7e1afec5191482ce2cfaca22c670d50759540e166270fa2881e5db1dc4": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "starts_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "ends_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "description", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "teacher_in_charge_name", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "teacher_in_charge_email", - "ordinal": 10, - "type_info": "Varchar" - }, - { - "name": "support_email", - "ordinal": 11, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, false, true, true, true, true, false, false, true], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nSELECT i.id,\n i.created_at,\n i.updated_at,\n i.deleted_at,\n i.course_id,\n i.starts_at,\n i.ends_at,\n i.name,\n i.description,\n i.teacher_in_charge_name,\n i.teacher_in_charge_email,\n i.support_email\nFROM course_instances i\n JOIN course_instance_enrollments ie ON (i.id = ie.course_id)\nWHERE i.course_id = $1\n AND i.deleted_at IS NULL\n AND ie.user_id = $2\n AND ie.deleted_at IS NULL\nORDER BY ie.created_at DESC;\n " - }, - "aa31c9ac2566ab617066e365b22d919fc138a046d8ae095af6194a7fd77fe89d": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Varchar", "Jsonb", "Timestamptz", "Timestamptz", "Int4", "Uuid", "Int4"] - } - }, - "query": "\nINSERT INTO exams (\n id,\n name,\n instructions,\n starts_at,\n ends_at,\n time_minutes,\n organization_id,\n minimum_points_treshold\n )\nVALUES ($1, $2, $3, $4, $5, $6, $7, $8)\nRETURNING id\n " - }, - "aabbcdc5984f0c7fc03acf0c2f53ebb8f0ff5f2b8993a81bd988be4bbf240a70": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Uuid", "Int4"] - } - }, - "query": "\nINSERT INTO exercise_slides (id, exercise_id, order_number)\nVALUES ($1, $2, $3) ON CONFLICT (id) DO\nUPDATE\nSET exercise_id = $2,\n order_number = $3,\n deleted_at = NULL\nRETURNING id;\n " - }, - "aadc81fd1c59e2292dfdf9e8f80d435c894afe80817ac28da9c868f5337de1e4": { - "describe": { - "columns": [ - { - "name": "chapter_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "chapter_name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "chapter_front_page_id", - "ordinal": 2, - "type_info": "Uuid" - } - ], - "nullable": [false, false, true], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\n SELECT\n c.id as chapter_id,\n c.name as chapter_name,\n c.front_page_id as chapter_front_page_id\n FROM chapters c\n WHERE c.id = $1\n AND c.course_id = $2\n AND c.deleted_at IS NULL;\n " - }, - "ab797dedbb97a19ec1b4b71653c44fbd039cb742b9d85411e784426b2897d378": { - "describe": { - "columns": [ - { - "name": "count", - "ordinal": 0, - "type_info": "Int8" - } - ], - "nullable": [null], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\n SELECT\n COUNT(*) as count\n FROM user_exercise_states AS us_state\n JOIN exercise_task_submissions AS t_submission\n ON us_state.selected_exercise_slide_id =\n t_submission.exercise_slide_id\n JOIN exercise_slide_submissions AS s_submission\n ON t_submission.exercise_slide_submission_id =\n s_submission.id\n WHERE us_state.selected_exercise_slide_id =\n t_submission.exercise_slide_id\n AND us_state.user_id = s_submission.user_id\n AND us_state.exercise_id = $1\n AND us_state.reviewing_stage = 'waiting_for_manual_grading'\n AND us_state.deleted_at IS NULL\n AND s_submission.deleted_at IS NULL\n AND t_submission.deleted_at IS NULL" - }, - "abc0210de7968d0ccb49bd0a87e73d0cd22194379982298739789ada0a84bfe8": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "is_test_mode", - "ordinal": 1, - "type_info": "Bool" - } - ], - "nullable": [false, false], - "parameters": { - "Left": ["Text"] - } - }, - "query": "SELECT id, is_test_mode FROM courses WHERE slug = $1 AND deleted_at IS NULL" - }, - "abcb3513a6184e7a92e117beb6744c9ffa3517930c431aca7f421c0b947cf697": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "user_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "peer_review_config_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "exercise_slide_submission_id", - "ordinal": 8, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nSELECT *\nFROM peer_review_submissions\nWHERE user_id = $1\n AND course_instance_id = $2\n AND deleted_at IS NULL\n " - }, - "acc90e3b064af111f148c11c47b6a5cace02d177c95e0945139398530efe4299": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nUPDATE peer_review_submissions\nSET deleted_at = now()\nWHERE user_id = $1\n AND course_instance_id = $2\n AND deleted_at IS NULL\n" - }, - "ad05712486467ad76850b5d365d57b87a302263d16b4bdc830f02e8a1092e6cc": { - "describe": { - "columns": [ - { - "name": "sum", - "ordinal": 0, - "type_info": "Float4" - } - ], - "nullable": [null], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT SUM(COALESCE(etg.score_given, 0))::real\nFROM exercise_task_gradings etg\n JOIN exercise_task_submissions ets ON etg.exercise_task_submission_id = ets.id\nWHERE ets.exercise_slide_submission_id = $1\n AND etg.deleted_at IS NULL\n AND ets.deleted_at IS NULL\n " - }, - "ad44e66896540a92d76d8b584ae7142955baf3641d83702179e92fe60f8e3836": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "starts_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "ends_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "description", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "teacher_in_charge_name", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "teacher_in_charge_email", - "ordinal": 10, - "type_info": "Varchar" - }, - { - "name": "support_email", - "ordinal": 11, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, false, true, true, true, true, false, false, true], - "parameters": { - "Left": ["Uuid", "Uuid", "Varchar", "Varchar", "Varchar", "Varchar", "Varchar"] - } - }, - "query": "\nINSERT INTO course_instances (\n id,\n course_id,\n name,\n description,\n teacher_in_charge_name,\n teacher_in_charge_email,\n support_email\n )\nVALUES ($1, $2, $3, $4, $5, $6, $7)\nRETURNING id,\n created_at,\n updated_at,\n deleted_at,\n course_id,\n starts_at,\n ends_at,\n name,\n description,\n teacher_in_charge_name,\n teacher_in_charge_email,\n support_email\n" - }, - "ad6d07d1e255c7f9da9785adbcfd08c94ce2f190f4181f28a676b1cca16254a9": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "chapter_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "url_path", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "title", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "deleted_at", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "content", - "ordinal": 9, - "type_info": "Jsonb" - }, - { - "name": "order_number", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "hidden", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "page_language_group_id", - "ordinal": 13, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - true, - false, - false, - true, - false, - false, - true, - false, - true - ], - "parameters": { - "Left": ["Jsonb", "Uuid"] - } - }, - "query": "\nUPDATE pages\nSET content = $1\nWHERE id = $2\nRETURNING id,\n created_at,\n updated_at,\n course_id,\n exam_id,\n chapter_id,\n url_path,\n title,\n deleted_at,\n content,\n order_number,\n copied_from,\n hidden,\n page_language_group_id\n " - }, - "ae6a1175c1fb84718dc3f7b9b917950c7a084a2c459f68847b4b17159e6d54ae": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "UPDATE users set deleted_at = now() WHERE id = $1" - }, - "aee1ac79f9af758cf20f1b486a12b0f07ced3949ab6f2256bc792291ed7424b5": { - "describe": { - "columns": [ - { - "name": "course_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 1, - "type_info": "Uuid" - } - ], - "nullable": [true, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT course_id,\n exam_id\nFROM exercise_slide_submissions\nWHERE id = $1\n AND deleted_at IS NULL\n " - }, - "af52aa2b629f9ce3d90cdbc3b5ee98b8b20524b73b56e26589c544206a322529": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "slug", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "description", - "ordinal": 6, - "type_info": "Text" - }, - { - "name": "organization_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "language_code", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "copied_from", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "content_search_language", - "ordinal": 10, - "type_info": "Text" - }, - { - "name": "course_language_group_id", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "is_draft", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "is_test_mode", - "ordinal": 13, - "type_info": "Bool" - }, - { - "name": "base_module_completion_requires_n_submodule_completions", - "ordinal": 14, - "type_info": "Int4" - } - ], - "nullable": [ - false, - false, - false, - false, - true, - false, - true, - false, - false, - true, - null, - false, - false, - false, - false - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n slug,\n courses.created_at,\n courses.updated_at,\n courses.deleted_at,\n name,\n description,\n organization_id,\n language_code,\n copied_from,\n content_search_language::text,\n course_language_group_id,\n is_draft,\n is_test_mode,\n base_module_completion_requires_n_submodule_completions\nFROM courses\n JOIN course_exams ON courses.id = course_exams.course_id\nWHERE course_exams.exam_id = $1\n AND courses.deleted_at IS NULL\n AND course_exams.deleted_at IS NULL\n" - }, - "af86245330f55f4771e41e635d60ba19a00c9170f775429caa4af0c9c4372ffe": { - "describe": { - "columns": [ - { - "name": "count", - "ordinal": 0, - "type_info": "Int8" - } - ], - "nullable": [null], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT\n COUNT(DISTINCT id) as count\nFROM courses\nWHERE organization_id = $1\n AND deleted_at IS NULL;\n " - }, - "b071b7164ccc528dc6f1eb0c23b8de2057612836eec60ab6de5d1418f03b5b00": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Varchar", "Uuid"] - } - }, - "query": "\nUPDATE course_modules\nSET name = $1\nWHERE id = $2\n" - }, - "b0af6fe4652dbdebf3d37d2a35616e2294b199f4ef9adee959315d1e23204fd8": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "research_form_question_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "research_consent", - "ordinal": 4, - "type_info": "Bool" - }, - { - "name": "created_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 7, - "type_info": "Timestamptz" - } - ], - "nullable": [false, false, false, false, false, false, false, true], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nSELECT * FROM course_specific_consent_form_answers\nWHERE course_id = $1 AND user_id = $2\nAND deleted_at IS NULL\n" - }, - "b1aa0a717b12afa5026916399b755848174729d079696ac307a5066e62eee49f": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nUPDATE exercise_task_gradings\nSET deleted_at = now()\nWHERE exercise_task_submission_id IN (\n SELECT id\n FROM exercise_task_submissions\n WHERE exercise_slide_submission_id IN (\n SELECT id\n FROM exercise_slide_submissions\n WHERE user_id = $1\n AND course_instance_id = $2\n )\n )\n AND deleted_at IS NULL\n" - }, - "b27922e66ed8dd5b05c89d85f50c8b9fb2620fac9a78fe0f99d7372a60c6ccd3": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "starts_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "ends_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "description", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "support_email", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "teacher_in_charge_name", - "ordinal": 10, - "type_info": "Varchar" - }, - { - "name": "teacher_in_charge_email", - "ordinal": 11, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, false, true, true, true, true, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM course_instances\nWHERE course_id = $1\n AND name IS NULL\n AND deleted_at IS NULL\n " - }, - "b348f94ecdb339e80e4b537a293d6748f48a5af21e6b30f404d8c43dfb2ecda5": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nINSERT INTO course_language_groups (id)\nVALUES ($1)\nRETURNING id\n " - }, - "b358b51e902904c15f43a08b5452d4bc5362737b8ac87f5abdeaf810c53dc12a": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Text"] - } - }, - "query": "\nUPDATE exercise_repositories\nSET status = 'failure',\n error_message = $2\nWHERE id = $1\n" - }, - "b3594457d4aea521525b2348f2f95336c0bfa761cf13b7878ca3a9691ded8ce9": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "instructions", - "ordinal": 1, - "type_info": "Jsonb" - } - ], - "nullable": [false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id, instructions\nFROM exams\nWHERE id = $1;\n" - }, - "b39dda257f5f1f2db1905fdb6616a93c5d587d89c51ca1c1ca67152d7677de65": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "url", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "width", - "ordinal": 6, - "type_info": "Int4" - }, - { - "name": "data", - "ordinal": 7, - "type_info": "Jsonb" - } - ], - "nullable": [false, false, false, true, false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE playground_examples\nSET deleted_at = now()\nWHERE id = $1\nRETURNING *;\n " - }, - "b41487fa1202843faad2ed61acd3c377c6ee5fd68b0d81abfd4dc70a0ddc601f": { - "describe": { - "columns": [ - { - "name": "chapter_name?", - "ordinal": 0, - "type_info": "Varchar" - }, - { - "name": "chapter_number?", - "ordinal": 1, - "type_info": "Int4" - }, - { - "name": "course_name?", - "ordinal": 2, - "type_info": "Varchar" - }, - { - "name": "course_slug?", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "chapter_front_page_id?", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "chapter_front_page_url_path?", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "organization_slug", - "ordinal": 6, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, false, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT chapters.name as \"chapter_name?\",\n chapters.chapter_number as \"chapter_number?\",\n courses.name as \"course_name?\",\n courses.slug as \"course_slug?\",\n chapters.front_page_id as \"chapter_front_page_id?\",\n p2.url_path as \"chapter_front_page_url_path?\",\n organizations.slug as organization_slug\nFROM pages\n LEFT JOIN chapters on pages.chapter_id = chapters.id\n LEFT JOIN courses on pages.course_id = courses.id\n LEFT JOIN pages p2 ON chapters.front_page_id = p2.id\n LEFT JOIN organizations on courses.organization_id = organizations.id\nWHERE pages.id = $1\n" - }, - "b431fcfbcf045869ad07dc7a9fa104fa28abc1fdaeae36420f7a378670e63577": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nINSERT INTO page_language_groups (\n id,\n course_language_group_id\n )\nVALUES ($1, $2)\nRETURNING id\n " - }, - "b4378911706be769676c407cea2444ed687dce6820884197045ee0499a52c3a3": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nINSERT INTO peer_review_configs (\n id,\n course_id,\n exercise_id,\n peer_reviews_to_give,\n peer_reviews_to_receive,\n accepting_strategy,\n accepting_threshold\n )\nSELECT uuid_generate_v5($1, id::text),\n $1,\n uuid_generate_v5($1, exercise_id::text),\n peer_reviews_to_give,\n peer_reviews_to_receive,\n accepting_strategy,\n accepting_threshold\nFROM peer_review_configs\nWHERE course_id = $2\nAND deleted_at IS NULL;\n " - }, - "b4aa488f4f835c2b3900955ae54fd4bdff8818c3c2935c88aa89848bb276dea6": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "exercise_type", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "assignment", - "ordinal": 4, - "type_info": "Jsonb" - }, - { - "name": "deleted_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "private_spec", - "ordinal": 6, - "type_info": "Jsonb" - }, - { - "name": "public_spec", - "ordinal": 7, - "type_info": "Jsonb" - }, - { - "name": "model_solution_spec", - "ordinal": 8, - "type_info": "Jsonb" - }, - { - "name": "copied_from", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "exercise_slide_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "order_number", - "ordinal": 11, - "type_info": "Int4" - } - ], - "nullable": [false, false, false, false, false, true, true, true, true, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM exercise_tasks et\nWHERE et.id = $1;\n " - }, - "b52cac8cc5563abf837991f96ecda33e14de41999b3b6fbb78203634035162e1": { - "describe": { - "columns": [ - { - "name": "id!", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "course_id!", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "page_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "feedback_given!", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "selected_text", - "ordinal": 5, - "type_info": "Text" - }, - { - "name": "marked_as_read!", - "ordinal": 6, - "type_info": "Bool" - }, - { - "name": "created_at!", - "ordinal": 7, - "type_info": "Timestamptz" - }, - { - "name": "block_ids: Vec", - "ordinal": 8, - "type_info": "UuidArray" - }, - { - "name": "block_texts: Vec>", - "ordinal": 9, - "type_info": "VarcharArray" - }, - { - "name": "block_order_numbers: Vec>", - "ordinal": 10, - "type_info": "Int4Array" - }, - { - "name": "page_title", - "ordinal": 11, - "type_info": "Varchar" - }, - { - "name": "page_url_path", - "ordinal": 12, - "type_info": "Varchar" - } - ], - "nullable": [ - false, - true, - true, - true, - false, - true, - false, - false, - null, - null, - null, - false, - false - ], - "parameters": { - "Left": ["Uuid", "Bool", "Int8", "Int8"] - } - }, - "query": "\nSELECT fb.*,\n pages.title as \"page_title\",\n pages.url_path as \"page_url_path\"\nFROM (\n SELECT feedback.id as \"id!\",\n feedback.user_id,\n feedback.course_id as \"course_id!\",\n feedback.page_id,\n feedback.feedback_given as \"feedback_given!\",\n feedback.selected_text,\n feedback.marked_as_read as \"marked_as_read!\",\n feedback.created_at as \"created_at!\",\n array_agg(block_feedback.block_id) filter (\n where block_feedback.block_id IS NOT NULL\n ) AS \"block_ids: Vec\",\n array_agg(block_feedback.block_text) filter (\n where block_feedback.block_id IS NOT NULL\n ) AS \"block_texts: Vec>\",\n array_agg(block_feedback.order_number) filter (\n where block_feedback.block_id IS NOT NULL\n ) AS \"block_order_numbers: Vec>\"\n FROM feedback\n LEFT JOIN block_feedback ON block_feedback.feedback_id = feedback.id\n WHERE course_id = $1\n AND feedback.marked_as_read = $2\n AND feedback.deleted_at IS NULL\n AND block_feedback.deleted_at IS NULL\n GROUP BY feedback.id,\n feedback.user_id,\n feedback.course_id,\n feedback.feedback_given,\n feedback.marked_as_read,\n feedback.created_at\n ORDER BY feedback.created_at DESC,\n feedback.id\n LIMIT $3 OFFSET $4\n ) fb\n JOIN pages on pages.id = fb.page_id\n" - }, - "b57648f4d24a296f9fe2491db7162c90974400f3d523df699448dadde9c660d7": { - "describe": { - "columns": [ - { - "name": "count", - "ordinal": 0, - "type_info": "Int8" - } - ], - "nullable": [null], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT COUNT(*) AS count\nFROM peer_review_submissions\nWHERE exercise_slide_submission_id = $1\n AND deleted_at IS NULL\n " - }, - "b616231aba67e6ed368e29f92d4426ec293a57bb98b200a65ac9fa3a03383e87": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_module_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "completion_date", - "ordinal": 7, - "type_info": "Timestamptz" - }, - { - "name": "completion_registration_attempt_date", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "completion_language", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "eligible_for_ects", - "ordinal": 10, - "type_info": "Bool" - }, - { - "name": "email", - "ordinal": 11, - "type_info": "Varchar" - }, - { - "name": "grade", - "ordinal": 12, - "type_info": "Int4" - }, - { - "name": "passed", - "ordinal": 13, - "type_info": "Bool" - }, - { - "name": "course_instance_id", - "ordinal": 14, - "type_info": "Uuid" - }, - { - "name": "prerequisite_modules_completed", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "completion_granter_user_id", - "ordinal": 16, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - false, - false, - false, - true, - false, - false, - false, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM course_module_completions\nWHERE course_instance_id = $1\n AND deleted_at IS NULL\n " - }, - "b69caf3f51db3e0e165a87708407f0d5f32b72fb2c0f974572103a0db0826b3d": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "chapter_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "url_path", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "title", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "deleted_at", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "content", - "ordinal": 9, - "type_info": "Jsonb" - }, - { - "name": "order_number", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "hidden", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "page_language_group_id", - "ordinal": 13, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - true, - false, - false, - true, - false, - false, - true, - false, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE pages\nSET deleted_at = now()\nWHERE id = $1\nRETURNING id,\n created_at,\n updated_at,\n course_id,\n exam_id,\n chapter_id,\n url_path,\n title,\n deleted_at,\n content,\n order_number,\n copied_from,\n hidden,\n page_language_group_id\n " - }, - "b6def96f6973719237ce93811fd8a9215bf24529cab71d262f22f11d13ddf526": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "deleted_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "deadline", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "page_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "score_maximum", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "order_number", - "ordinal": 9, - "type_info": "Int4" - }, - { - "name": "chapter_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 12, - "type_info": "Uuid" - }, - { - "name": "max_tries_per_slide", - "ordinal": 13, - "type_info": "Int4" - }, - { - "name": "limit_number_of_tries", - "ordinal": 14, - "type_info": "Bool" - }, - { - "name": "needs_peer_review", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "use_course_default_peer_review_config", - "ordinal": 16, - "type_info": "Bool" - }, - { - "name": "exercise_language_group_id", - "ordinal": 17, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - false, - true, - false, - false, - false, - true, - true, - true, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM exercises\nWHERE chapter_id = $1\n AND deleted_at IS NULL\n" - }, - "b70ff6e4dfab0f4f914a18fa28313455732e13d7e2161675f053897793a27708": { - "describe": { - "columns": [ - { - "name": "language", - "ordinal": 0, - "type_info": "Varchar" - }, - { - "name": "organization_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "minimum_points_treshold", - "ordinal": 2, - "type_info": "Int4" - } - ], - "nullable": [true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT language,\n organization_id,\n minimum_points_treshold\nFROM exams\nWHERE id = $1\n " - }, - "b728d2fd12783d3a15d010514c3a2c9bfb2cdc2f947c5e849f297860e785ebe0": { - "describe": { - "columns": [ - { - "name": "name", - "ordinal": 0, - "type_info": "Varchar" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Text"] - } - }, - "query": "\nSELECT name\nFROM file_uploads\nWHERE path = $1\n" - }, - "b7336ab75d3bb0066457bdff2f9f3506324004fcc44a1754c2eea93ebcdac888": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Timestamptz"] - } - }, - "query": "\nSELECT exams.id\nFROM exams\n LEFT JOIN ended_processed_exams ON (ended_processed_exams.exam_id = exams.id)\nWHERE exams.ends_at <= $1\n AND ended_processed_exams.created_at IS NULL\n AND exams.deleted_at IS NULL\n AND ended_processed_exams.deleted_at IS NULL\n " - }, - "b762efb77876e893abf712da8e1568b7406c5efd2cbe92e54520b6c93558794b": { - "describe": { - "columns": [ - { - "name": "course_id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT course_id\nfrom exercise_task_gradings\nwhere id = $1\n " - }, - "b7cbf3df23e8fb8630939389fbfa4d150210f56e3fc6f8e85ebee0664a94255a": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "chapter_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "url_path", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "title", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "deleted_at", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "content", - "ordinal": 9, - "type_info": "Jsonb" - }, - { - "name": "order_number", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "hidden", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "page_language_group_id", - "ordinal": 13, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - true, - false, - false, - true, - false, - false, - true, - false, - true - ], - "parameters": { - "Left": ["Uuid", "Jsonb", "Varchar", "Varchar", "Uuid"] - } - }, - "query": "\nUPDATE pages\nSET content = $2,\n url_path = $3,\n title = $4,\n chapter_id = $5\nWHERE id = $1\nRETURNING id,\n created_at,\n updated_at,\n course_id,\n exam_id,\n chapter_id,\n url_path,\n title,\n deleted_at,\n content,\n order_number,\n copied_from,\n pages.hidden,\n pages.page_language_group_id\n " - }, - "b7da3dd557cb9af973482a0082a9837549e636d4ea40655aeacc2fbb2a6abe40": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 7, - "type_info": "Timestamptz" - }, - { - "name": "score_given", - "ordinal": 8, - "type_info": "Float4" - }, - { - "name": "grading_progress: _", - "ordinal": 9, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - }, - { - "name": "activity_progress: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": ["initialized", "started", "in-progress", "submitted", "completed"] - }, - "name": "activity_progress" - } - } - }, - { - "name": "reviewing_stage: _", - "ordinal": 11, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "not_started", - "peer_review", - "self_review", - "waiting_for_peer_reviews", - "waiting_for_manual_grading", - "reviewed_and_locked" - ] - }, - "name": "reviewing_stage" - } - } - }, - { - "name": "selected_exercise_slide_id", - "ordinal": 12, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - false, - false, - true, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nSELECT id,\n user_id,\n exercise_id,\n course_instance_id,\n exam_id,\n created_at,\n updated_at,\n deleted_at,\n score_given,\n grading_progress AS \"grading_progress: _\",\n activity_progress AS \"activity_progress: _\",\n reviewing_stage AS \"reviewing_stage: _\",\n selected_exercise_slide_id\nFROM user_exercise_states\nWHERE user_id = $1\n AND exercise_id = $2\n AND (course_instance_id = $3 OR exam_id = $4)\n AND deleted_at IS NULL\n " - }, - "b9159ddd17dc391f0bd7b726633dff02d1530aa2b0b270b4947d749442850451": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "UPDATE chapters SET front_page_id = $1 WHERE id = $2" - }, - "b93dd0d1fc364bd30512ffeb2a8467fc2aac096dfd7a06cea12711d095afd98d": { - "describe": { - "columns": [ - { - "name": "peer_review_question_submission_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "text_data", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "number_data", - "ordinal": 2, - "type_info": "Float4" - }, - { - "name": "peer_review_config_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "peer_review_question_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "order_number", - "ordinal": 5, - "type_info": "Int4" - }, - { - "name": "question", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "question_type: PeerReviewQuestionType", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": ["essay", "scale"] - }, - "name": "peer_review_question_type" - } - } - }, - { - "name": "answer_required", - "ordinal": 8, - "type_info": "Bool" - }, - { - "name": "peer_review_submission_id", - "ordinal": 9, - "type_info": "Uuid" - } - ], - "nullable": [false, true, true, false, false, false, false, false, false, false], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nSELECT answers.id AS peer_review_question_submission_id,\n answers.text_data,\n answers.number_data,\n questions.peer_review_config_id,\n questions.id AS peer_review_question_id,\n questions.order_number,\n questions.question,\n questions.question_type AS \"question_type: PeerReviewQuestionType\",\n questions.answer_required,\n submissions.id AS peer_review_submission_id\nFROM peer_review_question_submissions answers\n JOIN peer_review_questions questions ON (\n answers.peer_review_question_id = questions.id\n )\n JOIN peer_review_submissions submissions ON (\n answers.peer_review_submission_id = submissions.id\n )\nWHERE submissions.user_id = $1\n AND submissions.exercise_id = $2\n AND submissions.course_instance_id = $3\n AND questions.deleted_at IS NULL\n AND answers.deleted_at IS NULL\n AND submissions.deleted_at IS NULL\n " - }, - "ba33829b1fc5feebb473bd94cc0bbf3a79307d071a753213cf2a27f5333ac009": { - "describe": { - "columns": [ - { - "name": "user_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "score_given", - "ordinal": 2, - "type_info": "Float4" - } - ], - "nullable": [false, false, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT user_id,\n exercise_id,\n score_given\nFROM user_exercise_states\nWHERE course_instance_id = $1\nAND deleted_at IS NULL\nORDER BY user_id ASC\n" - }, - "bc18f1597a1821efdb30554f1006267d5fc5471331b38c4b32aec4c25517da6c": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Uuid", "Uuid", "Int4"] - } - }, - "query": "\nINSERT INTO peer_review_queue_entries (\n id,\n user_id,\n exercise_id,\n course_instance_id,\n receiving_peer_reviews_exercise_slide_submission_id,\n peer_review_priority\n )\nVALUES ($1, $2, $3, $4, $5, $6)\nRETURNING id\n " - }, - "bc9ec84596a94fb96cb6efa0bc1ea8e7b99add5da3e67ec659365c02623a770c": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_slide_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "user_exercise_state_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "score_given", - "ordinal": 6, - "type_info": "Float4" - }, - { - "name": "grading_progress: _", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - } - ], - "nullable": [false, false, false, true, false, false, true, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n deleted_at,\n exercise_slide_id,\n user_exercise_state_id,\n score_given,\n grading_progress AS \"grading_progress: _\"\nFROM user_exercise_slide_states\nWHERE user_exercise_state_id = $1\n AND deleted_at IS NULL\n " - }, - "bcacf1d604f43d60c9edebe3db12a5a0c66402ae2f76268bd261aa102bba0cec": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "url", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "course_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "status: ExerciseRepositoryStatus", - "ordinal": 4, - "type_info": { - "Custom": { - "kind": { - "Enum": ["pending", "success", "failure"] - }, - "name": "exercise_repository_status" - } - } - }, - { - "name": "error_message", - "ordinal": 5, - "type_info": "Text" - } - ], - "nullable": [false, false, true, true, false, true], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nSELECT id,\n url,\n course_id,\n exam_id,\n status AS \"status: ExerciseRepositoryStatus\",\n error_message\nFROM exercise_repositories\nWHERE (\n course_id = $1\n OR exam_id = $2\n )\n AND deleted_at IS NULL\n" - }, - "bd0d6dbc44d2430327d775796d4ab1ec8a2c6eb29d27592fe5cffbfd9dc98213": { - "describe": { - "columns": [ - { - "name": "course_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 1, - "type_info": "Uuid" - } - ], - "nullable": [true, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT course_id,\n exam_id\nfrom exercise_task_gradings\nwhere id = $1\n" - }, - "bd50f023d1ba361909f97b6a357d1381d7790e227f3c18314cf73864c40730c3": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "peer_review_config_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "order_number", - "ordinal": 2, - "type_info": "Int4" - }, - { - "name": "question", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "question_type: _", - "ordinal": 4, - "type_info": { - "Custom": { - "kind": { - "Enum": ["essay", "scale"] - }, - "name": "peer_review_question_type" - } - } - }, - { - "name": "answer_required", - "ordinal": 5, - "type_info": "Bool" - } - ], - "nullable": [false, false, false, false, false, false], - "parameters": { - "Left": ["UuidArray"] - } - }, - "query": "\nSELECT id,\n peer_review_config_id,\n order_number,\n question,\n question_type AS \"question_type: _\",\n answer_required\nfrom peer_review_questions\nWHERE id IN (\n SELECT UNNEST($1::uuid [])\n )\n AND deleted_at IS NULL;\n " - }, - "bd8b8be4b273f284397a59f15b1dd90c29ced3a5eab514f5ea1bd176fcd87ff2": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "organization_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "deleted_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "slug", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "content_search_language", - "ordinal": 7, - "type_info": "Text" - }, - { - "name": "language_code", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "copied_from", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "course_language_group_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "description", - "ordinal": 11, - "type_info": "Text" - }, - { - "name": "is_draft", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "is_test_mode", - "ordinal": 13, - "type_info": "Bool" - }, - { - "name": "base_module_completion_requires_n_submodule_completions", - "ordinal": 14, - "type_info": "Int4" - } - ], - "nullable": [ - false, - false, - false, - false, - false, - true, - false, - null, - false, - true, - false, - true, - false, - false, - false - ], - "parameters": { - "Left": ["Uuid", "Int8", "Int8"] - } - }, - "query": "\nSELECT\n DISTINCT(c.id),\n c.name,\n c.created_at,\n c.updated_at,\n c.organization_id,\n c.deleted_at,\n c.slug,\n c.content_search_language::text,\n c.language_code,\n c.copied_from,\n c.course_language_group_id,\n c.description,\n c.is_draft,\n c.is_test_mode,\n c.base_module_completion_requires_n_submodule_completions\nFROM courses as c\n LEFT JOIN course_instances as ci on c.id = ci.course_id\nWHERE\n c.organization_id = $1 AND\n ci.starts_at < NOW() AND ci.ends_at > NOW() AND\n c.deleted_at IS NULL AND ci.deleted_at IS NULL\n LIMIT $2 OFFSET $3;\n " - }, - "beeacda4f1ac97fe4e77d9af974d5e774ab2de2ca3273698f91132d2db765ff8": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE repository_exercises\nSET deleted_at = now()\nWHERE repository_id = $1\nAND deleted_at IS NULL\n" - }, - "bf72e4f9ddb0fde913ffd9dbc6031cf822382d1bad16b900e6fbb347b3d329a6": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Varchar", "Text", "Uuid"] - } - }, - "query": "\nINSERT INTO glossary (term, definition, course_id)\nSELECT $1, $2, $3\nRETURNING id\n" - }, - "bfa02fde6602f70bb732851aaa2e194cdff03a3562341959cc4b2791bc5176fb": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "deleted_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "deadline", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "page_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "score_maximum", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "order_number", - "ordinal": 9, - "type_info": "Int4" - }, - { - "name": "chapter_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 12, - "type_info": "Uuid" - }, - { - "name": "max_tries_per_slide", - "ordinal": 13, - "type_info": "Int4" - }, - { - "name": "limit_number_of_tries", - "ordinal": 14, - "type_info": "Bool" - }, - { - "name": "needs_peer_review", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "use_course_default_peer_review_config", - "ordinal": 16, - "type_info": "Bool" - }, - { - "name": "exercise_language_group_id", - "ordinal": 17, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - false, - true, - false, - false, - false, - true, - true, - true, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM exercises\nWHERE exam_id = $1\n AND deleted_at IS NULL\n" - }, - "c00028f92949b3e8d712a87d620c60b033e48b43583ed796d2e73d219df2931b": { - "describe": { - "columns": [ - { - "name": "pending", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "handled", - "ordinal": 1, - "type_info": "Int8" - } - ], - "nullable": [null, null], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT COUNT(*) filter (\n where proposed_page_edits.pending = true\n) AS pending,\nCOUNT(*) filter (\n where proposed_page_edits.pending = false\n) AS handled\nFROM proposed_page_edits\nWHERE proposed_page_edits.course_id = $1\nAND proposed_page_edits.deleted_at IS NULL\n" - }, - "c05303789bb275fbdb7f8205a7933805eacc79488a5f0ec7acf9d1254098068a": { - "describe": { - "columns": [ - { - "name": "course_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "course_slug", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "course_name", - "ordinal": 2, - "type_info": "Varchar" - }, - { - "name": "course_description", - "ordinal": 3, - "type_info": "Text" - }, - { - "name": "course_instance_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_instance_name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "course_instance_description", - "ordinal": 6, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, false, true, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT\n c.id AS course_id,\n c.slug AS course_slug,\n c.name AS course_name,\n c.description AS course_description,\n ci.id AS course_instance_id,\n ci.name AS course_instance_name,\n ci.description AS course_instance_description\nFROM course_instances AS ci\n JOIN course_instance_enrollments AS cie ON ci.id = cie.course_instance_id\n LEFT JOIN courses AS c ON ci.course_id = c.id\nWHERE cie.user_id = $1\n AND ci.deleted_at IS NULL\n AND cie.deleted_at IS NULL\n AND c.deleted_at IS NULL\n" - }, - "c0b9a180c35f5891305a61ef57a65bceba00f6e0190612ad7348ad7185ca89f2": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE material_references\nSET deleted_at = now()\nWHERE material_references.id = $1;\n " - }, - "c0dd6d2b9663471b98655ac0294c034bf6cd886c4da906b01de700bddd7aaf7f": { - "describe": { - "columns": [ - { - "name": "user_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "email", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "first_name", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "last_name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "search_helper", - "ordinal": 6, - "type_info": "Text" - } - ], - "nullable": [false, false, false, false, true, true, true], - "parameters": { - "Left": ["Text"] - } - }, - "query": "\nSELECT user_id,\n created_at,\n updated_at,\n email,\n first_name,\n last_name,\n search_helper\nFROM (\n SELECT *,\n LOWER($1) <<->search_helper AS dist\n FROM user_details\n ORDER BY dist, LENGTH(search_helper)\n LIMIT 100\n ) search\nWHERE dist < 0.7;\n" - }, - "c0f24a805cf0a59c92963d7c37909c123b95498c27f5e32c9332cfa4f9b5ec22": { - "describe": { - "columns": [ - { - "name": "is_draft", - "ordinal": 0, - "type_info": "Bool" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT is_draft\nFROM courses\nWHERE id = $1\n" - }, - "c1077b721fbdb17d2e726008507f9ddb90eb026821339890bdda90e4de4f68d2": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE proposed_block_edits\nSET status = 'rejected'\nWHERE id = $1\n" - }, - "c118779ce8e5e8cf924539c14efbd62a1673fff5cfa2eda7ac495af348da8ba7": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Int4Array"] - } - }, - "query": "\nSELECT id\nFROM users\nWHERE upstream_id IN (\n SELECT UNNEST($1::integer [])\n )\nAND deleted_at IS NULL\n" - }, - "c22a7e6cb7aae8fb53d173690581f801243debf6a5121210c7a9af3647658a55": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "course_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "chapter_number", - "ordinal": 3, - "type_info": "Int4" - }, - { - "name": "created_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "front_page_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "opens_at", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "chapter_image_path", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "copied_from", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "deadline", - "ordinal": 11, - "type_info": "Timestamptz" - }, - { - "name": "course_module_id", - "ordinal": 12, - "type_info": "Uuid" - }, - { - "name": "color", - "ordinal": 13, - "type_info": "Varchar" - } - ], - "nullable": [ - false, - false, - false, - false, - false, - false, - true, - true, - true, - true, - true, - true, - false, - true - ], - "parameters": { - "Left": ["Uuid", "Varchar", "Timestamptz", "Timestamptz", "Uuid", "Varchar"] - } - }, - "query": "\nUPDATE chapters\nSET name = $2,\n deadline = $3,\n opens_at = $4,\n course_module_id = $5,\n color = $6\nWHERE id = $1\nRETURNING *;\n " - }, - "c272fb1065d0356f4d273d08da96d6e0854c608fb1a2f8fb63a1c5a595f6ab78": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "peer_review_config_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "order_number", - "ordinal": 5, - "type_info": "Int4" - }, - { - "name": "question", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "question_type: _", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": ["essay", "scale"] - }, - "name": "peer_review_question_type" - } - } - }, - { - "name": "answer_required", - "ordinal": 8, - "type_info": "Bool" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n deleted_at,\n peer_review_config_id,\n order_number,\n question,\n question_type AS \"question_type: _\",\n answer_required\nFROM peer_review_questions\nWHERE peer_review_config_id = $1\n AND deleted_at IS NULL;\n " - }, - "c2c3add9d6082664177527aa8ae7a7b96baebfa4b6244224efddd48970fc4208": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "course_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "chapter_number", - "ordinal": 3, - "type_info": "Int4" - }, - { - "name": "created_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "front_page_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "opens_at", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "chapter_image_path", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "copied_from", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "deadline", - "ordinal": 11, - "type_info": "Timestamptz" - }, - { - "name": "course_module_id", - "ordinal": 12, - "type_info": "Uuid" - }, - { - "name": "color", - "ordinal": 13, - "type_info": "Varchar" - } - ], - "nullable": [ - false, - false, - false, - false, - false, - false, - true, - true, - true, - true, - true, - true, - false, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT c.*\nFROM chapters c,\n pages p\nWHERE c.id = p.chapter_id\n AND p.id = $1\n AND c.deleted_at IS NULL\n " - }, - "c2e755ac4f0fe429d46f15c303e97a6feea1a7c4aa6c5a1ee7d758407c3385c6": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Uuid", - { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - ] - } - }, - "query": "\nINSERT INTO user_exercise_slide_states (\n id,\n exercise_slide_id,\n user_exercise_state_id,\n grading_progress\n )\nVALUES ($1, $2, $3, $4)\nRETURNING id\n " - }, - "c41883ff57f67f01814525030af67d4a3bc472010ee6871a3191dcd0ee3e8f53": { - "describe": { - "columns": [ - { - "name": "block_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "block_attribute", - "ordinal": 1, - "type_info": "Text" - }, - { - "name": "original_text", - "ordinal": 2, - "type_info": "Text" - }, - { - "name": "changed_text", - "ordinal": 3, - "type_info": "Text" - } - ], - "nullable": [false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE proposed_block_edits\nSET status = 'accepted'\nWHERE id = $1\nRETURNING block_id,\n block_attribute,\n original_text,\n changed_text\n" - }, - "c4db451cf0d08b2fca14976798e0883a3961533b35d7dd4d5057e1662d482592": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "content", - "ordinal": 4, - "type_info": "Jsonb" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "subject", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "exercise_completions_threshold", - "ordinal": 7, - "type_info": "Int4" - }, - { - "name": "points_threshold", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "course_instance_id", - "ordinal": 9, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, true, true, false, true, true, true, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "SELECT *\nFROM email_templates\nWHERE course_instance_id = $1\n AND deleted_at IS NULL" - }, - "c50f9d5b2936fcabdacedce00d2fdebe382df38121b43826c31ab15ba54a1452": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "slug", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "public_url", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "internal_url", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "max_reprocessing_submissions_at_once", - "ordinal": 8, - "type_info": "Int4" - } - ], - "nullable": [false, false, false, true, false, false, false, true, false], - "parameters": { - "Left": ["Text"] - } - }, - "query": "\nSELECT *\nFROM exercise_services\nWHERE slug = $1\nAND deleted_at IS NULL\n " - }, - "c515ee82610c997f53c83f72ddf8426145e47cf0d9476d2281506c139af86cb6": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Jsonb", "Uuid"] - } - }, - "query": "\nUPDATE pages\nSET content = $1\nWHERE id = $2;\n" - }, - "c533d9459af33bf3e0afaef0c3d440311a2c4e1e41303f6d82e7ce0177b7fa54": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nUPDATE user_exercise_states\nSET selected_exercise_slide_id = $4\nWHERE user_id = $1\n AND exercise_id = $2\n AND (course_instance_id = $3 OR exam_id = $5)\n AND deleted_at IS NULL\n " - }, - "c5c02778029045a48b32567f114b8fbd441b01ac1e0908eca4e02a067327036e": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Varchar", "Timestamptz", "Timestamptz", "Int4"] - } - }, - "query": "\nUPDATE exams\nSET name = COALESCE($2, name),\n starts_at = $3,\n ends_at = $4,\n time_minutes = $5\nWHERE id = $1\n" - }, - "c6d5ffed3573883c9e69529464b8f96325fbbf5c4ea893ae9e7352d3ce48a70d": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Text", "Uuid"] - } - }, - "query": "\nUPDATE regradings\nSET error_message = $1\nWHERE id = $2\n" - }, - "c6f8015b29670a51b64ea5effe14e0f78ae70ef2196b3e1c1a66a4a4439ee269": { - "describe": { - "columns": [ - { - "name": "latest_submission_time", - "ordinal": 0, - "type_info": "Timestamptz" - } - ], - "nullable": [null], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nSELECT MAX(created_at) as latest_submission_time\nFROM peer_review_submissions\nWHERE user_id = $1\n AND exercise_id = $2\n AND course_instance_id = $3\n AND deleted_at IS NULL\n " - }, - "c73a2a7333319894d99be453e45b50701829dd037f04f3af0bd3862781c600bf": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "copied_from", - "ordinal": 1, - "type_info": "Uuid" - } - ], - "nullable": [false, true], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\n INSERT INTO exercises (\n id,\n exam_id,\n name,\n deadline,\n page_id,\n score_maximum,\n order_number,\n chapter_id,\n copied_from\n )\n SELECT uuid_generate_v5($1, id::text),\n $1,\n name,\n deadline,\n uuid_generate_v5($1, page_id::text),\n score_maximum,\n order_number,\n uuid_generate_v5($1, chapter_id::text),\n id\n FROM exercises\n WHERE exam_id = $2\n AND deleted_at IS NULL\n RETURNING id,\n copied_from;\n " - }, - "c96653a4dda74a1d04b4df016cbb8a3eea3f0e72f75a8fd9d623b616c530e2af": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nUPDATE user_exercise_task_states\nSET deleted_at = now()\nWHERE user_exercise_slide_state_id IN (\n SELECT id\n FROM user_exercise_slide_states\n WHERE user_exercise_state_id IN (\n SELECT id\n FROM user_exercise_states\n WHERE user_id = $1\n AND course_instance_id = $2\n )\n )\n AND deleted_at IS NULL\n" - }, - "c9c3c8d57edc037d1bf1dc13a8eb51d0d179798dc25f1f7714850b345053b5d2": { - "describe": { - "columns": [ - { - "name": "count", - "ordinal": 0, - "type_info": "Int8" - } - ], - "nullable": [null], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT COUNT(*) AS count\nFROM page_history\nWHERE page_id = $1\nAND deleted_at IS NULL\n" - }, - "c9f9f907994a0773a19e94bee68daac50ef95bed3921b84db058b9e44f05436a": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "secret_key", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM study_registry_registrars\nWHERE id = $1\n AND deleted_at IS NULL\n " - }, - "cad525e2bf541f11cb2e5844bd461e0c9d784ab0777f6b850d68a5ad5ec242ed": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "peer_reviews_to_give", - "ordinal": 6, - "type_info": "Int4" - }, - { - "name": "peer_reviews_to_receive", - "ordinal": 7, - "type_info": "Int4" - }, - { - "name": "accepting_threshold", - "ordinal": 8, - "type_info": "Float4" - }, - { - "name": "accepting_strategy: _", - "ordinal": 9, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "automatically_accept_or_reject_by_average", - "automatically_accept_or_manual_review_by_average", - "manual_review_everything" - ] - }, - "name": "peer_review_accepting_strategy" - } - } - } - ], - "nullable": [false, false, false, true, false, true, false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n deleted_at,\n course_id,\n exercise_id,\n peer_reviews_to_give,\n peer_reviews_to_receive,\n accepting_threshold,\n accepting_strategy AS \"accepting_strategy: _\"\nFROM peer_review_configs\nWHERE exercise_id = $1\n AND deleted_at IS NULL\n " - }, - "cb4274ae34447c4c5f7629ca692a91b49faea0db90cc160062b393fca15537b1": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "exercise_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exercise_task_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "score_given", - "ordinal": 5, - "type_info": "Float4" - }, - { - "name": "data_json", - "ordinal": 6, - "type_info": "Jsonb" - } - ], - "nullable": [false, false, false, false, false, true, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT exercise_task_submissions.id,\n user_id,\n exercise_task_submissions.created_at,\n exercise_slide_submissions.exercise_id,\n exercise_task_submissions.exercise_task_id,\n exercise_task_gradings.score_given,\n exercise_task_submissions.data_json\nFROM exercise_task_submissions\n JOIN exercise_slide_submissions ON exercise_task_submissions.exercise_slide_submission_id = exercise_slide_submissions.id\n JOIN exercise_task_gradings on exercise_task_submissions.exercise_task_grading_id = exercise_task_gradings.id\n JOIN exercises on exercise_slide_submissions.exercise_id = exercises.id\nWHERE exercise_slide_submissions.exam_id = $1\n AND exercise_task_submissions.deleted_at IS NULL\n AND exercise_task_gradings.deleted_at IS NULL\n AND exercises.deleted_at IS NULL;\n " - }, - "cb67a9dfb5be8ec9ba7cf67b4dd511093fc64f0556f4ffdae15c3286ba70d83d": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Date"] - } - }, - "query": "\nDELETE FROM page_visit_datum_daily_visit_hashing_keys WHERE valid_for_date < $1\n " - }, - "cba4bfc5b328ead58a3c14aa30439ef9daf47a9d25c72f6343d53b8f233965e1": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Bool", "Bool", "Uuid"] - } - }, - "query": "\nUPDATE exercises\nSET use_course_default_peer_review_config = $1,\n needs_peer_review = $2\nWHERE id = $3\nRETURNING id;\n " - }, - "cbe5322e580b9612ae14b75c27f8012cea260ba0bc542c3f2dc6eb2ea7b2cff4": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "content", - "ordinal": 1, - "type_info": "Jsonb" - } - ], - "nullable": [false, false], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\n INSERT INTO pages (\n id,\n exam_id,\n content,\n url_path,\n title,\n chapter_id,\n order_number,\n copied_from,\n content_search_language\n )\n SELECT uuid_generate_v5($1, id::text),\n $1,\n content,\n url_path,\n title,\n uuid_generate_v5($1, chapter_id::text),\n order_number,\n id,\n content_search_language\n FROM pages\n WHERE (exam_id = $2)\n AND deleted_at IS NULL\n RETURNING id,\n content;\n " - }, - "ccdcf7ce3537744686b4a00dc74692d8c5b333e058fcf54fed5891ec2c527d60": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "slug", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "public_url", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "internal_url", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "max_reprocessing_submissions_at_once", - "ordinal": 8, - "type_info": "Int4" - } - ], - "nullable": [false, false, false, true, false, false, false, true, false], - "parameters": { - "Left": ["Varchar", "Varchar", "Varchar", "Varchar", "Int4", "Uuid"] - } - }, - "query": "\nUPDATE exercise_services\n SET name=$1, slug=$2, public_url=$3, internal_url=$4, max_reprocessing_submissions_at_once=$5\nWHERE id=$6\n RETURNING *\n " - }, - "ccefb55e5d76ed7eb3cf16329d1bfb4d9559069c775b27c6e5b5e4c87459c828": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_exercise_state_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "score_given", - "ordinal": 5, - "type_info": "Float4" - }, - { - "name": "teacher_decision: _", - "ordinal": 6, - "type_info": { - "Custom": { - "kind": { - "Enum": ["full-points", "zero-points", "custom-points", "suspected-plagiarism"] - }, - "name": "teacher_decision_type" - } - } - } - ], - "nullable": [false, false, false, false, true, false, false], - "parameters": { - "Left": [ - "Uuid", - { - "Custom": { - "kind": { - "Enum": ["full-points", "zero-points", "custom-points", "suspected-plagiarism"] - }, - "name": "teacher_decision_type" - } - }, - "Float4", - "Uuid" - ] - } - }, - "query": "\nINSERT INTO teacher_grading_decisions (\n user_exercise_state_id,\n teacher_decision,\n score_given,\n user_id\n )\nVALUES ($1, $2, $3, $4)\nRETURNING id,\n user_exercise_state_id,\n created_at,\n updated_at,\n deleted_at,\n score_given,\n teacher_decision AS \"teacher_decision: _\";\n " - }, - "cd0ffa9cef60a26a576c587901bca78792a9d6936bfb9d84c5a7199027c53c3b": { - "describe": { - "columns": [ - { - "name": "exam_id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nINSERT INTO ended_processed_exams(exam_id)\nVALUES ($1) ON CONFLICT (exam_id) DO\nUPDATE\nSET deleted_at = NULL\nRETURNING exam_id\n " - }, - "cd3b491d6ba8e90f68bc92547628e63003efaf17d7d6df44778658e914427261": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "organization_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "deleted_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "slug", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "content_search_language", - "ordinal": 7, - "type_info": "Text" - }, - { - "name": "language_code", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "copied_from", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "course_language_group_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "description", - "ordinal": 11, - "type_info": "Text" - }, - { - "name": "is_draft", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "is_test_mode", - "ordinal": 13, - "type_info": "Bool" - }, - { - "name": "base_module_completion_requires_n_submodule_completions", - "ordinal": 14, - "type_info": "Int4" - } - ], - "nullable": [ - false, - false, - false, - false, - false, - true, - false, - null, - false, - true, - false, - true, - false, - false, - false - ], - "parameters": { - "Left": [] - } - }, - "query": "\nSELECT id,\n name,\n created_at,\n updated_at,\n organization_id,\n deleted_at,\n slug,\n content_search_language::text,\n language_code,\n copied_from,\n course_language_group_id,\n description,\n is_draft,\n is_test_mode,\n base_module_completion_requires_n_submodule_completions\nFROM courses\nWHERE deleted_at IS NULL;\n" - }, - "cd6c2dc2c9a1920372f0ea2fdb0a74b36ef371be0ab2d0de56467213c94db593": { - "describe": { - "columns": [ - { - "name": "user_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 5, - "type_info": "Timestamptz" - } - ], - "nullable": [false, false, false, false, false, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM course_instance_enrollments\nWHERE user_id = $1\n AND deleted_at IS NULL\n " - }, - "ce086e7dd1040f7a6ee53042c7e8686dfc52ef7058bfd379d6ae0d00a4ffac24": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "user_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "receiving_peer_reviews_exercise_slide_submission_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "received_enough_peer_reviews", - "ordinal": 8, - "type_info": "Bool" - }, - { - "name": "peer_review_priority", - "ordinal": 9, - "type_info": "Int4" - }, - { - "name": "removed_from_queue_for_unusual_reason", - "ordinal": 10, - "type_info": "Bool" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE peer_review_queue_entries\nSET removed_from_queue_for_unusual_reason = TRUE\nWHERE id = $1\nRETURNING *\n " - }, - "cfbcaeb25e71b8cd1791ff95aa89e4fa44b627abc938c02650af5906ddf1f9e0": { - "describe": { - "columns": [ - { - "name": "page_id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "SELECT id AS page_id FROM pages WHERE exam_id = $1;" - }, - "d0002830dc115e4fd039530ef6e3edf90c1b12f5b39eb6e8cceb524b1f6dfb1a": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_module_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "completion_date", - "ordinal": 7, - "type_info": "Timestamptz" - }, - { - "name": "completion_registration_attempt_date", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "completion_language", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "eligible_for_ects", - "ordinal": 10, - "type_info": "Bool" - }, - { - "name": "email", - "ordinal": 11, - "type_info": "Varchar" - }, - { - "name": "grade", - "ordinal": 12, - "type_info": "Int4" - }, - { - "name": "passed", - "ordinal": 13, - "type_info": "Bool" - }, - { - "name": "course_instance_id", - "ordinal": 14, - "type_info": "Uuid" - }, - { - "name": "prerequisite_modules_completed", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "completion_granter_user_id", - "ordinal": 16, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - false, - false, - false, - true, - false, - false, - false, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nSELECT *\nFROM course_module_completions\nWHERE course_module_id = $1\n AND course_instance_id = $2\n AND user_id = $3\n AND deleted_at IS NULL\nORDER BY created_at DESC\nLIMIT 1\n " - }, - "d0037081bdb7d84526483a12e5070037392d36867f011134e611cfab8753b6e3": { - "describe": { - "columns": [ - { - "name": "organization_id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT courses.organization_id\nFROM course_instances\n JOIN courses ON courses.id = course_instances.course_id\nWHERE course_instances.id = $1\n" - }, - "d0d647cabb34006b51278fefae09a49ed68aafb275309f0ddc1192e81fbc0316": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "referrer", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "utm_source", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "utm_medium", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "utm_campaign", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "utm_term", - "ordinal": 10, - "type_info": "Varchar" - }, - { - "name": "utm_content", - "ordinal": 11, - "type_info": "Varchar" - }, - { - "name": "num_visitors", - "ordinal": 12, - "type_info": "Int4" - }, - { - "name": "visit_date", - "ordinal": 13, - "type_info": "Date" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - true, - true, - true, - true, - true, - true, - true, - false, - false - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM page_visit_datum_summary_by_courses\nWHERE course_id = $1\nAND deleted_at IS NULL\n" - }, - "d11197f25cfa1e87bd5df9ac4125ab442b3a4d351c6423720f51a0f845de8d1c": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "country", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "course_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "num_visitors", - "ordinal": 7, - "type_info": "Int4" - }, - { - "name": "visit_date", - "ordinal": 8, - "type_info": "Date" - } - ], - "nullable": [false, false, false, true, true, true, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM page_visit_datum_summary_by_courses_countries\nWHERE course_id = $1\n AND deleted_at IS NULL\n" - }, - "d13e367302b3873770dbcd15736161dd89130c0d06620cb5d337b1f7c9f230e8": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "UPDATE pages SET chapter_id = $1 WHERE id = $2" - }, - "d167d84ecde8f5bfc9b573de74cc7674a5b8649d68ac086320b592e539d7d1c8": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_task_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "data_json", - "ordinal": 5, - "type_info": "Jsonb" - }, - { - "name": "exercise_task_grading_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "metadata", - "ordinal": 7, - "type_info": "Jsonb" - }, - { - "name": "exercise_slide_id", - "ordinal": 8, - "type_info": "Uuid" - }, - { - "name": "exercise_slide_submission_id", - "ordinal": 9, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, true, false, true, true, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM exercise_task_submissions\nWHERE exercise_slide_submission_id = $1\n AND deleted_at IS NULL\n " - }, - "d1b9e023f5c44a5e7d40094eabe5441cc88db7fb1fd77a72062f2884aab2ac6a": { - "describe": { - "columns": [ - { - "name": "read", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "unread", - "ordinal": 1, - "type_info": "Int8" - } - ], - "nullable": [null, null], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT COUNT(*) filter (\n where marked_as_read\n ) AS read,\n COUNT(*) filter (\n where not(marked_as_read)\n ) AS unread\nFROM feedback\nWHERE course_id = $1\n AND feedback.deleted_at IS NULL\n" - }, - "d1bfbfda5ab2ce74a5b53928442158bedc8b73e6ed5ac674ef73b28f99dfdc48": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Uuid", "Varchar", "Jsonb", "Jsonb", "Jsonb", "Jsonb", "Int4"] - } - }, - "query": "\nINSERT INTO exercise_tasks (\n id,\n exercise_slide_id,\n exercise_type,\n assignment,\n private_spec,\n public_spec,\n model_solution_spec,\n order_number\n )\nVALUES ($1, $2, $3, $4, $5, $6, $7, $8)\nRETURNING id\n " - }, - "d21fdc6eb89bf28c479b64ee9a5fff8dbb67f4c8bb02b25779e672187fed4fd7": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Uuid", "Uuid"] - } - }, - "query": "\n INSERT INTO user_exercise_states (\n user_id,\n exercise_id,\n course_instance_id,\n selected_exercise_slide_id,\n exam_id\n )\n VALUES ($1, $2, $3, $4, $5)\n " - }, - "d29e71c211fd314405046b47e12599eba1b0c6245c572b7606c378d0f6e090b1": { - "describe": { - "columns": [ - { - "name": "oldest_date", - "ordinal": 0, - "type_info": "Timestamptz" - } - ], - "nullable": [null], - "parameters": { - "Left": [] - } - }, - "query": "\nSELECT MIN(created_at) AS oldest_date\nFROM page_visit_datum\nWHERE deleted_at IS NULL\n" - }, - "d2ed8d3cbd332bddd8c4cf768ec8c063f53b9603d928bf715448e68eb265f464": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "country", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "course_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "num_visitors", - "ordinal": 7, - "type_info": "Int4" - }, - { - "name": "visit_date", - "ordinal": 8, - "type_info": "Date" - } - ], - "nullable": [false, false, false, true, true, true, true, false, false], - "parameters": { - "Left": ["Date"] - } - }, - "query": "\nINSERT INTO page_visit_datum_summary_by_courses_countries (\n course_id,\n exam_id,\n country,\n num_visitors,\n visit_date\n )\nSELECT course_id,\n exam_id,\n country,\n COUNT(DISTINCT anonymous_identifier) AS num_visitors,\n $1 AS visit_date\nFROM page_visit_datum\nWHERE deleted_at IS NULL\n AND created_at::date = $1\n AND is_bot = FALSE\nGROUP BY course_id,\n exam_id,\n country ON CONFLICT (\n course_id,\n exam_id,\n visit_date,\n country,\n deleted_at\n ) DO\nUPDATE\nSET num_visitors = EXCLUDED.num_visitors\nRETURNING *;\n" - }, - "d309be59564d69ecad6e11cc6976649092966ea2236abd7c8ca72e64f78f8fcc": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nupdate email_deliveries\nset sent = TRUE\nwhere id = $1;\n " - }, - "d314527e01532add56aaf9ef089b046085e6cf22a326f162c6a7fe9a016974ad": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nUPDATE course_module_completions\nSET deleted_at = now()\nWHERE user_id = $1\nAND course_instance_id = $2\nAND deleted_at IS NULL\n" - }, - "d3aa44e79d429e3d8d35e1ada843ce14252e92cc1cdbf0ce055c152d15cfd68d": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "first_name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "last_name", - "ordinal": 2, - "type_info": "Varchar" - }, - { - "name": "email", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "role: UserRole", - "ordinal": 4, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "admin", - "assistant", - "teacher", - "reviewer", - "course_or_exam_creator", - "material_viewer", - "teaching_and_learning_services" - ] - }, - "name": "user_role" - } - } - } - ], - "nullable": [false, true, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT users.id,\n user_details.first_name,\n user_details.last_name,\n user_details.email,\n role AS \"role: UserRole\"\nFROM users\n JOIN roles ON users.id = roles.user_id\n JOIN user_details ON users.id = user_details.user_id\nWHERE roles.organization_id = $1\nAND roles.deleted_at IS NULL\n" - }, - "d565b3ca168a0beb24ee0a58c078fd031a52cd26a807c348bdb3fac1849bd456": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT organizations.id\nFROM pages\n LEFT OUTER JOIN courses ON courses.id = pages.course_id\n LEFT OUTER JOIN exams ON exams.id = pages.exam_id\n JOIN organizations ON organizations.id = courses.organization_id\n OR organizations.id = exams.organization_id\nWHERE pages.id = $1\n" - }, - "d58e2d1cf5e3252d1a09ca0d5763474e1831b093d7c24b6d938485ddb6a561a9": { - "describe": { - "columns": [ - { - "name": "exercise_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "count", - "ordinal": 1, - "type_info": "Int4" - }, - { - "name": "exercise_name", - "ordinal": 2, - "type_info": "Varchar" - } - ], - "nullable": [false, null, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT counts.*, exercises.name exercise_name\n FROM (\n SELECT exercise_id, count(*)::integer count\n FROM exercise_slide_submissions\n WHERE course_id = $1\n AND deleted_at IS NULL\n GROUP BY exercise_id\n ) counts\n JOIN exercises ON (counts.exercise_id = exercises.id);\n " - }, - "d5c34f4535bde41836833aa6990ddceac4113b7244f78bc4ac88e05554cebff1": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "browser", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "browser_version", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "operating_system", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "device_type", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "course_id", - "ordinal": 8, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "num_visitors", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "visit_date", - "ordinal": 11, - "type_info": "Date" - } - ], - "nullable": [false, false, false, true, true, true, true, true, true, true, false, false], - "parameters": { - "Left": ["Date"] - } - }, - "query": "\nINSERT INTO page_visit_datum_summary_by_courses_device_types (\n course_id,\n exam_id,\n browser,\n browser_version,\n operating_system,\n device_type,\n num_visitors,\n visit_date\n )\nSELECT course_id,\n exam_id,\n browser,\n browser_version,\n operating_system,\n device_type,\n COUNT(DISTINCT anonymous_identifier) AS num_visitors,\n $1 AS visit_date\nFROM page_visit_datum\nWHERE deleted_at IS NULL\n AND created_at::date = $1\n AND is_bot = FALSE\nGROUP BY course_id,\n exam_id,\n browser,\n browser_version,\n operating_system,\n device_type ON CONFLICT (\n course_id,\n exam_id,\n visit_date,\n browser,\n browser_version,\n operating_system,\n device_type,\n deleted_at\n ) DO\nUPDATE\nSET num_visitors = EXCLUDED.num_visitors\nRETURNING *;\n" - }, - "d649285a0c9cf46bdad2303ee6d7793ff5d1a7ce58f402e070c69f7187b57085": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\n INSERT INTO exercise_slides (\n id, exercise_id, order_number\n )\n SELECT uuid_generate_v5($1, id::text),\n uuid_generate_v5($1, exercise_id::text),\n order_number\n FROM exercise_slides\n WHERE exercise_id IN (SELECT id FROM exercises WHERE course_id = $2 OR exam_id = $2 AND deleted_at IS NULL)\n AND deleted_at IS NULL;\n " - }, - "d67631e6ddcdf17214fc75f0c9f760507d1fdce3c948f1524b5668403e197de3": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "url", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "width", - "ordinal": 6, - "type_info": "Int4" - }, - { - "name": "data", - "ordinal": 7, - "type_info": "Jsonb" - } - ], - "nullable": [false, false, false, true, false, false, false, false], - "parameters": { - "Left": ["Varchar", "Varchar", "Int4", "Jsonb"] - } - }, - "query": "\nINSERT INTO playground_examples (name, url, width, data)\nVALUES ($1, $2, $3, $4)\nRETURNING *;\n " - }, - "d684fcc4ad0942b8fa8bdc4afb1ed171ef2ba003a6ece945a16289222083345f": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "user_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "receiving_peer_reviews_exercise_slide_submission_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "received_enough_peer_reviews", - "ordinal": 8, - "type_info": "Bool" - }, - { - "name": "peer_review_priority", - "ordinal": 9, - "type_info": "Int4" - }, - { - "name": "removed_from_queue_for_unusual_reason", - "ordinal": 10, - "type_info": "Bool" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false, false, false], - "parameters": { - "Left": ["Bool", "Uuid"] - } - }, - "query": "\nUPDATE peer_review_queue_entries\nSET received_enough_peer_reviews = $1\nWHERE id = $2\n AND deleted_at IS NULL\nRETURNING *;\n " - }, - "d724f9b31998cfc4677cf3f3a006ab15dd17bdad59b2b290e47d648e9e03d03d": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "exercise_task_submission_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "exercise_task_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "grading_priority", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "score_given", - "ordinal": 9, - "type_info": "Float4" - }, - { - "name": "grading_progress: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - }, - { - "name": "unscaled_score_maximum", - "ordinal": 11, - "type_info": "Int4" - }, - { - "name": "unscaled_score_given", - "ordinal": 12, - "type_info": "Float4" - }, - { - "name": "grading_started_at", - "ordinal": 13, - "type_info": "Timestamptz" - }, - { - "name": "grading_completed_at", - "ordinal": 14, - "type_info": "Timestamptz" - }, - { - "name": "feedback_json", - "ordinal": 15, - "type_info": "Jsonb" - }, - { - "name": "feedback_text", - "ordinal": 16, - "type_info": "Text" - }, - { - "name": "deleted_at", - "ordinal": 17, - "type_info": "Timestamptz" - } - ], - "nullable": [ - false, - false, - false, - false, - true, - true, - false, - false, - false, - true, - false, - true, - true, - true, - true, - true, - true, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n exercise_task_submission_id,\n course_id,\n exam_id,\n exercise_id,\n exercise_task_id,\n grading_priority,\n score_given,\n grading_progress as \"grading_progress: _\",\n unscaled_score_maximum,\n unscaled_score_given,\n grading_started_at,\n grading_completed_at,\n feedback_json,\n feedback_text,\n deleted_at\nFROM exercise_task_gradings\nWHERE id = $1\n" - }, - "d7aa92b17e25f4257e753ff79dd3dc0152e0c9a41038e2602eb3dabcff618fdc": { - "describe": { - "columns": [ - { - "name": "exercise_slide_submission_id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nSELECT exercise_slide_submission_id\nFROM offered_answers_to_peer_review_temporary\nWHERE exercise_id = $1\n AND user_id = $2\n AND course_instance_id = $3\n AND created_at > now() - '1 hour'::interval\n " - }, - "d7c2e87b32f5a87fa4595464a6449ce402745887d29b981da6b44cc419aad59c": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "organization_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "deleted_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "slug", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "content_search_language", - "ordinal": 7, - "type_info": "Text" - }, - { - "name": "language_code", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "copied_from", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "course_language_group_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "description", - "ordinal": 11, - "type_info": "Text" - }, - { - "name": "is_draft", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "is_test_mode", - "ordinal": 13, - "type_info": "Bool" - }, - { - "name": "base_module_completion_requires_n_submodule_completions", - "ordinal": 14, - "type_info": "Int4" - } - ], - "nullable": [ - false, - false, - false, - false, - false, - true, - false, - null, - false, - true, - false, - true, - false, - false, - false - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE courses\nSET deleted_at = now()\nWHERE id = $1\nRETURNING id,\n name,\n created_at,\n updated_at,\n organization_id,\n deleted_at,\n slug,\n content_search_language::text,\n language_code,\n copied_from,\n course_language_group_id,\n description,\n is_draft,\n is_test_mode,\n base_module_completion_requires_n_submodule_completions\n " - }, - "d7cdd6617a177d724eea412d3f408dd74f8e271aa1bb6ab0f62d97d4147f60fd": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "instructions", - "ordinal": 2, - "type_info": "Jsonb" - }, - { - "name": "starts_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "ends_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "time_minutes", - "ordinal": 5, - "type_info": "Int4" - }, - { - "name": "organization_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "minimum_points_treshold", - "ordinal": 7, - "type_info": "Int4" - } - ], - "nullable": [false, false, false, true, true, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n name,\n instructions,\n starts_at,\n ends_at,\n time_minutes,\n organization_id,\n minimum_points_treshold\nFROM exams\nWHERE exams.organization_id = $1\n AND exams.deleted_at IS NULL\n" - }, - "d8b2a6968b0e923cf3a3412460762b1218ca3a63b91467fe03d79349dd3d048b": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Uuid", "Uuid", "Uuid", "Varchar"] - } - }, - "query": "\nINSERT INTO course_module_completion_registered_to_study_registries (\n id,\n course_id,\n course_module_completion_id,\n course_module_id,\n study_registry_registrar_id,\n user_id,\n real_student_number\n )\nVALUES (\n $1,\n $2,\n $3,\n $4,\n $5,\n $6,\n $7\n )\nRETURNING id\n " - }, - "d972ea4bdedc2b6d93055c4c244a579960ff3a65213ed3e78f21d641c8d800c7": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Text", "Text"] - } - }, - "query": "\n INSERT INTO material_references(course_id, citation_key, reference)\n VALUES ($1, $2, $3)\n " - }, - "d99d37a38c18d917538b9192859efaf22ed8604e94447cc20040a265330428fb": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "user_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "peer_review_config_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "exercise_slide_submission_id", - "ordinal": 8, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nSELECT prs.*\nFROM exercise_slide_submissions ess\nINNER JOIN peer_review_submissions prs ON (ess.id = prs.exercise_slide_submission_id)\nWHERE ess.user_id = $1\n AND ess.course_instance_id = $2\n AND ess.deleted_at IS NULL\n AND prs.deleted_at IS NULL\n " - }, - "d9b9672a30ff30810ac269307fa33154ced5dcc064a05d69a0440113713d3573": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_slide_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 8, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "user_points_update_strategy: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "can-add-points-but-cannot-remove-points", - "can-add-points-and-can-remove-points" - ] - }, - "name": "user_points_update_strategy" - } - } - } - ], - "nullable": [false, false, false, true, false, true, true, true, false, false, false], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n deleted_at,\n exercise_slide_id,\n course_id,\n course_instance_id,\n exam_id,\n exercise_id,\n user_id,\n user_points_update_strategy AS \"user_points_update_strategy: _\"\nFROM exercise_slide_submissions\nWHERE exercise_slide_id = $1\n AND user_id = $2\n AND deleted_at IS NULL\nORDER BY created_at DESC\nLIMIT 1\n " - }, - "d9d04909a35ed8edd343a0be75ee10041e50a42d8ca3547d001672a9557b6d9d": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Jsonb", "Uuid"] - } - }, - "query": "\nUPDATE pages\nSET content = $1\nWHERE id = $2;\n " - }, - "d9d230419fb264ebddeaa022bc8ac0061d8caa8bf83e3a5742a140bd056f3005": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Varchar", "Uuid"] - } - }, - "query": "\nupdate email_deliveries\nset sent = FALSE,\n error = $1\nwhere id = $2;\n " - }, - "da0f676c3df132fa6eee840e03ac3313356905100e6ad145abba619f8d1df249": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "organization_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "starts_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "ends_at", - "ordinal": 7, - "type_info": "Timestamptz" - }, - { - "name": "language", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "time_minutes", - "ordinal": 9, - "type_info": "Int4" - }, - { - "name": "instructions", - "ordinal": 10, - "type_info": "Jsonb" - }, - { - "name": "minimum_points_treshold", - "ordinal": 11, - "type_info": "Int4" - } - ], - "nullable": [false, false, false, true, false, false, true, true, true, false, false, false], - "parameters": { - "Left": [ - "Varchar", - "Uuid", - "Jsonb", - "Timestamptz", - "Timestamptz", - "Varchar", - "Int4", - "Int4" - ] - } - }, - "query": "\nINSERT INTO exams(\n name,\n organization_id,\n instructions,\n starts_at,\n ends_at,\n language,\n time_minutes,\n minimum_points_treshold\n )\nVALUES ($1, $2, $3, $4, $5, $6, $7, $8)\nRETURNING *\n " - }, - "db3332de1ad40b8e9c1f0ab97b88915884f41d5b4dab08f8c59c2d4444b067f0": { - "describe": { - "columns": [ - { - "name": "user_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "course_language_group_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "current_course_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "current_course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, false, true, false, false], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nINSERT INTO user_course_settings (\n user_id,\n course_language_group_id,\n current_course_id,\n current_course_instance_id\n )\nSELECT $1,\n course_language_group_id,\n $2,\n $3\nFROM courses\nWHERE id = $2\n AND deleted_at IS NULL ON CONFLICT (user_id, course_language_group_id) DO\nUPDATE\nSET current_course_id = $2,\n current_course_instance_id = $3,\n deleted_at = NULL\nRETURNING *;\n " - }, - "db5cd5b4719b69e217948320994bd8f3f6ae513f1378eb76d2fe6391acf179fc": { - "describe": { - "columns": [ - { - "name": "page_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "order_number", - "ordinal": 1, - "type_info": "Int4" - }, - { - "name": "course_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "chapter_id?", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "chapter_number?", - "ordinal": 5, - "type_info": "Int4" - } - ], - "nullable": [false, false, true, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT p.id as page_id,\n p.order_number as order_number,\n p.course_id as course_id,\n p.exam_id as exam_id,\n c.id as \"chapter_id?\",\n c.chapter_number as \"chapter_number?\"\nFROM pages p\n LEFT JOIN chapters c ON p.chapter_id = c.id\nWHERE p.id = $1;\n" - }, - "dba9ba5276e8397e269fb497bf01304f7450ff6f87cd5e94c30b818490d16b6e": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "country_code", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "created_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 6, - "type_info": "Timestamptz" - } - ], - "nullable": [false, false, false, false, false, false, true], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nSELECT *\nFROM student_countries\nWHERE user_id = $1\nAND course_instance_id = $2\nAND deleted_at IS NULL;\n" - }, - "dc6a94949ce20d11fa55e247dc706fdc88018bf1ba528487fcd0ef02f5c40ca7": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "content", - "ordinal": 4, - "type_info": "Jsonb" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "subject", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "exercise_completions_threshold", - "ordinal": 7, - "type_info": "Int4" - }, - { - "name": "points_threshold", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "course_instance_id", - "ordinal": 9, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, true, true, false, true, true, true, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE email_templates\nSET deleted_at = now()\nWHERE id = $1\nRETURNING *\n " - }, - "dc74a6b78519d79e6d87e7a4a8ca21582802b148370acfb5fb989674cee4cb4e": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "peer_reviews_to_give", - "ordinal": 3, - "type_info": "Int4" - }, - { - "name": "peer_reviews_to_receive", - "ordinal": 4, - "type_info": "Int4" - }, - { - "name": "accepting_threshold", - "ordinal": 5, - "type_info": "Float4" - }, - { - "name": "accepting_strategy: _", - "ordinal": 6, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "automatically_accept_or_reject_by_average", - "automatically_accept_or_manual_review_by_average", - "manual_review_everything" - ] - }, - "name": "peer_review_accepting_strategy" - } - } - } - ], - "nullable": [false, false, true, false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT pr.id as id,\n pr.course_id as course_id,\n pr.exercise_id as exercise_id,\n pr.peer_reviews_to_give as peer_reviews_to_give,\n pr.peer_reviews_to_receive as peer_reviews_to_receive,\n pr.accepting_threshold as accepting_threshold,\n pr.accepting_strategy AS \"accepting_strategy: _\"\nfrom pages p\n join exercises e on p.id = e.page_id\n join peer_review_configs pr on e.id = pr.exercise_id\nwhere p.id = $1\n AND p.deleted_at IS NULL\n AND e.deleted_at IS NULL\n AND pr.deleted_at IS NULL;\n " - }, - "dd8c271c3a0901cc8c2fdecfbae5b052cb4c4c3b82e27817ae5a059685fa088b": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "starts_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "ends_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "description", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "support_email", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "teacher_in_charge_name", - "ordinal": 10, - "type_info": "Varchar" - }, - { - "name": "teacher_in_charge_email", - "ordinal": 11, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, false, true, true, true, true, true, false, false], - "parameters": { - "Left": ["UuidArray"] - } - }, - "query": "\nSELECT *\nFROM course_instances\nWHERE id IN (SELECT * FROM UNNEST($1::uuid[]))\n " - }, - "dd98dd1240aa56bb5ba42647e870c187d85c5ab801c6f0cca33757734a97df5b": { - "describe": { - "columns": [ - { - "name": "course_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 1, - "type_info": "Uuid" - } - ], - "nullable": [true, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT course_id,\n exam_id\nFROM exercises\nWHERE id = $1\n" - }, - "dddb199faae64069b99a39416362e97f763d9629dfed492811fea11d8a5fc0db": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "peer_review_config_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "order_number", - "ordinal": 5, - "type_info": "Int4" - }, - { - "name": "question", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "question_type: _", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": ["essay", "scale"] - }, - "name": "peer_review_question_type" - } - } - }, - { - "name": "answer_required", - "ordinal": 8, - "type_info": "Bool" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n deleted_at,\n peer_review_config_id,\n order_number,\n question,\n question_type AS \"question_type: _\",\n answer_required\nFROM peer_review_questions\nWHERE id = $1\n AND deleted_at IS NULL;\n " - }, - "ddf7fa1dca876b806f407c7bdd5b40d3318c7d01e3664399accedb2bd5856855": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "order_number", - "ordinal": 5, - "type_info": "Int4" - } - ], - "nullable": [false, false, false, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT s.*\nFROM exercise_slides s\n JOIN exercise_tasks t ON (s.id = t.exercise_slide_id)\nWHERE t.id = $1\n AND t.deleted_at IS NULL\n AND s.deleted_at IS NULL;\n " - }, - "de7485bc018960c303ee499788716012ce193074e5f41eb7fd8f02ad04941c4b": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "domain", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "course_id", - "ordinal": 5, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, true, false, false], - "parameters": { - "Left": ["Text"] - } - }, - "query": "\nSELECT * FROM other_domain_to_course_redirections\nWHERE domain = $1 AND deleted_at IS NULL\n" - }, - "debb71ad011d9e3973c03668f6f2e738f672314b7b0b12d11e7ac338652b79f5": { - "describe": { - "columns": [ - { - "name": "course_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 1, - "type_info": "Uuid" - } - ], - "nullable": [true, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT ess.course_id,\n ess.exam_id\nFROM exercise_task_submissions ets\n JOIN exercise_slide_submissions ess ON ets.exercise_slide_submission_id = ess.id\nWHERE ets.id = $1\n AND ets.deleted_at IS NULL\n AND ess.deleted_at IS NULL\n " - }, - "e046182cc942742134b0ed817a6094b03ae7a76696e5052d7b17fbf432adc205": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE peer_review_configs\nSET deleted_at = now()\nWHERE id = $1\nRETURNING id\n " - }, - "e0a7888a4719f8c8e9952840fc6294c9843a772704871a8fc2c793580e04ccc5": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": [ - "Uuid", - { - "Custom": { - "kind": { - "Enum": [ - "admin", - "assistant", - "teacher", - "reviewer", - "course_or_exam_creator", - "material_viewer", - "teaching_and_learning_services" - ] - }, - "name": "user_role" - } - }, - "Uuid" - ] - } - }, - "query": "\nUPDATE roles\nSET deleted_at = NOW()\nWHERE user_id = $1\n AND role = $2\n AND course_instance_id = $3\n AND deleted_at IS NULL\n" - }, - "e2fe96906db5d05fa1a8b0aabc25e9027c386b349f11d4c26bcf7db1864af6cf": { - "describe": { - "columns": [ - { - "name": "order_number", - "ordinal": 0, - "type_info": "Int4" - } - ], - "nullable": [null], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nselect max(p.order_number) as order_number\nfrom pages p\nwhere p.chapter_id = $1\n and p.deleted_at is null;\n" - }, - "e33938dcc21416adf06acb53f7d94fd179f095c8fc605c1bd3dfa6037497e04d": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["UuidArray"] - } - }, - "query": "\nUPDATE peer_review_questions\nSET deleted_at = now()\nWHERE peer_review_config_id = ANY ($1)\nAND deleted_at IS NULL\nRETURNING id;\n " - }, - "e3c6cc19ea36187a8e99b3ccb88eceedaf4e65d67406df70be92017971b74d7c": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\n UPDATE chapters\n SET front_page_id = uuid_generate_v5(course_id, front_page_id::text)\n WHERE course_id = $1\n AND front_page_id IS NOT NULL;\n " - }, - "e4e5ef6ef0bbf4a234110b8dc2616b1a0483f511e0c6b9b04b9d7440486c3e07": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "slug", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "public_url", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "internal_url", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "max_reprocessing_submissions_at_once", - "ordinal": 8, - "type_info": "Int4" - } - ], - "nullable": [false, false, false, true, false, false, false, true, false], - "parameters": { - "Left": [] - } - }, - "query": "\nSELECT *\nFROM exercise_services\nWHERE deleted_at IS NULL\n" - }, - "e50a489e4b63d0ccb43c85b02a0b085c7ba0d5d9e54d073df9ddc679010bf1d7": { - "describe": { - "columns": [ - { - "name": "course_module_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "total_exercises", - "ordinal": 1, - "type_info": "Int8" - }, - { - "name": "score_maximum", - "ordinal": 2, - "type_info": "Int8" - } - ], - "nullable": [false, null, null], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT chapters.course_module_id,\n COUNT(exercises.id) AS total_exercises,\n SUM(exercises.score_maximum) AS score_maximum\nFROM course_instances\n LEFT JOIN exercises ON (course_instances.course_id = exercises.course_id)\n LEFT JOIN chapters ON (exercises.chapter_id = chapters.id)\nWHERE exercises.deleted_at IS NULL\n AND course_instances.id = $1\nGROUP BY chapters.course_module_id\n " - }, - "e5db6a3bd6793923334f9a040d99b022099caf632357702ffb1be47602ec4820": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "order_number", - "ordinal": 2, - "type_info": "Int4" - } - ], - "nullable": [false, false, false], - "parameters": { - "Left": ["Uuid", "Uuid", "Int4"] - } - }, - "query": "\nINSERT INTO exercise_slides (id, exercise_id, order_number)\nVALUES ($1, $2, $3) ON CONFLICT (id) DO\nUPDATE\nSET exercise_id = $2,\n order_number = $3,\n deleted_at = NULL\nRETURNING id,\n exercise_id,\n order_number;\n " - }, - "e6570e506bc0384121076842646c1e4329af2eabfc6b09136d81d5e2b4fe0a91": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "upstream_id", - "ordinal": 4, - "type_info": "Int4" - }, - { - "name": "email_domain", - "ordinal": 5, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, true, true], - "parameters": { - "Left": ["Uuid", "Int4", "Varchar"] - } - }, - "query": "\nINSERT INTO\n users (id, upstream_id, email_domain)\nVALUES ($1, $2, $3)\nRETURNING *;\n " - }, - "e67e33b48426bb305c6eb69a1a2551543539c1f321cee5a336f6ebcdc467d25f": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "UPDATE pages SET deleted_at = now() WHERE chapter_id = $1 AND deleted_at IS NULL;" - }, - "e6f687f777bbf1f390fd79b39ebe2f71adc27844198a74a5370382ba150abb44": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": [] - } - }, - "query": "\nUPDATE regradings\nSET regrading_started_at = CASE\n WHEN regrading_started_at IS NULL THEN now()\n ELSE regrading_started_at\n END\nWHERE regrading_completed_at IS NULL\n AND deleted_at IS NULL\nRETURNING id\n" - }, - "e773a4e49ae87843f5be6fdcbed0d32c2bd87c20f4b47ff30c5a8c632c4d230d": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "organization_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "deleted_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "slug", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "content_search_language", - "ordinal": 7, - "type_info": "Text" - }, - { - "name": "language_code", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "copied_from", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "course_language_group_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "description", - "ordinal": 11, - "type_info": "Text" - }, - { - "name": "is_draft", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "is_test_mode", - "ordinal": 13, - "type_info": "Bool" - }, - { - "name": "base_module_completion_requires_n_submodule_completions", - "ordinal": 14, - "type_info": "Int4" - } - ], - "nullable": [ - false, - false, - false, - false, - false, - true, - false, - null, - false, - true, - false, - true, - false, - false, - false - ], - "parameters": { - "Left": ["Varchar", "Text", "Bool", "Bool", "Uuid"] - } - }, - "query": "\nUPDATE courses\nSET name = $1,\n description = $2,\n is_draft = $3,\n is_test_mode = $4\nWHERE id = $5\nRETURNING id,\n name,\n created_at,\n updated_at,\n organization_id,\n deleted_at,\n slug,\n content_search_language::text,\n language_code,\n copied_from,\n course_language_group_id,\n description,\n is_draft,\n is_test_mode,\n base_module_completion_requires_n_submodule_completions\n " - }, - "e7ad9cc94bf52798593e8fa61c9996e24f0a8e767b8a153b17ded9184cda5df9": { - "describe": { - "columns": [ - { - "name": "latest_date", - "ordinal": 0, - "type_info": "Date" - } - ], - "nullable": [null], - "parameters": { - "Left": [] - } - }, - "query": "\nSELECT MAX(visit_date) AS latest_date\nFROM page_visit_datum_summary_by_courses\nWHERE deleted_at IS NULL\n" - }, - "e81d160c322b0c903d8105d39f22a1f26f37ffe46fa0d15f4c038b4ba2adc89c": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Uuid", "Varchar", "Uuid", "Uuid", "Int4", "Uuid"] - } - }, - "query": "\nINSERT INTO exercises (\n id,\n course_id,\n name,\n page_id,\n chapter_id,\n order_number,\n exercise_language_group_id\n )\nVALUES ($1, $2, $3, $4, $5, $6, $7)\nRETURNING id\n " - }, - "e8e669f13e4fd4e3f485510dd945f62ad16910268e651d316a27dbb0cc4493f3": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nUPDATE user_exercise_task_states\nSET deleted_at = now()\nWHERE exercise_task_id = $1\n AND user_exercise_slide_state_id = $2\n AND deleted_at IS NULL\n " - }, - "e966783963c11d6fa57df792d1bfff0dccf163f9cf5f474c1f3c724972229d4e": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "course_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "chapter_number", - "ordinal": 3, - "type_info": "Int4" - }, - { - "name": "created_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "front_page_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "opens_at", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "chapter_image_path", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "copied_from", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "deadline", - "ordinal": 11, - "type_info": "Timestamptz" - }, - { - "name": "course_module_id", - "ordinal": 12, - "type_info": "Uuid" - }, - { - "name": "color", - "ordinal": 13, - "type_info": "Varchar" - } - ], - "nullable": [ - false, - false, - false, - false, - false, - false, - true, - true, - true, - true, - true, - true, - false, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nfrom chapters\nwhere id = $1;" - }, - "e9853719e63d03eb786a5cfda92364b0c0b081448c7d219fa81a14da7ae82fc8": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "chapter_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "url_path", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "title", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "deleted_at", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "content", - "ordinal": 9, - "type_info": "Jsonb" - }, - { - "name": "order_number", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "hidden", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "page_language_group_id", - "ordinal": 13, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - true, - false, - false, - true, - false, - false, - true, - false, - true - ], - "parameters": { - "Left": ["Uuid", "Bool"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n course_id,\n exam_id,\n chapter_id,\n url_path,\n title,\n deleted_at,\n content,\n order_number,\n copied_from,\n hidden,\n page_language_group_id\nFROM pages\nWHERE chapter_id = $1\n AND hidden IS DISTINCT FROM $2\n AND deleted_at IS NULL\n " - }, - "ea1cf40426369528975ef35ee1410e8288388f7d392b0464945dc2add9e2787f": { - "describe": { - "columns": [ - { - "name": "score_given", - "ordinal": 0, - "type_info": "Float4" - }, - { - "name": "grading_progress: GradingProgress", - "ordinal": 1, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - } - ], - "nullable": [true, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT score_given,\n grading_progress AS \"grading_progress: GradingProgress\"\nFROM user_exercise_slide_states\nWHERE user_exercise_state_id = $1\n AND deleted_at IS NULL\n " - }, - "ea9d08bf76031e4623c82bb7ec98c5cbb01d838675c3eb081532b1580d6f94c5": { - "describe": { - "columns": [ - { - "name": "content", - "ordinal": 0, - "type_info": "Jsonb" - }, - { - "name": "title", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "exam_id", - "ordinal": 2, - "type_info": "Uuid" - } - ], - "nullable": [false, false, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT page_history.content,\n page_history.title,\n pages.exam_id\nFROM page_history\n JOIN pages ON pages.id = page_history.page_id\nWHERE page_history.id = $1\n AND pages.deleted_at IS NULL\n AND page_history.deleted_at IS NULL\n " - }, - "eacbff7bf42744f9246cd682dadbba105d53a3f37cace5a67bb0184ca1e38f56": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "organization_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "deleted_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "slug", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "content_search_language", - "ordinal": 7, - "type_info": "Text" - }, - { - "name": "language_code", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "copied_from", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "course_language_group_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "description", - "ordinal": 11, - "type_info": "Text" - }, - { - "name": "is_draft", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "is_test_mode", - "ordinal": 13, - "type_info": "Bool" - }, - { - "name": "base_module_completion_requires_n_submodule_completions", - "ordinal": 14, - "type_info": "Int4" - } - ], - "nullable": [ - false, - false, - false, - false, - false, - true, - false, - null, - false, - true, - false, - true, - false, - false, - false - ], - "parameters": { - "Left": ["UuidArray"] - } - }, - "query": "\nSELECT id,\n name,\n created_at,\n updated_at,\n organization_id,\n deleted_at,\n slug,\n content_search_language::text,\n language_code,\n copied_from,\n course_language_group_id,\n description,\n is_draft,\n is_test_mode,\n base_module_completion_requires_n_submodule_completions\nFROM courses\nWHERE id IN (SELECT * FROM UNNEST($1::uuid[]))\n " - }, - "eaf01c818777d085e86dbea4dc82a2064c17ea6e9d811b1de91810dd0a2ff6e3": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "content", - "ordinal": 2, - "type_info": "Jsonb" - }, - { - "name": "created_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 5, - "type_info": "Timestamptz" - } - ], - "nullable": [false, false, false, false, false, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT * FROM course_specific_research_consent_forms\nWHERE course_id = $1\nAND deleted_at IS NULL\n" - }, - "eb5c16a276498ed4260c1b31fcd67d79dfcb0e517003bc8d8b5b5732646d44e3": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": [ - "Float4", - { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - }, - "Uuid" - ] - } - }, - "query": "\nUPDATE user_exercise_slide_states\nSET score_given = $1,\n grading_progress = $2\nWHERE id = $3\n AND deleted_at IS NULL\n " - }, - "eb802576bfa324428a235cc1aa8f5d65128d60ae73973601ff08bde6e66215ac": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT c.id\nFROM course_module_certificate_configurations AS cmcc\nJOIN course_modules AS cm ON cmcc.course_module_id = cm.id\nJOIN courses AS c ON cm.course_id = c.id\nWHERE cmcc.id = $1\nAND cmcc.deleted_at IS NULL\n " - }, - "ecd2f2b3e84b325523948ef4fe9d37776b279427e4e536acdbb87bb2d245478d": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "rank", - "ordinal": 1, - "type_info": "Float4" - }, - { - "name": "title_headline", - "ordinal": 2, - "type_info": "Text" - }, - { - "name": "content_headline", - "ordinal": 3, - "type_info": "Text" - }, - { - "name": "url_path", - "ordinal": 4, - "type_info": "Varchar" - } - ], - "nullable": [false, null, null, null, false], - "parameters": { - "Left": [ - "Uuid", - { - "Custom": { - "kind": "Simple", - "name": "regconfig" - } - }, - "Text", - "Text" - ] - } - }, - "query": "\n-- common table expression for the search term tsquery so that we don't have to repeat it many times\nWITH cte as (\n -- Converts the search term to a word search with ands between the words with plainto_tsquery but appends ':*' to the\n -- last word so that it becomes a prefix match. This way the search will also contain results when the last word in\n -- the search term is only partially typed. Note that if to_tsquery($4) decides to stem the word, the replacement\n -- will be skipped.\n SELECT ts_rewrite(\n plainto_tsquery($2::regconfig, $3),\n to_tsquery($4),\n to_tsquery($4 || ':*')\n ) as query\n)\nSELECT id,\n ts_rank(\n content_search,\n (\n SELECT query\n from cte\n )\n ) as rank,\n ts_headline(\n $2::regconfig,\n title,\n (\n SELECT query\n from cte\n )\n ) as title_headline,\n ts_headline(\n $2::regconfig,\n content_search_original_text,\n (\n SELECT query\n from cte\n )\n ) as content_headline,\n url_path\nFROM pages\nWHERE course_id = $1\n AND deleted_at IS NULL\n AND hidden IS FALSE\n AND content_search @@ (\n SELECT query\n from cte\n )\nORDER BY rank DESC\nLIMIT 50;\n " - }, - "eda078e5f32758b2d1ff20a1085af4b42739d3bff2761a612f3f54bd8eeced07": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "page_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "num_visitors", - "ordinal": 7, - "type_info": "Int4" - }, - { - "name": "visit_date", - "ordinal": 8, - "type_info": "Date" - } - ], - "nullable": [false, false, false, true, true, true, false, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM page_visit_datum_summary_by_pages\nWHERE course_id = $1\n AND deleted_at IS NULL\n" - }, - "ee186fc1b8fd129fbfc96ede2df1eb0513d4d0e5c2f5bf5a17cdc088f8d3af1b": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "order_number", - "ordinal": 6, - "type_info": "Int4" - }, - { - "name": "copied_from", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "uh_course_code", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "automatic_completion", - "ordinal": 9, - "type_info": "Bool" - }, - { - "name": "automatic_completion_number_of_exercises_attempted_treshold", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "automatic_completion_number_of_points_treshold", - "ordinal": 11, - "type_info": "Int4" - }, - { - "name": "ects_credits", - "ordinal": 12, - "type_info": "Int4" - }, - { - "name": "completion_registration_link_override", - "ordinal": 13, - "type_info": "Varchar" - }, - { - "name": "automatic_completion_requires_exam", - "ordinal": 14, - "type_info": "Bool" - }, - { - "name": "enable_registering_completion_to_uh_open_university", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "certification_enabled", - "ordinal": 16, - "type_info": "Bool" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - true, - false, - true, - true, - false, - true, - true, - true, - true, - false, - false, - false - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM course_modules\nWHERE course_id = $1\n AND name IS NULL\n AND order_number = 0\n AND deleted_at IS NULL\n " - }, - "ee7145229275ac980ffb6c1f156e3bd4e793b17a5c28c5eda9549fdb68eb6187": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_slide_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "user_exercise_state_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "score_given", - "ordinal": 6, - "type_info": "Float4" - }, - { - "name": "grading_progress: _", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - } - ], - "nullable": [false, false, false, true, false, false, true, false], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n deleted_at,\n exercise_slide_id,\n user_exercise_state_id,\n score_given,\n grading_progress AS \"grading_progress: _\"\nFROM user_exercise_slide_states\nWHERE user_exercise_state_id = $1\n AND exercise_slide_id = $2\n AND deleted_at IS NULL\n " - }, - "ef6242e4107be34c225a7582823df17d2550b6619c1e1ab963c9a249a248f57b": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": [ - "Uuid", - { - "Custom": { - "kind": { - "Enum": [ - "admin", - "assistant", - "teacher", - "reviewer", - "course_or_exam_creator", - "material_viewer", - "teaching_and_learning_services" - ] - }, - "name": "user_role" - } - }, - "Uuid" - ] - } - }, - "query": "\nUPDATE roles\nSET deleted_at = NOW()\nWHERE user_id = $1\n AND role = $2\n AND course_id = $3\n AND deleted_at IS NULL\n" - }, - "efa8a4314f47614b9919dc65e011120353ffed83b8ad7f13a204cdd39a736d3a": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "chapter_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "url_path", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "title", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "deleted_at", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "content", - "ordinal": 9, - "type_info": "Jsonb" - }, - { - "name": "order_number", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "copied_from", - "ordinal": 11, - "type_info": "Uuid" - }, - { - "name": "hidden", - "ordinal": 12, - "type_info": "Bool" - }, - { - "name": "page_language_group_id", - "ordinal": 13, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - true, - false, - false, - true, - false, - false, - true, - false, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n course_id,\n exam_id,\n chapter_id,\n url_path,\n title,\n deleted_at,\n content,\n order_number,\n copied_from,\n hidden,\n page_language_group_id\nFROM pages\nWHERE chapter_id = $1\n AND deleted_at IS NULL\n " - }, - "f0241e8220e65f569e39bfa0d5eae12df3c61ac4a3de25aebffd27358f807d67": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid", "Varchar"] - } - }, - "query": "\nINSERT INTO course_background_question_answers (\n course_background_question_id,\n user_id,\n answer_value\n )\nVALUES ($1, $2, $3) ON CONFLICT (\n course_background_question_id,\n user_id,\n deleted_at\n ) DO\nUPDATE\nSET answer_value = $3\n " - }, - "f06d370d7ad238c78d62897c81c0cc4f93223933438f6483ad927d078fc198c2": { - "describe": { - "columns": [ - { - "name": "user_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "first_name", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "last_name", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "email", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "search_helper", - "ordinal": 6, - "type_info": "Text" - } - ], - "nullable": [false, false, false, true, true, false, true], - "parameters": { - "Left": ["Text"] - } - }, - "query": "\nSELECT *\nFROM user_details\nWHERE lower(search_helper::text) LIKE '%' || lower($1) || '%'\nLIMIT 1000;\n" - }, - "f0c80207c86e95e0dcd70759a548490be39fa00c3221c45ed27b1e00b5721624": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Date"] - } - }, - "query": "\nINSERT INTO page_visit_datum_daily_visit_hashing_keys(valid_for_date)\nVALUES ($1)\nON CONFLICT (valid_for_date) DO NOTHING\n " - }, - "f12efa71dc05026650020ae1f7abc1afef7c13cebd3d9d10391230524771f59c": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "file_path", - "ordinal": 4, - "type_info": "Text" - }, - { - "name": "file_upload_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "display_name", - "ordinal": 6, - "type_info": "Text" - } - ], - "nullable": [false, false, false, true, false, false, false], - "parameters": { - "Left": ["Text", "Uuid", "Text"] - } - }, - "query": "\nINSERT INTO certificate_fonts (\n file_path,\n file_upload_id,\n display_name\n )\nVALUES ($1, $2, $3)\nRETURNING *\n" - }, - "f1de8bd452a0560758629de5218b899e353deaab7d0304565783a5655faedfb9": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "user_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_module_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "name_on_certificate", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "verification_id", - "ordinal": 8, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Varchar", "Varchar"] - } - }, - "query": "\nINSERT INTO course_module_completion_certificates (\n user_id,\n course_module_id,\n course_instance_id,\n name_on_certificate,\n verification_id\n )\nVALUES ($1, $2, $3, $4, $5)\nRETURNING *\n" - }, - "f277300b53e828732168d2b58bdab1746b112ad732a2fef2b78487102b674c9c": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_module_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "completion_date", - "ordinal": 7, - "type_info": "Timestamptz" - }, - { - "name": "completion_registration_attempt_date", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "completion_language", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "eligible_for_ects", - "ordinal": 10, - "type_info": "Bool" - }, - { - "name": "email", - "ordinal": 11, - "type_info": "Varchar" - }, - { - "name": "grade", - "ordinal": 12, - "type_info": "Int4" - }, - { - "name": "passed", - "ordinal": 13, - "type_info": "Bool" - }, - { - "name": "course_instance_id", - "ordinal": 14, - "type_info": "Uuid" - }, - { - "name": "prerequisite_modules_completed", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "completion_granter_user_id", - "ordinal": 16, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - false, - false, - false, - true, - false, - false, - false, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nSELECT *\nFROM course_module_completions\nWHERE course_instance_id = $1\n AND user_id = $2\n AND deleted_at IS NULL\n " - }, - "f2beb11b5e6318b712b0af9bd4fde454472ce8eda3612295b788958148a376b5": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "content", - "ordinal": 4, - "type_info": "Jsonb" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "subject", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "exercise_completions_threshold", - "ordinal": 7, - "type_info": "Int4" - }, - { - "name": "points_threshold", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "course_instance_id", - "ordinal": 9, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, true, true, false, true, true, true, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "SELECT *\nFROM email_templates\nWHERE id = $1\n AND deleted_at IS NULL" - }, - "f36ea5144aa29804cc5347ec25157505a9caf51d01441a43b56e7d1ef20bc75b": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Varchar", "Varchar", "Uuid"] - } - }, - "query": "\nUPDATE repository_exercises\nSET part = $1,\n name = $2\nWHERE id = $3\n" - }, - "f392496c5e42f99455c285c47a3e67145732fe51fae5db78928576a399a639e3": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Varchar", "Varchar"] - } - }, - "query": "\nINSERT INTO exercise_repositories (id, course_id, exam_id, url, deploy_key)\nVALUES ($1, $2, $3, $4, $5)\n" - }, - "f3ac0ff191c33364eb12bef118fed4c6afa634fab2a65a85b19752d5e995b516": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_task_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "data_json", - "ordinal": 5, - "type_info": "Jsonb" - }, - { - "name": "exercise_task_grading_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "metadata", - "ordinal": 7, - "type_info": "Jsonb" - }, - { - "name": "exercise_slide_id", - "ordinal": 8, - "type_info": "Uuid" - }, - { - "name": "exercise_slide_submission_id", - "ordinal": 9, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, true, false, true, true, true, false, false], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nUPDATE exercise_task_submissions\nSET exercise_task_grading_id = $1\nWHERE id = $2\nRETURNING *\n" - }, - "f3b0334549648445a49ba006091a3c14401a9fce0ef0edc49b4dbc2c7df7d1be": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - ] - } - }, - "query": "\nINSERT INTO user_exercise_task_states (\n exercise_task_id,\n user_exercise_slide_state_id,\n grading_progress\n )\nVALUES ($1, $2, $3)\n " - }, - "f3c50d3ee90f67f0195297e40aa65e836cae2eaa96a5e56381ad2e0b47681052": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "UPDATE exercises SET deleted_at = now() WHERE deleted_at IS NULL AND chapter_id = $1;" - }, - "f3e5eccb66e0e605625aaee3055e5e850eebfb781a13516a9894e28befa91e89": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 7, - "type_info": "Timestamptz" - }, - { - "name": "score_given", - "ordinal": 8, - "type_info": "Float4" - }, - { - "name": "grading_progress: _", - "ordinal": 9, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - }, - { - "name": "activity_progress: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": ["initialized", "started", "in-progress", "submitted", "completed"] - }, - "name": "activity_progress" - } - } - }, - { - "name": "reviewing_stage: _", - "ordinal": 11, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "not_started", - "peer_review", - "self_review", - "waiting_for_peer_reviews", - "waiting_for_manual_grading", - "reviewed_and_locked" - ] - }, - "name": "reviewing_stage" - } - } - }, - { - "name": "selected_exercise_slide_id", - "ordinal": 12, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - false, - false, - true, - true, - false, - false, - false, - true - ], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Uuid"] - } - }, - "query": "\n INSERT INTO user_exercise_states (user_id, exercise_id, course_instance_id, exam_id)\n VALUES ($1, $2, $3, $4)\n RETURNING id,\n user_id,\n exercise_id,\n course_instance_id,\n exam_id,\n created_at,\n updated_at,\n deleted_at,\n score_given,\n grading_progress as \"grading_progress: _\",\n activity_progress as \"activity_progress: _\",\n reviewing_stage AS \"reviewing_stage: _\",\n selected_exercise_slide_id\n " - }, - "f3f3e8495dec5e25c2fd668203c389a0a92ee1a49cf6f6a48b5208743e1f2ccf": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "user_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "receiving_peer_reviews_exercise_slide_submission_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "received_enough_peer_reviews", - "ordinal": 8, - "type_info": "Bool" - }, - { - "name": "peer_review_priority", - "ordinal": 9, - "type_info": "Int4" - }, - { - "name": "removed_from_queue_for_unusual_reason", - "ordinal": 10, - "type_info": "Bool" - } - ], - "nullable": [false, false, false, true, false, false, false, false, false, false, false], - "parameters": { - "Left": ["Uuid", "Uuid", "UuidArray", "Int8"] - } - }, - "query": "\nSELECT *\nFROM peer_review_queue_entries\nWHERE exercise_id = $1\n AND user_id <> $2\n AND receiving_peer_reviews_exercise_slide_submission_id <> ALL($3)\n AND received_enough_peer_reviews = 'false'\n AND removed_from_queue_for_unusual_reason = 'false'\n AND deleted_at IS NULL\nORDER BY peer_review_priority DESC\nLIMIT $4\n " - }, - "f4027fdbb6bf446e8c75423168c3c97e5509c4e44d2246e9894494a96e8f752d": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": [ - "Uuid", - { - "Custom": { - "kind": { - "Enum": [ - "admin", - "assistant", - "teacher", - "reviewer", - "course_or_exam_creator", - "material_viewer", - "teaching_and_learning_services" - ] - }, - "name": "user_role" - } - }, - "Uuid" - ] - } - }, - "query": "\nINSERT INTO roles (user_id, role, organization_id)\nVALUES ($1, $2, $3)\nRETURNING id\n" - }, - "f483e33aa6a1a9670cbbfb3f60ceb18d64da1ebd79e2d2b868bbdf306c6cdc8d": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "research_form_question_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "research_consent", - "ordinal": 4, - "type_info": "Bool" - }, - { - "name": "created_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 7, - "type_info": "Timestamptz" - } - ], - "nullable": [false, false, false, false, false, false, false, true], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Bool"] - } - }, - "query": "\nINSERT INTO course_specific_consent_form_answers (\n user_id,\n course_id,\n research_form_question_id,\n research_consent\n )\nVALUES ($1, $2, $3, $4) ON CONFLICT (user_id, research_form_question_id)\nDO UPDATE SET research_consent = $4\nRETURNING *\n" - }, - "f4a5e376a7cec68e07e871efd0817d60abfea336e24c5fa060c5dc1c981aaf76": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Text"] - } - }, - "query": "\nSELECT course_modules.id\nFROM course_modules\n LEFT JOIN courses ON (course_modules.course_id = courses.id)\nWHERE (\n course_modules.uh_course_code = $1\n OR courses.slug = $1\n )\n AND course_modules.deleted_at IS NULL\n " - }, - "f5433a51465291a5dfe643100be0591d5de7b1537e60288fc92ac534d3242f16": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Int4", "Uuid"] - } - }, - "query": "\nUPDATE courses\nSET base_module_completion_requires_n_submodule_completions = $1\nWHERE id = $2\n AND deleted_at IS NULL\n " - }, - "f5eee3722c97003bd8de1b9e8aa5e0d72916aa364eed13a63efecde48ae9f4a8": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_task_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "data_json", - "ordinal": 5, - "type_info": "Jsonb" - }, - { - "name": "exercise_task_grading_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "metadata", - "ordinal": 7, - "type_info": "Jsonb" - }, - { - "name": "exercise_slide_id", - "ordinal": 8, - "type_info": "Uuid" - }, - { - "name": "exercise_slide_submission_id", - "ordinal": 9, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, true, false, true, true, true, false, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM exercise_task_submissions\nWHERE id = $1\n" - }, - "f5f6f6ee7f41b785b8b8b4bdd59d6d82338f119d2099cdb332bc2c89a7778721": { - "describe": { - "columns": [ - { - "name": "count", - "ordinal": 0, - "type_info": "Int8" - } - ], - "nullable": [null], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nSELECT COUNT(*)\nFROM peer_review_submissions\nWHERE user_id = $1\n AND exercise_id = $3\n AND course_instance_id = $2\n AND deleted_at IS NULL\n " - }, - "f73c3e30878dff05ec6792f06ddfd7b67c8c8385d991c18142c7b584d20d770a": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Bool", "Uuid"] - } - }, - "query": "\nUPDATE course_modules\nSET certification_enabled = $1\nWHERE id = $2\n" - }, - "f750c38ba4b721e9ad052888f9d8bce58e6fbfb5e4f8f49ea250950b36573cfc": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 3, - "type_info": "Uuid" - }, - { - "name": "score_given", - "ordinal": 4, - "type_info": "Float4" - }, - { - "name": "grading_progress: _", - "ordinal": 5, - "type_info": { - "Custom": { - "kind": { - "Enum": ["fully-graded", "pending", "pending-manual", "failed", "not-ready"] - }, - "name": "grading_progress" - } - } - }, - { - "name": "data_json", - "ordinal": 6, - "type_info": "Jsonb" - }, - { - "name": "created_at", - "ordinal": 7, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 8, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 9, - "type_info": "Timestamptz" - }, - { - "name": "submission_id", - "ordinal": 10, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, true, true, false, true, false, false, true, false], - "parameters": { - "Left": ["Uuid", "Int8", "Int8"] - } - }, - "query": "\n SELECT\n us_state.id,\n us_state.user_id,\n us_state.exercise_id,\n us_state.course_instance_id,\n us_state.score_given,\n us_state.grading_progress as \"grading_progress: _\",\n t_submission.data_json,\n s_submission.created_at,\n s_submission.updated_at,\n s_submission.deleted_at,\n s_submission.id AS submission_id\n FROM user_exercise_states AS us_state\n JOIN exercise_task_submissions AS t_submission\n ON us_state.selected_exercise_slide_id =\n t_submission.exercise_slide_id\n JOIN exercise_slide_submissions AS s_submission\n ON t_submission.exercise_slide_submission_id =\n s_submission.id\n WHERE us_state.selected_exercise_slide_id =\n t_submission.exercise_slide_id\n AND us_state.user_id = s_submission.user_id\n AND us_state.exercise_id = $1\n AND us_state.reviewing_stage = 'waiting_for_manual_grading'\n AND us_state.deleted_at IS NULL\n AND us_state.deleted_at IS NULL\n AND s_submission.deleted_at IS NULL\n AND t_submission.deleted_at IS NULL\n ORDER BY t_submission.updated_at\n LIMIT $2 OFFSET $3;" - }, - "f75a47ca2444e4cbaade9a44f7104ede569c4660c573e5fa4034805f1597c361": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["UuidArray"] - } - }, - "query": "\nUPDATE exercise_tasks\nSET deleted_at = now()\nWHERE exercise_slide_id = ANY($1)\nRETURNING id;\n " - }, - "f7841567b90206f7d7aba83b520e1cb7933c33d203d9a1df88e3db961ab83681": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "content", - "ordinal": 4, - "type_info": "Jsonb" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "subject", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "exercise_completions_threshold", - "ordinal": 7, - "type_info": "Int4" - }, - { - "name": "points_threshold", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "course_instance_id", - "ordinal": 9, - "type_info": "Uuid" - } - ], - "nullable": [false, false, false, true, true, false, true, true, true, false], - "parameters": { - "Left": ["Varchar", "Uuid", "Varchar"] - } - }, - "query": "\nINSERT INTO email_templates (name, course_instance_id, subject)\nVALUES ($1, $2, $3)\nRETURNING *\n" - }, - "f7bd3e9aed01244058285d71054a3237431444ba8862222da6c37ff9e0c1ebc9": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nUPDATE exercise_task_submissions\nSET deleted_at = now()\nWHERE exercise_slide_submission_id IN (\n SELECT id\n FROM exercise_slide_submissions\n WHERE user_id = $1\n AND course_instance_id = $2\n )\n AND deleted_at IS NULL\n" - }, - "f7c5b5edadc826e53946fe776f9f37de13b4499f24595e605bc54f24996d9f4c": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nUPDATE exercise_tasks\nSET deleted_at = now()\nWHERE exercise_slide_id IN (\n SELECT s.id\n FROM exercise_slides s\n JOIN exercises e ON (s.exercise_id = e.id)\n WHERE e.page_id = $1\n )\n AND deleted_at IS NULL;\n " - }, - "f801f26dc4e64a8b5d153887f13f858752e27b44b003ccbb2e539e7958d39875": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_slide_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 8, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "user_points_update_strategy: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "can-add-points-but-cannot-remove-points", - "can-add-points-and-can-remove-points" - ] - }, - "name": "user_points_update_strategy" - } - } - } - ], - "nullable": [false, false, false, true, false, true, true, true, false, false, false], - "parameters": { - "Left": ["Uuid", "Int8", "Int8"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n deleted_at,\n exercise_slide_id,\n course_id,\n course_instance_id,\n exam_id,\n exercise_id,\n user_id,\n user_points_update_strategy AS \"user_points_update_strategy: _\"\nFROM exercise_slide_submissions\nWHERE exercise_id = $1\n AND deleted_at IS NULL\nLIMIT $2 OFFSET $3;\n " - }, - "f8ef09f81ca6d7912306640c0789b9aa8eee7fcf682c433b782e42582c362f0b": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "slug", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "public_url", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "internal_url", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "max_reprocessing_submissions_at_once", - "ordinal": 8, - "type_info": "Int4" - } - ], - "nullable": [false, false, false, true, false, false, false, true, false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM exercise_services\nWHERE id = $1\n " - }, - "f97217b757172032e9368d1091ae4b62783452c4e5924c56d37c3c3ede4c1dc4": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nUPDATE peer_review_queue_entries\nSET deleted_at = now()\nWHERE user_id = $1\n AND course_instance_id = $2\n AND deleted_at IS NULL\n" - }, - "f9f28081a3acd033a648a9e80a8db64a0810eb2f93e59842b32d44ed8e2767dc": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Timestamptz", "Uuid"] - } - }, - "query": "\nUPDATE course_module_completions\nSET completion_registration_attempt_date = $1\nWHERE id = $2\n AND deleted_at IS NULL\n " - }, - "fa26631ee1f5d8c8fae6c5e0f6d2a4fb1ac361192246f255b2b3ab858131defb": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "copied_from", - "ordinal": 1, - "type_info": "Uuid" - } - ], - "nullable": [false, true], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\n INSERT INTO exercises (\n id,\n course_id,\n name,\n deadline,\n page_id,\n score_maximum,\n order_number,\n chapter_id,\n copied_from,\n exercise_language_group_id\n )\n SELECT uuid_generate_v5($1, id::text),\n $1,\n name,\n deadline,\n uuid_generate_v5($1, page_id::text),\n score_maximum,\n order_number,\n uuid_generate_v5($1, chapter_id::text),\n id,\n exercise_language_group_id\n FROM exercises\n WHERE course_id = $2\n AND deleted_at IS NULL\n RETURNING id,\n copied_from;\n " - }, - "fa31ade190afca7bf9906e2eac082253dbc1876a609ef8cf7cb8b22e05c168da": { - "describe": { - "columns": [ - { - "name": "count", - "ordinal": 0, - "type_info": "Int8" - } - ], - "nullable": [null], - "parameters": { - "Left": [] - } - }, - "query": "\nSELECT COUNT(*) as count\nfrom regradings\nWHERE deleted_at IS NULL;\n" - }, - "fb18b61c85778ef2bffb9dc1d388e1f5d1a7f53af4ffbe102a731c39a353afe8": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "starts_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "ends_at", - "ordinal": 6, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "description", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "teacher_in_charge_name", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "teacher_in_charge_email", - "ordinal": 10, - "type_info": "Varchar" - }, - { - "name": "support_email", - "ordinal": 11, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, false, true, true, true, true, false, false, true], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nSELECT i.id,\n i.created_at,\n i.updated_at,\n i.deleted_at,\n i.course_id,\n i.starts_at,\n i.ends_at,\n i.name,\n i.description,\n i.teacher_in_charge_name,\n i.teacher_in_charge_email,\n i.support_email\nFROM user_course_settings ucs\n JOIN course_instances i ON (ucs.current_course_instance_id = i.id)\nWHERE ucs.user_id = $1\n AND ucs.current_course_id = $2\n AND ucs.deleted_at IS NULL;\n " - }, - "fb1997345b6e2884fa469a93ae976a95bec228c9aaceae57b131e14bffbb6d12": { - "describe": { - "columns": [ - { - "name": "exercise_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "exercise_name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "score_maximum", - "ordinal": 2, - "type_info": "Int4" - }, - { - "name": "score_given", - "ordinal": 3, - "type_info": "Float4" - }, - { - "name": "teacher_decision: _", - "ordinal": 4, - "type_info": { - "Custom": { - "kind": { - "Enum": ["full-points", "zero-points", "custom-points", "suspected-plagiarism"] - }, - "name": "teacher_decision_type" - } - } - }, - { - "name": "submission_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "updated_at", - "ordinal": 6, - "type_info": "Timestamptz" - } - ], - "nullable": [false, false, false, true, false, false, false], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\n SELECT\n e.id as exercise_id,\n e.name as exercise_name,\n e.score_maximum,\n ues.score_given,\n tgd.teacher_decision as \"teacher_decision: _\",\n ess.id as submission_id,\n ess.updated_at\n FROM exercises e\n LEFT JOIN user_exercise_states ues on e.id = ues.exercise_id\n LEFT JOIN teacher_grading_decisions tgd on tgd.user_exercise_state_id = ues.id\n LEFT JOIN exercise_slide_submissions ess on e.id = ess.exercise_id\n WHERE e.course_id = (\n SELECT course_id\n FROM course_instances\n WHERE id = $1\n )\n AND e.deleted_at IS NULL\n AND ess.user_id = $2\n AND ues.user_id = $2\n ORDER BY e.order_number ASC;\n" - }, - "fb96fc9fc847215b9b8c1a4511ec9ae8f5fa24c83f9b00c016d2272fff16fcb3": { - "describe": { - "columns": [ - { - "name": "user_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 5, - "type_info": "Timestamptz" - } - ], - "nullable": [false, false, false, false, false, true], - "parameters": { - "Left": ["Uuid", "Uuid"] - } - }, - "query": "\nSELECT *\nFROM course_instance_enrollments\nWHERE user_id = $1\n AND course_instance_id = $2\n AND deleted_at IS NULL\n " - }, - "fc302d9b709a3ee24ce680c00c07823e7f69aaa907b22bb34810e322895facab": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": ["Uuid", "Uuid", "Uuid", "Uuid"] - } - }, - "query": "\nINSERT INTO offered_answers_to_peer_review_temporary (\n exercise_slide_submission_id,\n user_id,\n course_instance_id,\n exercise_id\n )\nVALUES ($1, $2, $3, $4) ON CONFLICT ON CONSTRAINT offered_answers_to_peer_review_temporary_pkey DO\nUPDATE\nSET exercise_slide_submission_id = $1,\n user_id = $2,\n course_instance_id = $3,\n exercise_id = $4,\n created_at = now()\n" - }, - "fc3411dc016ab2ff4cff7bc8032262ed4383920feacfab27b719c6747fce6056": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "order_number", - "ordinal": 6, - "type_info": "Int4" - }, - { - "name": "copied_from", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "uh_course_code", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "automatic_completion", - "ordinal": 9, - "type_info": "Bool" - }, - { - "name": "automatic_completion_number_of_exercises_attempted_treshold", - "ordinal": 10, - "type_info": "Int4" - }, - { - "name": "automatic_completion_number_of_points_treshold", - "ordinal": 11, - "type_info": "Int4" - }, - { - "name": "ects_credits", - "ordinal": 12, - "type_info": "Int4" - }, - { - "name": "completion_registration_link_override", - "ordinal": 13, - "type_info": "Varchar" - }, - { - "name": "automatic_completion_requires_exam", - "ordinal": 14, - "type_info": "Bool" - }, - { - "name": "enable_registering_completion_to_uh_open_university", - "ordinal": 15, - "type_info": "Bool" - }, - { - "name": "certification_enabled", - "ordinal": 16, - "type_info": "Bool" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - true, - false, - true, - true, - false, - true, - true, - true, - true, - false, - false, - false - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT *\nFROM course_modules\nWHERE id = $1\n AND deleted_at IS NULL\n " - }, - "fc97d773d58e21b452083c182999e7ca3c71af276739cd4b06cced6aaf997b46": { - "describe": { - "columns": [ - { - "name": "user_id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "email", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "points_for_exercises", - "ordinal": 2, - "type_info": "Jsonb" - } - ], - "nullable": [false, false, null], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT user_id,\n email,\n to_jsonb(array_agg(to_jsonb(uue) - 'email' - 'user_id')) AS points_for_exercises\nFROM (\n SELECT u.id AS user_id,\n ud.email,\n exercise_id,\n COALESCE(score_given, 0) as score_given\n FROM user_exercise_states ues\n JOIN users u ON u.id = ues.user_id\n JOIN user_details ud ON ud.user_id = u.id\n JOIN exercises e ON e.id = ues.exercise_id\n WHERE ues.exam_id = $1\n AND ues.deleted_at IS NULL\n AND u.deleted_at IS NULL\n AND e.deleted_at IS NULL\n ) as uue\nGROUP BY user_id,\n email\n" - }, - "fca8672f757656db6332543f9d4351224a1218c4387310e9447e70dad48af7cf": { - "describe": { - "columns": [ - { - "name": "course_id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "SELECT course_id from chapters where id = $1" - }, - "fce50f511ee8a013e02c795b44957e2c4abe50884268fa7b95c50fb18a4af669": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "secret_key", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "name", - "ordinal": 5, - "type_info": "Varchar" - } - ], - "nullable": [false, false, false, true, false, false], - "parameters": { - "Left": ["Text"] - } - }, - "query": "\nSELECT *\nFROM study_registry_registrars\nWHERE secret_key = $1\n AND deleted_at IS NULL\n " - }, - "fd2dc0fa1808737caab346e31ed3fb67a2608166ba86a2378f23b9788ac55453": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 1, - "type_info": "Uuid" - }, - { - "name": "research_consent_form_id", - "ordinal": 2, - "type_info": "Uuid" - }, - { - "name": "question", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "created_at", - "ordinal": 4, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 6, - "type_info": "Timestamptz" - } - ], - "nullable": [false, false, false, false, false, false, true], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT * FROM course_specific_consent_form_questions\nWHERE course_id = $1\nAND deleted_at IS NULL\n" - }, - "fec39a3e64b3e84a8362eb22e8f0d6de965ec924ab15a8078505c54b59dfa3ad": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "course_module_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "certificate_owner_name_y_pos", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "certificate_owner_name_x_pos", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "certificate_owner_name_font_size", - "ordinal": 8, - "type_info": "Varchar" - }, - { - "name": "certificate_owner_name_text_color", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "certificate_owner_name_text_anchor: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": ["start", "middle", "end"] - }, - "name": "certificate_text_anchor" - } - } - }, - { - "name": "certificate_validate_url_y_pos", - "ordinal": 11, - "type_info": "Varchar" - }, - { - "name": "certificate_validate_url_x_pos", - "ordinal": 12, - "type_info": "Varchar" - }, - { - "name": "certificate_validate_url_font_size", - "ordinal": 13, - "type_info": "Varchar" - }, - { - "name": "certificate_validate_url_text_color", - "ordinal": 14, - "type_info": "Varchar" - }, - { - "name": "certificate_validate_url_text_anchor: _", - "ordinal": 15, - "type_info": { - "Custom": { - "kind": { - "Enum": ["start", "middle", "end"] - }, - "name": "certificate_text_anchor" - } - } - }, - { - "name": "certificate_date_y_pos", - "ordinal": 16, - "type_info": "Varchar" - }, - { - "name": "certificate_date_x_pos", - "ordinal": 17, - "type_info": "Varchar" - }, - { - "name": "certificate_date_font_size", - "ordinal": 18, - "type_info": "Varchar" - }, - { - "name": "certificate_date_text_color", - "ordinal": 19, - "type_info": "Varchar" - }, - { - "name": "certificate_date_text_anchor: _", - "ordinal": 20, - "type_info": { - "Custom": { - "kind": { - "Enum": ["start", "middle", "end"] - }, - "name": "certificate_text_anchor" - } - } - }, - { - "name": "certificate_locale", - "ordinal": 21, - "type_info": "Varchar" - }, - { - "name": "paper_size: _", - "ordinal": 22, - "type_info": { - "Custom": { - "kind": { - "Enum": ["horizontal-a4", "vertical-a4"] - }, - "name": "certificate_paper_size" - } - } - }, - { - "name": "background_svg_path", - "ordinal": 23, - "type_info": "Varchar" - }, - { - "name": "background_svg_file_upload_id", - "ordinal": 24, - "type_info": "Uuid" - }, - { - "name": "overlay_svg_path", - "ordinal": 25, - "type_info": "Varchar" - }, - { - "name": "overlay_svg_file_upload_id", - "ordinal": 26, - "type_info": "Uuid" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - true, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - true - ], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n deleted_at,\n course_module_id,\n course_instance_id,\n certificate_owner_name_y_pos,\n certificate_owner_name_x_pos,\n certificate_owner_name_font_size,\n certificate_owner_name_text_color,\n certificate_owner_name_text_anchor as \"certificate_owner_name_text_anchor: _\",\n certificate_validate_url_y_pos,\n certificate_validate_url_x_pos,\n certificate_validate_url_font_size,\n certificate_validate_url_text_color,\n certificate_validate_url_text_anchor as \"certificate_validate_url_text_anchor: _\",\n certificate_date_y_pos,\n certificate_date_x_pos,\n certificate_date_font_size,\n certificate_date_text_color,\n certificate_date_text_anchor as \"certificate_date_text_anchor: _\",\n certificate_locale,\n paper_size as \"paper_size: _\",\n background_svg_path,\n background_svg_file_upload_id,\n overlay_svg_path,\n overlay_svg_file_upload_id\nFROM course_module_certificate_configurations\nWHERE course_module_id = $1\n AND deleted_at IS NULL\n " - }, - "fefaaa5c5e1de08eb78712713351fe1623b3a9b9a9e416bfd8135c4d571cb4fb": { - "describe": { - "columns": [ - { - "name": "order_number", - "ordinal": 0, - "type_info": "Int4" - } - ], - "nullable": [null], - "parameters": { - "Left": ["Uuid"] - } - }, - "query": "\nselect max(p.order_number) as order_number\nfrom pages p\nwhere p.course_id = $1\n and p.chapter_id is null\n and p.deleted_at is null;\n" - }, - "ffb21394a250cb5874f815af037de8e881b7be9f4bb2615b7d0526634d087dbd": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "exercise_slide_id", - "ordinal": 4, - "type_info": "Uuid" - }, - { - "name": "course_id", - "ordinal": 5, - "type_info": "Uuid" - }, - { - "name": "course_instance_id", - "ordinal": 6, - "type_info": "Uuid" - }, - { - "name": "exam_id", - "ordinal": 7, - "type_info": "Uuid" - }, - { - "name": "exercise_id", - "ordinal": 8, - "type_info": "Uuid" - }, - { - "name": "user_id", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "user_points_update_strategy: _", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "can-add-points-but-cannot-remove-points", - "can-add-points-and-can-remove-points" - ] - }, - "name": "user_points_update_strategy" - } - } - } - ], - "nullable": [false, false, false, true, false, true, true, true, false, false, false], - "parameters": { - "Left": ["Uuid", "Int8", "Int8"] - } - }, - "query": "\nSELECT id,\n created_at,\n updated_at,\n deleted_at,\n exercise_slide_id,\n course_id,\n course_instance_id,\n exam_id,\n exercise_id,\n user_id,\n user_points_update_strategy AS \"user_points_update_strategy: _\"\nFROM exercise_slide_submissions\nWHERE exercise_id = $1\n AND deleted_at IS NULL\nORDER BY created_at DESC\nLIMIT $2 OFFSET $3\n " - }, - "ffceb3f0780f56e249bcc6983105d897534b65d8fc362fc56ea275d45661e617": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "deleted_at", - "ordinal": 3, - "type_info": "Timestamptz" - }, - { - "name": "name", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "url", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "width", - "ordinal": 6, - "type_info": "Int4" - }, - { - "name": "data", - "ordinal": 7, - "type_info": "Jsonb" - } - ], - "nullable": [false, false, false, true, false, false, false, false], - "parameters": { - "Left": ["Varchar", "Varchar", "Int4", "Jsonb", "Uuid"] - } - }, - "query": "\nUPDATE playground_examples\nSET updated_at = now(),\n name = $1,\n url = $2,\n width = $3,\n data = $4\nWHERE id = $5\nRETURNING *;\n " - }, - "ffd75e8c01536d9225e7447cb078d9365a5e4edf2dd53d9fefe8975d44c90930": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - } - ], - "nullable": [false], - "parameters": { - "Left": ["Uuid", "Uuid", "Text", "Uuid"] - } - }, - "query": "\nINSERT INTO url_redirections (id, destination_page_id, old_url_path, course_id)\nVALUES ($1, $2, $3, $4)\nON CONFLICT (old_url_path, course_id, deleted_at) DO UPDATE SET\n destination_page_id = $2\nRETURNING id\n " - }, - "ffdcee66fc7df1125bb7f1fe5e05367efcef5525207938af4b7d69fc784f2396": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamptz" - }, - { - "name": "updated_at", - "ordinal": 2, - "type_info": "Timestamptz" - }, - { - "name": "exercise_type", - "ordinal": 3, - "type_info": "Varchar" - }, - { - "name": "assignment", - "ordinal": 4, - "type_info": "Jsonb" - }, - { - "name": "deleted_at", - "ordinal": 5, - "type_info": "Timestamptz" - }, - { - "name": "private_spec", - "ordinal": 6, - "type_info": "Jsonb" - }, - { - "name": "public_spec", - "ordinal": 7, - "type_info": "Jsonb" - }, - { - "name": "model_solution_spec", - "ordinal": 8, - "type_info": "Jsonb" - }, - { - "name": "copied_from", - "ordinal": 9, - "type_info": "Uuid" - }, - { - "name": "exercise_slide_id", - "ordinal": 10, - "type_info": "Uuid" - }, - { - "name": "order_number", - "ordinal": 11, - "type_info": "Int4" - } - ], - "nullable": [false, false, false, false, false, true, true, true, true, true, false, false], - "parameters": { - "Left": ["UuidArray"] - } - }, - "query": "\nSELECT *\nFROM exercise_tasks\nWHERE exercise_slide_id = ANY($1)\n AND deleted_at IS NULL;\n " - } -} diff --git a/services/headless-lms/models/src/library/peer_reviewing.rs b/services/headless-lms/models/src/library/peer_reviewing.rs index 32f0e0d3a61a..8454e7f95b57 100644 --- a/services/headless-lms/models/src/library/peer_reviewing.rs +++ b/services/headless-lms/models/src/library/peer_reviewing.rs @@ -469,7 +469,6 @@ async fn try_to_select_peer_review_candidate_from_queue( if let Some(ess) = ess { if ess.deleted_at.is_none() { return Ok(Some(ess)); - } else { } } // We found a submission from the peer reveiw queue but the submission was deleted. This is unfortunate since if diff --git a/services/headless-lms/models/src/library/user_exercise_state_updater/mod.rs b/services/headless-lms/models/src/library/user_exercise_state_updater/mod.rs index 677d4590b83b..da1aee291e03 100644 --- a/services/headless-lms/models/src/library/user_exercise_state_updater/mod.rs +++ b/services/headless-lms/models/src/library/user_exercise_state_updater/mod.rs @@ -23,7 +23,7 @@ use crate::{ use std::default::Default; /// Visible only in the current module (and submodules) to prevent misuse. -pub(self) struct UserExerciseStateUpdateRequiredData { +pub struct UserExerciseStateUpdateRequiredData { pub exercise: Exercise, pub current_user_exercise_state: UserExerciseState, /// None if peer review is not enabled for the exercise @@ -35,7 +35,7 @@ pub(self) struct UserExerciseStateUpdateRequiredData { } /// Visible only in the current module (and submodules) to prevent misuse. -pub(self) struct UserExerciseStateUpdateRequiredDataPeerReviewInformation { +pub struct UserExerciseStateUpdateRequiredDataPeerReviewInformation { pub given_peer_review_submissions: Vec, pub latest_exercise_slide_submission_received_peer_review_question_submissions: Vec, diff --git a/services/headless-lms/server/src/domain/langs/token.rs b/services/headless-lms/server/src/domain/langs/token.rs index ec7a94bdbbd7..f57ea03a3284 100644 --- a/services/headless-lms/server/src/domain/langs/token.rs +++ b/services/headless-lms/server/src/domain/langs/token.rs @@ -51,32 +51,40 @@ impl FromRequest for AuthToken { .and_then(|h| h.strip_prefix("Bearer ").map(str::to_string)); async move { let Some(token) = auth_header else { - return Err(ControllerError::new(ControllerErrorType::Unauthorized, "Missing bearer token".to_string(), None)); + return Err(ControllerError::new( + ControllerErrorType::Unauthorized, + "Missing bearer token".to_string(), + None, + )); }; let mut conn = pool.acquire().await?; - - let user = if app_conf.test_mode { - warn!("Using test credentials. Normal accounts won't work."); - authorization::authenticate_test_token(&mut conn, &token, &app_conf) - .await.map_err(|err| - ControllerError::new(ControllerErrorType::Unauthorized, "Could not find user".to_string(), Some(err)))? - } else { - match load_user(&cache, &token).await { - Some(user) => user, - None => { - let token = LoginToken::new( - oauth2::AccessToken::new(token), - oauth2::basic::BasicTokenType::Bearer, - oauth2::EmptyExtraTokenFields {}, - ); - let user = authorization::get_user_from_moocfi(&token, &mut conn).await?; - cache_user(&cache, &token, &user) - .await; - user + let user = if app_conf.test_mode { + warn!("Using test credentials. Normal accounts won't work."); + authorization::authenticate_test_token(&mut conn, &token, &app_conf) + .await + .map_err(|err| { + ControllerError::new( + ControllerErrorType::Unauthorized, + "Could not find user".to_string(), + Some(err), + ) + })? + } else { + match load_user(&cache, &token).await { + Some(user) => user, + None => { + let token = LoginToken::new( + oauth2::AccessToken::new(token), + oauth2::basic::BasicTokenType::Bearer, + oauth2::EmptyExtraTokenFields {}, + ); + let user = authorization::get_user_from_moocfi(&token, &mut conn).await?; + cache_user(&cache, &token, &user).await; + user + } } - } - }; + }; Ok(Self(user)) } diff --git a/services/headless-lms/server/src/programs/seed/seed_courses.rs b/services/headless-lms/server/src/programs/seed/seed_courses.rs index 6f260db9718f..6bf33b48833f 100644 --- a/services/headless-lms/server/src/programs/seed/seed_courses.rs +++ b/services/headless-lms/server/src/programs/seed/seed_courses.rs @@ -613,7 +613,7 @@ pub async fn seed_sample_course( "direction": "row", "updatedAt": "2021-12-17T07:16:23.202Z", "formatRegex": null, - "validityRegex": r#"^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$"#.to_string(), + "validityRegex": r"^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$".to_string(), "failureMessage": "Oh no! Your answer is not in yyyy-mm-dd format :(".to_string(), "successMessage": "Gongrats! your answer is in yyyy-mm-dd format!".to_string(), "allAnswersCorrect": false, @@ -3466,7 +3466,7 @@ pub async fn seed_course_without_submissions( "direction": "row", "updatedAt": "2021-12-17T07:16:23.202Z", "formatRegex": null, - "validityRegex": r#"^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$"#.to_string(), + "validityRegex": r"^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$".to_string(), "failureMessage": "Oh no! Your answer is not in yyyy-mm-dd format :(".to_string(), "successMessage": "Gongrats! your answer is in yyyy-mm-dd format!".to_string(), "allAnswersCorrect": false, diff --git a/services/headless-lms/utils/src/cache.rs b/services/headless-lms/utils/src/cache.rs index 5634ab99cc4e..01de09bd77f4 100644 --- a/services/headless-lms/utils/src/cache.rs +++ b/services/headless-lms/utils/src/cache.rs @@ -31,8 +31,8 @@ impl Cache { match self.client.get_async_connection().await { Ok(mut conn) => { let Ok(value) = serde_json::to_vec(value) else { - return false; - }; + return false; + }; match conn .set_ex::<_, _, ()>(key, value, expires_in.as_secs() as usize) .await diff --git a/services/main-frontend/package-lock.json b/services/main-frontend/package-lock.json index 5724b6e6ef60..983e6093484a 100644 --- a/services/main-frontend/package-lock.json +++ b/services/main-frontend/package-lock.json @@ -31,7 +31,7 @@ "@popperjs/core": "^2.11.8", "@tanstack/react-query": "^4.32.1", "@tanstack/react-table": "^8.9.3", - "@vectopus/atlas-icons-react": "^0.0.10", + "@vectopus/atlas-icons-react": "github:rage/Atlas-icons-react#d310057c60f4f011306c35ae9caf025c5a09e41b", "axios": "^1.4.0", "citation-js": "^0.6.8", "date-fns": "^2.30.0", @@ -6182,8 +6182,9 @@ }, "node_modules/@vectopus/atlas-icons-react": { "version": "0.0.10", - "resolved": "https://registry.npmjs.org/@vectopus/atlas-icons-react/-/atlas-icons-react-0.0.10.tgz", - "integrity": "sha512-dzhuQDFZWg//G0EHF+uGlSlsTnVVnPJzTNqe5hTko26dW0TUO75yzvKP9hVDHrTW21hGc6pI2qvgAh4irh843w==" + "resolved": "git+ssh://git@github.com/rage/Atlas-icons-react.git#d310057c60f4f011306c35ae9caf025c5a09e41b", + "integrity": "sha512-K7fFA5SQkzaHuhftE6Z1p+pmj6rqA6T/ZcP3qA2Z+XQgrQJrNBa8raLv6nlyyKpzPkdwLMIi0IPCJNgrLhGY5w==", + "license": "ISC" }, "node_modules/abort-controller": { "version": "3.0.0", @@ -20652,9 +20653,9 @@ } }, "@vectopus/atlas-icons-react": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/@vectopus/atlas-icons-react/-/atlas-icons-react-0.0.10.tgz", - "integrity": "sha512-dzhuQDFZWg//G0EHF+uGlSlsTnVVnPJzTNqe5hTko26dW0TUO75yzvKP9hVDHrTW21hGc6pI2qvgAh4irh843w==" + "version": "git+ssh://git@github.com/rage/Atlas-icons-react.git#d310057c60f4f011306c35ae9caf025c5a09e41b", + "integrity": "sha512-K7fFA5SQkzaHuhftE6Z1p+pmj6rqA6T/ZcP3qA2Z+XQgrQJrNBa8raLv6nlyyKpzPkdwLMIi0IPCJNgrLhGY5w==", + "from": "@vectopus/atlas-icons-react@github:rage/Atlas-icons-react#d310057c60f4f011306c35ae9caf025c5a09e41b" }, "abort-controller": { "version": "3.0.0", diff --git a/services/main-frontend/package.json b/services/main-frontend/package.json index 19c36ef85e67..27e2a63fe2ed 100644 --- a/services/main-frontend/package.json +++ b/services/main-frontend/package.json @@ -32,7 +32,7 @@ "@popperjs/core": "^2.11.8", "@tanstack/react-query": "^4.32.1", "@tanstack/react-table": "^8.9.3", - "@vectopus/atlas-icons-react": "^0.0.10", + "@vectopus/atlas-icons-react": "github:rage/Atlas-icons-react#d310057c60f4f011306c35ae9caf025c5a09e41b", "axios": "^1.4.0", "citation-js": "^0.6.8", "date-fns": "^2.30.0", diff --git a/services/main-frontend/src/components/page-specific/manage/courses/id/change-request/EditProposalView.tsx b/services/main-frontend/src/components/page-specific/manage/courses/id/change-request/EditProposalView.tsx index de20fba130c0..5158023354b0 100644 --- a/services/main-frontend/src/components/page-specific/manage/courses/id/change-request/EditProposalView.tsx +++ b/services/main-frontend/src/components/page-specific/manage/courses/id/change-request/EditProposalView.tsx @@ -1,6 +1,5 @@ import { css } from "@emotion/css" import styled from "@emotion/styled" -import { FormControl, FormControlLabel, Radio, RadioGroup } from "@mui/material" import { useQuery } from "@tanstack/react-query" import { diffChars } from "diff" import React, { useState } from "react" @@ -16,6 +15,7 @@ import { import { isEditedBlockStillExistsData } from "../../../../../../shared-module/bindings.guard" import Button from "../../../../../../shared-module/components/Button" import DiffFormatter from "../../../../../../shared-module/components/DiffFormatter" +import RadioButton from "../../../../../../shared-module/components/InputFields/RadioButton" import TextArea from "../../../../../../shared-module/components/InputFields/TextAreaField" import TimeComponent from "../../../../../../shared-module/components/TimeComponent" import HideTextInSystemTests from "../../../../../../shared-module/components/system-tests/HideTextInSystemTests" @@ -132,71 +132,73 @@ const EditProposalView: React.FC> = ({ } /> )} - {/* eslint-disable-next-line i18next/no-literal-string */} - - {/* eslint-disable-next-line i18next/no-literal-string */} - - {isEditedBlockStillExistsData(block) && ( - } - label={t("button-text-accept")} - onChange={() => { - setEditingBlocks((eb) => { - eb.delete(block.id) - return new Set(eb) - }) - setBlockActions((ba) => { - if (block.accept_preview !== null) { - // eslint-disable-next-line i18next/no-literal-string - ba.set(block.id, { tag: "Accept", data: block.accept_preview }) - } - return new Map(ba) - }) - }} - /> - )} - {isEditedBlockStillExistsData(block) && ( - } - label={t("edit-and-accept")} - onChange={() => { - setEditingBlocks((eb) => { - eb.add(block.id) - return new Set(eb) - }) - setBlockActions((ba) => { - if (block.accept_preview !== null) { - // eslint-disable-next-line i18next/no-literal-string - ba.set(block.id, { tag: "Accept", data: block.accept_preview }) - } - return new Map(ba) - }) - }} - /> - )} - + {isEditedBlockStillExistsData(block) && ( + } - label={t("button-text-reject")} + value="accept" + label={t("button-text-accept")} + name={"accept-or-reject-proposal"} onChange={() => { setEditingBlocks((eb) => { eb.delete(block.id) return new Set(eb) }) setBlockActions((ba) => { - // eslint-disable-next-line i18next/no-literal-string - ba.set(block.id, { tag: "Reject" }) + if (block.accept_preview !== null) { + // eslint-disable-next-line i18next/no-literal-string + ba.set(block.id, { tag: "Accept", data: block.accept_preview }) + } return new Map(ba) }) }} /> - - + )} + {isEditedBlockStillExistsData(block) && ( + { + setEditingBlocks((eb) => { + eb.add(block.id) + return new Set(eb) + }) + setBlockActions((ba) => { + if (block.accept_preview !== null) { + // eslint-disable-next-line i18next/no-literal-string + ba.set(block.id, { tag: "Accept", data: block.accept_preview }) + } + return new Map(ba) + }) + }} + /> + )} + { + setEditingBlocks((eb) => { + eb.delete(block.id) + return new Set(eb) + }) + setBlockActions((ba) => { + // eslint-disable-next-line i18next/no-literal-string + ba.set(block.id, { tag: "Reject" }) + return new Map(ba) + }) + }} + /> + ) } diff --git a/services/main-frontend/src/components/page-specific/manage/courses/id/course-instances/NewCourseInstanceDialog.tsx b/services/main-frontend/src/components/page-specific/manage/courses/id/course-instances/NewCourseInstanceDialog.tsx index 6c68caa49b4a..3a139b2f93a6 100644 --- a/services/main-frontend/src/components/page-specific/manage/courses/id/course-instances/NewCourseInstanceDialog.tsx +++ b/services/main-frontend/src/components/page-specific/manage/courses/id/course-instances/NewCourseInstanceDialog.tsx @@ -1,9 +1,9 @@ import { css } from "@emotion/css" -import { Dialog, DialogContentText } from "@mui/material" import { useTranslation } from "react-i18next" import { newCourseInstance } from "../../../../../../services/backend/courses" import { CourseInstanceForm } from "../../../../../../shared-module/bindings" +import Dialog from "../../../../../../shared-module/components/Dialog" import ErrorBanner from "../../../../../../shared-module/components/ErrorBanner" import useToastMutation from "../../../../../../shared-module/hooks/useToastMutation" @@ -37,24 +37,20 @@ const NewCourseInstanceDialog: React.FC< return ( { - if (reason && reason === "backdropClick") { - return - } - onClose() - }} role="dialog" aria-labelledby="label" + noPadding={true} title={t("new-course-instance-dialog")} className={css` z-index: 10000; + display: flex; + flex-direction: column; + align-content: center; `} >

{t("new-course-instance")}

- - {mutation.isError && } - { - mutation.mutate(data) - }} - onCancel={onClose} - /> - + {mutation.isError && } + { + mutation.mutate(data) + }} + onCancel={onClose} + />
) diff --git a/services/main-frontend/src/components/page-specific/manage/courses/id/exams/NewExamDialog.tsx b/services/main-frontend/src/components/page-specific/manage/courses/id/exams/NewExamDialog.tsx index 251825783950..e548829039af 100644 --- a/services/main-frontend/src/components/page-specific/manage/courses/id/exams/NewExamDialog.tsx +++ b/services/main-frontend/src/components/page-specific/manage/courses/id/exams/NewExamDialog.tsx @@ -1,11 +1,11 @@ import { css } from "@emotion/css" -import { Dialog, DialogContentText } from "@mui/material" import { UseQueryResult } from "@tanstack/react-query" import React from "react" import { useTranslation } from "react-i18next" import { createExam, createExamDuplicate } from "../../../../../../services/backend/exams" import { NewExam, OrgExam } from "../../../../../../shared-module/bindings" +import Dialog from "../../../../../../shared-module/components/Dialog" import ErrorBanner from "../../../../../../shared-module/components/ErrorBanner" import useToastMutation from "../../../../../../shared-module/hooks/useToastMutation" import NewExamForm from "../../../../../forms/NewExamForm" @@ -72,6 +72,7 @@ const NewExamDialog: React.FC> = ({ role="dialog" aria-labelledby="label" title={t("new-exam-dialog")} + noPadding={true} >
> = ({

{t("new-exam")}

- - {createExamMutation.isError && ( - - )} - {duplicateExamMutation.isError && ( - - )} - createExamMutation.mutate(newExam)} - onDuplicateExam={(parentId: string, newExam: NewExam) => - duplicateExamMutation.mutate({ examId: parentId, newExam: newExam }) - } - /> - + {createExamMutation.isError && ( + + )} + {duplicateExamMutation.isError && ( + + )} + createExamMutation.mutate(newExam)} + onDuplicateExam={(parentId: string, newExam: NewExam) => + duplicateExamMutation.mutate({ examId: parentId, newExam: newExam }) + } + />
diff --git a/services/main-frontend/src/components/page-specific/manage/courses/id/index/ManageCourse.tsx b/services/main-frontend/src/components/page-specific/manage/courses/id/index/ManageCourse.tsx index 6dbdbf9bf126..8dcc197a8db2 100644 --- a/services/main-frontend/src/components/page-specific/manage/courses/id/index/ManageCourse.tsx +++ b/services/main-frontend/src/components/page-specific/manage/courses/id/index/ManageCourse.tsx @@ -1,5 +1,4 @@ import { css } from "@emotion/css" -import { Dialog } from "@mui/material" import { QueryObserverResult, RefetchOptions, RefetchQueryFilters } from "@tanstack/react-query" import React, { useState } from "react" import { useTranslation } from "react-i18next" @@ -11,6 +10,7 @@ import { } from "../../../../../../services/backend/courses" import { Course } from "../../../../../../shared-module/bindings" import Button from "../../../../../../shared-module/components/Button" +import Dialog from "../../../../../../shared-module/components/Dialog" import OnlyRenderIfPermissions from "../../../../../../shared-module/components/OnlyRenderIfPermissions" import useToastMutation from "../../../../../../shared-module/hooks/useToastMutation" import { baseTheme, headingFont, typography } from "../../../../../../shared-module/styles" @@ -118,15 +118,20 @@ const ManageCourse: React.FC> = ({ course, refetc - setShowForm(!showForm)}> +
- +
+ +
+ = ({ /> {active ? ( <> - - - - + + ) : ( - setActive(true)} + variant={"icon"} + size={"small"} > - - + + )} {module.name !== null && ( - onDeleteModule(module.id)} disabled={isSubmitting} + variant={"icon"} + size={"small"} > - - + + )}
diff --git a/services/main-frontend/src/components/page-specific/manage/courses/id/pages/ManageCourseStructure.tsx b/services/main-frontend/src/components/page-specific/manage/courses/id/pages/ManageCourseStructure.tsx index 91a5bb64b789..361481509ee2 100644 --- a/services/main-frontend/src/components/page-specific/manage/courses/id/pages/ManageCourseStructure.tsx +++ b/services/main-frontend/src/components/page-specific/manage/courses/id/pages/ManageCourseStructure.tsx @@ -1,5 +1,4 @@ import { css, cx } from "@emotion/css" -import { Dialog } from "@mui/material" import { QueryObserverResult, RefetchOptions, RefetchQueryFilters } from "@tanstack/react-query" import { max } from "lodash" import React, { useEffect, useReducer, useState } from "react" @@ -18,6 +17,7 @@ import Button from "../../../../../../shared-module/components/Button" import BreakFromCentered from "../../../../../../shared-module/components/Centering/BreakFromCentered" import Centered from "../../../../../../shared-module/components/Centering/Centered" import DebugModal from "../../../../../../shared-module/components/DebugModal" +import Dialog from "../../../../../../shared-module/components/Dialog" import DropdownMenu from "../../../../../../shared-module/components/DropdownMenu" import useToastMutation from "../../../../../../shared-module/hooks/useToastMutation" import { baseTheme, headingFont, typography } from "../../../../../../shared-module/styles" @@ -279,7 +279,6 @@ const ManageCourseStructure: React.FC { setChapterBeingEdited(null) - setShowEditChapterForm(false) }} >
{ setChapterBeingEdited(null) - setShowEditImageModal(false) }} >
> = ({ {t("button-text-new-page")} - setShowNewPageForm(!showNewPageForm)}> +
- -

- {t("edit-reference")} -

-
- +

+ {t("edit-reference")} +

+
deleteReferenceMutation.mutate({ courseId, id })} @@ -91,7 +94,7 @@ const EditReferenceDialog: React.FC - +
) } diff --git a/services/main-frontend/src/components/page-specific/manage/courses/id/references/NewReferenceDialog.tsx b/services/main-frontend/src/components/page-specific/manage/courses/id/references/NewReferenceDialog.tsx index 1ad8cc1c098f..10dd268f02a4 100644 --- a/services/main-frontend/src/components/page-specific/manage/courses/id/references/NewReferenceDialog.tsx +++ b/services/main-frontend/src/components/page-specific/manage/courses/id/references/NewReferenceDialog.tsx @@ -1,10 +1,10 @@ import { css } from "@emotion/css" -import { Dialog, DialogContent, DialogTitle } from "@mui/material" import { UseQueryResult } from "@tanstack/react-query" import { useTranslation } from "react-i18next" import { postNewReferences } from "../../../../../../services/backend/courses" import { MaterialReference, NewMaterialReference } from "../../../../../../shared-module/bindings" +import Dialog from "../../../../../../shared-module/components/Dialog" import useToastMutation from "../../../../../../shared-module/hooks/useToastMutation" import NewReferenceForm from "../../../../../forms/NewReferenceForm" @@ -44,24 +44,28 @@ const NewReferenceDialog: React.FC - -

- {t("new-reference")} -

-
- +

+ {t("new-reference")} +

+
createReferenceMutation.mutate(newReference)} /> - +
) } diff --git a/services/main-frontend/src/components/page-specific/manage/exercise-services/ExerciseServiceCard.tsx b/services/main-frontend/src/components/page-specific/manage/exercise-services/ExerciseServiceCard.tsx index 294a32a3e970..a3e8fe5c4e60 100644 --- a/services/main-frontend/src/components/page-specific/manage/exercise-services/ExerciseServiceCard.tsx +++ b/services/main-frontend/src/components/page-specific/manage/exercise-services/ExerciseServiceCard.tsx @@ -1,17 +1,8 @@ import { css } from "@emotion/css" -import CancelIcon from "@mui/icons-material/Cancel" -import DeleteIcon from "@mui/icons-material/Delete" import DoneIcon from "@mui/icons-material/Done" -import EditIcon from "@mui/icons-material/Edit" import ErrorIcon from "@mui/icons-material/Error" -import SaveIcon from "@mui/icons-material/Save" -import { Card, CardContent, CardHeader, IconButton } from "@mui/material" -import Dialog from "@mui/material/Dialog" -import DialogActions from "@mui/material/DialogActions" -import DialogContent from "@mui/material/DialogContent" -import DialogContentText from "@mui/material/DialogContentText" -import DialogTitle from "@mui/material/DialogTitle" import { QueryObserverResult } from "@tanstack/react-query" +import { FloppyDiskSave, Pencil, Trash, XmarkCircle } from "@vectopus/atlas-icons-react" import { useState } from "react" import { useTranslation } from "react-i18next" @@ -21,6 +12,7 @@ import { } from "../../../../services/backend/exercise-services" import { ExerciseService, ExerciseServiceNewOrUpdate } from "../../../../shared-module/bindings" import Button from "../../../../shared-module/components/Button" +import Dialog from "../../../../shared-module/components/Dialog" import TimeComponent from "../../../../shared-module/components/TimeComponent" import { validURL } from "../../../../shared-module/utils/validation" import { canSave } from "../../../../utils/canSaveExerciseService" @@ -122,47 +114,100 @@ const ExerciseServiceCard: React.FC - - - - {status == UpdateStatus.none ? ( - - ) : status == UpdateStatus.saved ? ( - - ) : ( - - )} - - - - - - ) : ( -
- - - - - - -
- ) - } - /> - +
+
+

+ {editing ? t("edit") : service.name} +

+
+ {editing || t("header-slug", { slug: service.slug })} +
+
+ + {editing ? ( +
+ + +
+ ) : ( +
+ + +
+ )} +
+
{editing && ( <> - - - +
+
- - - - {t("button-text-delete")} - - - {t("delete-confirmation", { name: service.name })} - - - - -
+
+ +
+

{t("button-text-delete")} - - +

+ +
+ {t("delete-confirmation", { name: service.name })} +
+
+ + +
+
) diff --git a/services/main-frontend/src/components/page-specific/manage/exercise-services/ExerciseServiceCreationModal.tsx b/services/main-frontend/src/components/page-specific/manage/exercise-services/ExerciseServiceCreationModal.tsx index f79c9623c720..3b2b2813a750 100644 --- a/services/main-frontend/src/components/page-specific/manage/exercise-services/ExerciseServiceCreationModal.tsx +++ b/services/main-frontend/src/components/page-specific/manage/exercise-services/ExerciseServiceCreationModal.tsx @@ -1,10 +1,10 @@ import { css } from "@emotion/css" -import { Card, CardContent, CardHeader, Modal } from "@mui/material" import React from "react" import { useTranslation } from "react-i18next" import { ExerciseServiceNewOrUpdate } from "../../../../shared-module/bindings" import Button from "../../../../shared-module/components/Button" +import Dialog from "../../../../shared-module/components/Dialog" import { validURL } from "../../../../shared-module/utils/validation" import ContentArea from "./ContentArea" @@ -27,7 +27,7 @@ const ExerciseServiceCreationModal: React.FC< > = ({ open, handleClose, exercise_service, onChange, onChangeName, handleSubmit }) => { const { t } = useTranslation() return ( - - - - +

{t("button-text-create")}

+
- - - - - - - +
+ + + + +
) } diff --git a/services/main-frontend/src/components/page-specific/manage/exercises/id/submissions/AnswersRequiringAttentionItem.tsx b/services/main-frontend/src/components/page-specific/manage/exercises/id/submissions/AnswersRequiringAttentionItem.tsx index 551103c50692..0b87183dea1a 100644 --- a/services/main-frontend/src/components/page-specific/manage/exercises/id/submissions/AnswersRequiringAttentionItem.tsx +++ b/services/main-frontend/src/components/page-specific/manage/exercises/id/submissions/AnswersRequiringAttentionItem.tsx @@ -2,7 +2,6 @@ import { css, cx } from "@emotion/css" import styled from "@emotion/styled" import { faAngleDown, faCircleExclamation } from "@fortawesome/free-solid-svg-icons" import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" -import { Input, Slider } from "@mui/material" import React, { useState } from "react" import { useTranslation } from "react-i18next" import { usePopper } from "react-popper" @@ -107,16 +106,6 @@ const AnswersRequiringAttentionItem: React.FC = ({ ], }) - const handleSliderChange = (event: Event, newValue: number | number[]) => { - if (typeof newValue === "number") { - setSliderValue(newValue) - } - } - - const handleInputFieldChange = (event: React.ChangeEvent) => { - setSliderValue(Number(event.target.value)) - } - const doSubmitChange = async ( user_exercise_state_id: string, exercise_id: string, @@ -353,32 +342,46 @@ const AnswersRequiringAttentionItem: React.FC = ({ display: flex; flex-direction: row; margin-bottom: 1em; + justify-content: space-evenly; `} > - - + setSliderValue(Number(event.target.value))} + aria-labelledby="input-slider" + /> + + + setSliderValue(Number(event.target.value))} + min="0.0" + step={0.1} + max="exerciseMaxPoints" + type="number" + // eslint-disable-next-line i18next/no-literal-string + aria-labelledby="input-slider" />
diff --git a/services/main-frontend/src/components/page-specific/org/organizationSlug/CourseList.tsx b/services/main-frontend/src/components/page-specific/org/organizationSlug/CourseList.tsx index a6ac6a0eb1eb..7db81d7354ea 100644 --- a/services/main-frontend/src/components/page-specific/org/organizationSlug/CourseList.tsx +++ b/services/main-frontend/src/components/page-specific/org/organizationSlug/CourseList.tsx @@ -1,5 +1,4 @@ import { css } from "@emotion/css" -import { Dialog } from "@mui/material" import { useQuery } from "@tanstack/react-query" import { useContext, useState } from "react" import { useTranslation } from "react-i18next" @@ -11,6 +10,7 @@ import { } from "../../../../services/backend/organizations" import { NewCourse } from "../../../../shared-module/bindings" import Button from "../../../../shared-module/components/Button" +import Dialog from "../../../../shared-module/components/Dialog" import ErrorBanner from "../../../../shared-module/components/ErrorBanner" import OnlyRenderIfPermissions from "../../../../shared-module/components/OnlyRenderIfPermissions" import Pagination from "../../../../shared-module/components/Pagination" @@ -138,10 +138,11 @@ const CourseList: React.FC> = ({ margin-bottom: 1rem; `} > - setNewCourseFormOpen(!newCourseFormOpen)}> +
- setShowForm(!showForm)}> +
> = ({ Component, pagePro )} - - - - + + ) diff --git a/shared-module/package-lock.json b/shared-module/package-lock.json index 6061d7756c61..f5eedcd86a98 100644 --- a/shared-module/package-lock.json +++ b/shared-module/package-lock.json @@ -25,6 +25,7 @@ "@mui/material": "^5.14.2", "@popperjs/core": "^2.11.8", "@tanstack/react-query": "^4.32.1", + "@vectopus/atlas-icons-react": "github:rage/Atlas-icons-react#d310057c60f4f011306c35ae9caf025c5a09e41b", "axios": "^1.4.0", "date-fns": "^2.30.0", "i18next": "^23.4.1", @@ -9504,6 +9505,12 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@vectopus/atlas-icons-react": { + "version": "0.0.10", + "resolved": "git+ssh://git@github.com/rage/Atlas-icons-react.git#d310057c60f4f011306c35ae9caf025c5a09e41b", + "integrity": "sha512-K7fFA5SQkzaHuhftE6Z1p+pmj6rqA6T/ZcP3qA2Z+XQgrQJrNBa8raLv6nlyyKpzPkdwLMIi0IPCJNgrLhGY5w==", + "license": "ISC" + }, "node_modules/@webassemblyjs/ast": { "version": "1.11.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.5.tgz", @@ -32972,6 +32979,11 @@ "eslint-visitor-keys": "^3.3.0" } }, + "@vectopus/atlas-icons-react": { + "version": "git+ssh://git@github.com/rage/Atlas-icons-react.git#d310057c60f4f011306c35ae9caf025c5a09e41b", + "integrity": "sha512-K7fFA5SQkzaHuhftE6Z1p+pmj6rqA6T/ZcP3qA2Z+XQgrQJrNBa8raLv6nlyyKpzPkdwLMIi0IPCJNgrLhGY5w==", + "from": "@vectopus/atlas-icons-react@github:rage/Atlas-icons-react#d310057c60f4f011306c35ae9caf025c5a09e41b" + }, "@webassemblyjs/ast": { "version": "1.11.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.5.tgz", diff --git a/shared-module/package.json b/shared-module/package.json index 21eed7e5241a..7a99f8144ece 100644 --- a/shared-module/package.json +++ b/shared-module/package.json @@ -71,6 +71,7 @@ "@mui/material": "^5.14.2", "@popperjs/core": "^2.11.8", "@tanstack/react-query": "^4.32.1", + "@vectopus/atlas-icons-react": "github:rage/Atlas-icons-react#d310057c60f4f011306c35ae9caf025c5a09e41b", "axios": "^1.4.0", "date-fns": "^2.30.0", "i18next": "^23.4.1", diff --git a/shared-module/src/components/Button.tsx b/shared-module/src/components/Button.tsx index 6960ba702738..c7978c1075be 100644 --- a/shared-module/src/components/Button.tsx +++ b/shared-module/src/components/Button.tsx @@ -6,7 +6,7 @@ import { defaultFontSizePx } from "../styles/constants" import { respondToOrLarger } from "../styles/respond" export interface ButtonProps extends React.ButtonHTMLAttributes { - variant: "primary" | "secondary" | "reject" | "tertiary" | "outlined" | "blue" | "white" + variant: "primary" | "secondary" | "reject" | "tertiary" | "outlined" | "blue" | "white" | "icon" size: "small" | "medium" | "large" transform?: "capitalize" | "uppercase" | "none" | "lowercase" children?: React.ReactNode @@ -89,6 +89,18 @@ export const WhiteButtonStyles = (props: ButtonProps) => { return WHITE_BUTTON_STYLES } +export const IconButtonStyles = (props: ButtonProps) => { + const ICON_BUTTON_STYLES = ` + text-transform: ${props.transform}; + padding: ${theme.buttonSizes[props.size].padding}; + + color: #000000; + background: none; + border: 0px; + ` + return ICON_BUTTON_STYLES +} + export const SecondaryButtonStyles = (props: ButtonProps) => { const SECONDARY_BUTTON_STYLES = ` text-transform: ${props.transform}; @@ -234,6 +246,10 @@ const WhiteButton = styled.button` ${BASE_BUTTON_STYLES} ${WhiteButtonStyles} ` +const IconButton = styled.button` + ${BASE_BUTTON_STYLES} + ${IconButtonStyles} +` export const LabelButton = styled.label` ${BASE_BUTTON_STYLES} @@ -263,6 +279,8 @@ const Button = forwardRef((props: ButtonProps, ref?: Ref) => return case "white": return + case "icon": + return default: return } diff --git a/shared-module/src/components/DebugModal.tsx b/shared-module/src/components/DebugModal.tsx index f07e2cf5f15c..63657f0ad58b 100644 --- a/shared-module/src/components/DebugModal.tsx +++ b/shared-module/src/components/DebugModal.tsx @@ -2,11 +2,11 @@ import { css } from "@emotion/css" import styled from "@emotion/styled" import { faBug as faIcon } from "@fortawesome/free-solid-svg-icons" import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" -import { Dialog, Paper } from "@mui/material" import { Dispatch, useState } from "react" import { useTranslation } from "react-i18next" import Button from "./Button" +import Dialog from "./Dialog" import MonacoEditor from "./monaco/MonacoEditor" export interface DebugModalProps { @@ -68,35 +68,35 @@ const DebugModal: React.FC - - - -

- {t("title-debug-view")} ({readOnlySpecifier}) -

-
- - - value && setEditedContent(value)} + + +

+ {t("title-debug-view")} ({readOnlySpecifier}) +

+
- + + + value && setEditedContent(value)} + />
) diff --git a/shared-module/src/components/TimeComponent.tsx b/shared-module/src/components/TimeComponent.tsx index 1076c478399b..957caca9c181 100644 --- a/shared-module/src/components/TimeComponent.tsx +++ b/shared-module/src/components/TimeComponent.tsx @@ -1,10 +1,10 @@ import { css } from "@emotion/css" -import InfoIcon from "@mui/icons-material/Info" -import { IconButton } from "@mui/material" +import { InfoCircle } from "@vectopus/atlas-icons-react" import React, { useLayoutEffect, useRef, useState } from "react" import { dateToString } from "../utils/time" +import Button from "./Button" import SpeechBalloon from "./SpeechBalloon" import HideTextInSystemTests from "./system-tests/HideTextInSystemTests" @@ -88,7 +88,7 @@ const TimeComponent: React.FC< testPlaceholder="1970-01-01 00:00" /> - setVisible(true)} onMouseLeave={() => setVisible(false)} size="small" @@ -98,13 +98,10 @@ const TimeComponent: React.FC< position: relative; top: -1px; `} + variant={"icon"} > - - + + ) } diff --git a/system-tests/src/__screenshots__/course-instance-management/course-instance-management.spec.ts/new-course-instance-form-desktop-regular.png b/system-tests/src/__screenshots__/course-instance-management/course-instance-management.spec.ts/new-course-instance-form-desktop-regular.png index 7ec5fec8c22e..86c2eb634b4b 100644 Binary files a/system-tests/src/__screenshots__/course-instance-management/course-instance-management.spec.ts/new-course-instance-form-desktop-regular.png and b/system-tests/src/__screenshots__/course-instance-management/course-instance-management.spec.ts/new-course-instance-form-desktop-regular.png differ diff --git a/system-tests/src/__screenshots__/course-instance-management/course-instance-management.spec.ts/new-course-instance-form-mobile-tall.png b/system-tests/src/__screenshots__/course-instance-management/course-instance-management.spec.ts/new-course-instance-form-mobile-tall.png index f9d21e4f4497..a58e8ae42d61 100644 Binary files a/system-tests/src/__screenshots__/course-instance-management/course-instance-management.spec.ts/new-course-instance-form-mobile-tall.png and b/system-tests/src/__screenshots__/course-instance-management/course-instance-management.spec.ts/new-course-instance-form-mobile-tall.png differ diff --git a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-creating-new-module-desktop-regular.png b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-creating-new-module-desktop-regular.png index 87d8bf60370a..1f7db11fe7b5 100644 Binary files a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-creating-new-module-desktop-regular.png and b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-creating-new-module-desktop-regular.png differ diff --git a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-creating-new-module-mobile-tall.png b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-creating-new-module-mobile-tall.png index 70a1ad4240f9..4bee23429d55 100644 Binary files a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-creating-new-module-mobile-tall.png and b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-creating-new-module-mobile-tall.png differ diff --git a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-deletion-desktop-regular.png b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-deletion-desktop-regular.png index b344ea4d16c1..173b0173ab0b 100644 Binary files a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-deletion-desktop-regular.png and b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-deletion-desktop-regular.png differ diff --git a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-deletion-mobile-tall.png b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-deletion-mobile-tall.png index 5bb19ec76150..9ead4361252c 100644 Binary files a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-deletion-mobile-tall.png and b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-deletion-mobile-tall.png differ diff --git a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-deletion-reset-desktop-regular.png b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-deletion-reset-desktop-regular.png index f6cc3a1e261d..503efb7aa449 100644 Binary files a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-deletion-reset-desktop-regular.png and b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-deletion-reset-desktop-regular.png differ diff --git a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-deletion-reset-mobile-tall.png b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-deletion-reset-mobile-tall.png index 4f168439e33b..7ea0cbdad5a6 100644 Binary files a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-deletion-reset-mobile-tall.png and b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-deletion-reset-mobile-tall.png differ diff --git a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-last-update-desktop-regular.png b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-last-update-desktop-regular.png index a8b8163d60be..a5edf283d0dc 100644 Binary files a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-last-update-desktop-regular.png and b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-last-update-desktop-regular.png differ diff --git a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-last-update-mobile-tall.png b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-last-update-mobile-tall.png index dcdd35c671b0..a6412be7d59e 100644 Binary files a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-last-update-mobile-tall.png and b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-last-update-mobile-tall.png differ diff --git a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-saving-desktop-regular.png b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-saving-desktop-regular.png index 213e6fd1a10b..0cf56b408a2a 100644 Binary files a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-saving-desktop-regular.png and b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-saving-desktop-regular.png differ diff --git a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-saving-mobile-tall.png b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-saving-mobile-tall.png index 8c765b02e14a..3ef120bb4989 100644 Binary files a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-saving-mobile-tall.png and b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-saving-mobile-tall.png differ diff --git a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-second-deletion-desktop-regular.png b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-second-deletion-desktop-regular.png index b991cfbdf750..d44a0333b0d7 100644 Binary files a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-second-deletion-desktop-regular.png and b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-second-deletion-desktop-regular.png differ diff --git a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-second-deletion-mobile-tall.png b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-second-deletion-mobile-tall.png index 60b556fe8347..248fec11f2a6 100644 Binary files a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-second-deletion-mobile-tall.png and b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-second-deletion-mobile-tall.png differ diff --git a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-updating-new-module-desktop-regular.png b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-updating-new-module-desktop-regular.png index 8bb1b6b5b32b..43881e509151 100644 Binary files a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-updating-new-module-desktop-regular.png and b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-updating-new-module-desktop-regular.png differ diff --git a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-updating-new-module-mobile-tall.png b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-updating-new-module-mobile-tall.png index 808db87f4986..40dd4d82126c 100644 Binary files a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-updating-new-module-mobile-tall.png and b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/after-updating-new-module-mobile-tall.png differ diff --git a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/initial-module-management-page-desktop-regular.png b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/initial-module-management-page-desktop-regular.png index b550aff42ac8..c46e070c7404 100644 Binary files a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/initial-module-management-page-desktop-regular.png and b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/initial-module-management-page-desktop-regular.png differ diff --git a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/initial-module-management-page-mobile-tall.png b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/initial-module-management-page-mobile-tall.png index 01a2962362b7..748002dc2fef 100644 Binary files a/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/initial-module-management-page-mobile-tall.png and b/system-tests/src/__screenshots__/course-modules/course-modules.spec.ts/initial-module-management-page-mobile-tall.png differ diff --git a/system-tests/src/__screenshots__/exam-list.spec.ts/create-exam-dialog-desktop-regular.png b/system-tests/src/__screenshots__/exam-list.spec.ts/create-exam-dialog-desktop-regular.png index da7226670774..0f78fe9db487 100644 Binary files a/system-tests/src/__screenshots__/exam-list.spec.ts/create-exam-dialog-desktop-regular.png and b/system-tests/src/__screenshots__/exam-list.spec.ts/create-exam-dialog-desktop-regular.png differ diff --git a/system-tests/src/__screenshots__/exam-list.spec.ts/create-exam-dialog-filled-desktop-regular.png b/system-tests/src/__screenshots__/exam-list.spec.ts/create-exam-dialog-filled-desktop-regular.png index 02888972f18c..d925cdce1392 100644 Binary files a/system-tests/src/__screenshots__/exam-list.spec.ts/create-exam-dialog-filled-desktop-regular.png and b/system-tests/src/__screenshots__/exam-list.spec.ts/create-exam-dialog-filled-desktop-regular.png differ diff --git a/system-tests/src/__screenshots__/exam-list.spec.ts/create-exam-dialog-filled-mobile-tall.png b/system-tests/src/__screenshots__/exam-list.spec.ts/create-exam-dialog-filled-mobile-tall.png index f69ba69432ea..fa2f6ad3d27a 100644 Binary files a/system-tests/src/__screenshots__/exam-list.spec.ts/create-exam-dialog-filled-mobile-tall.png and b/system-tests/src/__screenshots__/exam-list.spec.ts/create-exam-dialog-filled-mobile-tall.png differ diff --git a/system-tests/src/__screenshots__/exam-list.spec.ts/create-exam-dialog-mobile-tall.png b/system-tests/src/__screenshots__/exam-list.spec.ts/create-exam-dialog-mobile-tall.png index 04fd5ef9c597..8a9e1c5bc3bc 100644 Binary files a/system-tests/src/__screenshots__/exam-list.spec.ts/create-exam-dialog-mobile-tall.png and b/system-tests/src/__screenshots__/exam-list.spec.ts/create-exam-dialog-mobile-tall.png differ diff --git a/system-tests/src/__screenshots__/exercise-service.spec.ts/exercise-service-page-desktop-regular.png b/system-tests/src/__screenshots__/exercise-service.spec.ts/exercise-service-page-desktop-regular.png index dbd898720a83..4a0faf3d0181 100644 Binary files a/system-tests/src/__screenshots__/exercise-service.spec.ts/exercise-service-page-desktop-regular.png and b/system-tests/src/__screenshots__/exercise-service.spec.ts/exercise-service-page-desktop-regular.png differ diff --git a/system-tests/src/__screenshots__/exercise-service.spec.ts/exercise-service-page-mobile-tall.png b/system-tests/src/__screenshots__/exercise-service.spec.ts/exercise-service-page-mobile-tall.png index e542d504f338..3d389149797a 100644 Binary files a/system-tests/src/__screenshots__/exercise-service.spec.ts/exercise-service-page-mobile-tall.png and b/system-tests/src/__screenshots__/exercise-service.spec.ts/exercise-service-page-mobile-tall.png differ diff --git a/system-tests/src/__screenshots__/feedback/feedback.spec.ts/feedback-unread-desktop-regular.png b/system-tests/src/__screenshots__/feedback/feedback.spec.ts/feedback-unread-desktop-regular.png index 7e8f3b18a066..4e3b34bb86ec 100644 Binary files a/system-tests/src/__screenshots__/feedback/feedback.spec.ts/feedback-unread-desktop-regular.png and b/system-tests/src/__screenshots__/feedback/feedback.spec.ts/feedback-unread-desktop-regular.png differ diff --git a/system-tests/src/__screenshots__/feedback/feedback.spec.ts/feedback-unread-mobile-tall.png b/system-tests/src/__screenshots__/feedback/feedback.spec.ts/feedback-unread-mobile-tall.png index 2a70c1b285ef..91c3a264e2bf 100644 Binary files a/system-tests/src/__screenshots__/feedback/feedback.spec.ts/feedback-unread-mobile-tall.png and b/system-tests/src/__screenshots__/feedback/feedback.spec.ts/feedback-unread-mobile-tall.png differ diff --git a/system-tests/src/__screenshots__/material-reference.spec.ts/add-new-material-reference-dialog-desktop-regular.png b/system-tests/src/__screenshots__/material-reference.spec.ts/add-new-material-reference-dialog-desktop-regular.png index a43aa6fb7d57..8c94e01ae506 100644 Binary files a/system-tests/src/__screenshots__/material-reference.spec.ts/add-new-material-reference-dialog-desktop-regular.png and b/system-tests/src/__screenshots__/material-reference.spec.ts/add-new-material-reference-dialog-desktop-regular.png differ diff --git a/system-tests/src/__screenshots__/material-reference.spec.ts/add-new-material-reference-dialog-mobile-tall.png b/system-tests/src/__screenshots__/material-reference.spec.ts/add-new-material-reference-dialog-mobile-tall.png index d100a751e81a..355007d79342 100644 Binary files a/system-tests/src/__screenshots__/material-reference.spec.ts/add-new-material-reference-dialog-mobile-tall.png and b/system-tests/src/__screenshots__/material-reference.spec.ts/add-new-material-reference-dialog-mobile-tall.png differ diff --git a/system-tests/src/__screenshots__/material-reference.spec.ts/material-reference-edited-desktop-regular.png b/system-tests/src/__screenshots__/material-reference.spec.ts/material-reference-edited-desktop-regular.png index e347a6c17a81..7640856ef3c3 100644 Binary files a/system-tests/src/__screenshots__/material-reference.spec.ts/material-reference-edited-desktop-regular.png and b/system-tests/src/__screenshots__/material-reference.spec.ts/material-reference-edited-desktop-regular.png differ diff --git a/system-tests/src/__screenshots__/material-reference.spec.ts/material-reference-edited-mobile-tall.png b/system-tests/src/__screenshots__/material-reference.spec.ts/material-reference-edited-mobile-tall.png index 8faef3c877e2..a5f13a7a16c5 100644 Binary files a/system-tests/src/__screenshots__/material-reference.spec.ts/material-reference-edited-mobile-tall.png and b/system-tests/src/__screenshots__/material-reference.spec.ts/material-reference-edited-mobile-tall.png differ diff --git a/system-tests/src/__screenshots__/material-reference.spec.ts/material-reference-editor-desktop-regular.png b/system-tests/src/__screenshots__/material-reference.spec.ts/material-reference-editor-desktop-regular.png index 292887a801dc..36bd4fa676f3 100644 Binary files a/system-tests/src/__screenshots__/material-reference.spec.ts/material-reference-editor-desktop-regular.png and b/system-tests/src/__screenshots__/material-reference.spec.ts/material-reference-editor-desktop-regular.png differ diff --git a/system-tests/src/__screenshots__/material-reference.spec.ts/material-reference-editor-mobile-tall.png b/system-tests/src/__screenshots__/material-reference.spec.ts/material-reference-editor-mobile-tall.png index e73bff58e2e5..49a7fc20ca48 100644 Binary files a/system-tests/src/__screenshots__/material-reference.spec.ts/material-reference-editor-mobile-tall.png and b/system-tests/src/__screenshots__/material-reference.spec.ts/material-reference-editor-mobile-tall.png differ diff --git a/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-after-send-desktop-regular.png b/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-after-send-desktop-regular.png index 9b6f8ba9e0a3..f86d24e35114 100644 Binary files a/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-after-send-desktop-regular.png and b/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-after-send-desktop-regular.png differ diff --git a/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-after-send-mobile-tall.png b/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-after-send-mobile-tall.png index 218576bd8f1c..4629135b577d 100644 Binary files a/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-after-send-mobile-tall.png and b/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-after-send-mobile-tall.png differ diff --git a/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-before-send-desktop-regular.png b/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-before-send-desktop-regular.png index 61634d616bb7..d5eb50367b9b 100644 Binary files a/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-before-send-desktop-regular.png and b/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-before-send-desktop-regular.png differ diff --git a/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-before-send-mobile-tall.png b/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-before-send-mobile-tall.png index 9aa7f96d7818..085b61adef71 100644 Binary files a/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-before-send-mobile-tall.png and b/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-before-send-mobile-tall.png differ diff --git a/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-initial-desktop-regular.png b/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-initial-desktop-regular.png index 75f0b0dacd99..680ebf0ffab7 100644 Binary files a/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-initial-desktop-regular.png and b/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-initial-desktop-regular.png differ diff --git a/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-initial-mobile-tall.png b/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-initial-mobile-tall.png index ec62881b9003..65a1e71511d4 100644 Binary files a/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-initial-mobile-tall.png and b/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-initial-mobile-tall.png differ diff --git a/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-old-after-send-desktop-regular.png b/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-old-after-send-desktop-regular.png index 7888a5d1eec8..b51caf856698 100644 Binary files a/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-old-after-send-desktop-regular.png and b/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-old-after-send-desktop-regular.png differ diff --git a/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-old-after-send-mobile-tall.png b/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-old-after-send-mobile-tall.png index 06323739ea4e..a0934a74140b 100644 Binary files a/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-old-after-send-mobile-tall.png and b/system-tests/src/__screenshots__/proposed-edits/proposed-edits.spec.ts/manage-old-after-send-mobile-tall.png differ diff --git a/system-tests/src/tests/draft.spec.ts b/system-tests/src/tests/draft.spec.ts index db8f0a0bd823..29ad6eddc0df 100644 --- a/system-tests/src/tests/draft.spec.ts +++ b/system-tests/src/tests/draft.spec.ts @@ -71,7 +71,7 @@ test.describe("admin", () => { await page.check(`label:has-text("English")`) - await page.click('div[role="dialog"] >> text=Create') + await page.getByRole("dialog").getByRole("button", { name: "Create" }).click() await page.locator("[aria-label=\"Manage\\ course\\ \\'Advanced\\ drafts\\'\"] svg").click() @@ -87,8 +87,8 @@ test.describe("admin", () => { // Uncheck input[type="checkbox"] await page.uncheck('input[type="checkbox"]') - await page.click(`button:text-is("Update")`) - await page.locator(`button:text-is("Update")`).waitFor({ state: "hidden" }) + await page.getByRole("dialog").getByRole("button", { name: "Update" }).click() + await page.getByRole("button", { name: "Update", exact: true }).waitFor({ state: "hidden" }) await expectScreenshotsToMatchSnapshots({ screenshotTarget: page, @@ -116,7 +116,7 @@ test.describe("Teacher", () => { await page.getByLabel("Teacher in charge email *").fill("draft@example.com") await page.getByLabel("Description").fill("draft") await page.locator("label").filter({ hasText: "English" }).click() - await page.getByRole("button", { name: "Create" }).click() + await page.getByRole("dialog").getByRole("button", { name: "Create" }).click() await page.getByText("Operation successful!").waitFor() await page.getByRole("link", { name: "Manage course 'Best draft course'" }).click() await page.getByRole("tab", { name: "Permissions" }).click() @@ -149,7 +149,7 @@ test.describe("Teacher", () => { await page.getByLabel("Name *", { exact: true }).click() await page.getByLabel("Name *", { exact: true }).fill("Introduction to localizing copy") await page.getByLabel("English").check() - await page.getByRole("button", { name: "Create" }).click() + await page.getByRole("dialog").getByRole("button", { name: "Create" }).click() await page.getByText("Operation successful!").waitFor() await page @@ -181,7 +181,7 @@ test.describe("Teacher", () => { .getByLabel("Name *", { exact: true }) .fill("Introduction to localizing copy with permissions") await page.getByLabel("English").check() - await page.getByRole("button", { name: "Create" }).click() + await page.getByRole("dialog").getByRole("button", { name: "Create" }).click() await page.getByText("Operation successful!").waitFor() await page