From 9ea689881aef4e4d835bdbbf2c0d3adc29e7f7dc Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 29 Nov 2020 17:56:57 +0100 Subject: [PATCH] chore(recognitions): add semester --- test/Database/Fill.hs | 6 ++--- ...ecognitions.yaml => recognitions-ifi.yaml} | 23 +++++++++++++++++++ 2 files changed, 26 insertions(+), 3 deletions(-) rename testdata/{recognitions.yaml => recognitions-ifi.yaml} (97%) diff --git a/test/Database/Fill.hs b/test/Database/Fill.hs index 1cb2cf566..a2ab5ffc8 100644 --- a/test/Database/Fill.hs +++ b/test/Database/Fill.hs @@ -1332,12 +1332,12 @@ fillDb = do } do - workflowDefinitionGraph <- Yaml.decodeFileThrow $ testdataDir "recognitions.yaml" + workflowDefinitionGraph <- Yaml.decodeFileThrow $ testdataDir "recognitions-ifi.yaml" for_ (lintWorkflowGraph workflowDefinitionGraph) $ mapM_ throwM let recognitionsWorkflowDef = WorkflowDefinition{..} - where workflowDefinitionInstanceCategory = Just "recognitions" - workflowDefinitionName = "recognitions" + where workflowDefinitionInstanceCategory = Just "recognitions-ifi" + workflowDefinitionName = "recognitions-ifi" workflowDefinitionScope = WSSchool' wdId <- insert recognitionsWorkflowDef insert_ WorkflowDefinitionDescription diff --git a/testdata/recognitions.yaml b/testdata/recognitions-ifi.yaml similarity index 97% rename from testdata/recognitions.yaml rename to testdata/recognitions-ifi.yaml index 882a37d3f..1819a8eba 100644 --- a/testdata/recognitions.yaml +++ b/testdata/recognitions-ifi.yaml @@ -46,6 +46,14 @@ fallback-lang: de-de-formal translations: en-eu: "Student" + "semester": + viewers: + - *pruefungsamt + display-label: + fallback: "Semester" + fallback-lang: de-de-formal + translations: + en-eu: "Term" "itkompetenz antrag, student": final: false @@ -253,6 +261,17 @@ form: "titel": *titel-form "titel, englisch": *entitel-form + "semester": &semester-form + - "3": + tag: text + label: + fallback: "Semester" + fallback-lang: de-de-formal + translations: + en-eu: "Term" + tooltip: null + default: null + optional: false viewers: display-label: fallback: "Antrag genehmigt (IT-Kompetenz)" @@ -438,6 +457,7 @@ form: "titel": *titel-form "titel, englisch": *entitel-form + "semester": *semester-form viewers: display-label: fallback: "Antrag genehmigt (Medienkompetenz)" @@ -652,6 +672,7 @@ - *pruefungsamt form: "institut": *institut-form + "semester": *semester-form viewers: display-label: fallback: "Antrag genehmigt (Tutor)" @@ -837,6 +858,7 @@ form: "titel": *titel-form "titel, englisch": *entitel-form + "semester": *semester-form viewers: display-label: "Antrag genehmigt (Soziale Kompetenz)" viewers: @@ -1060,6 +1082,7 @@ form: "note": *note-form "datum": *datum-form + "semester": *semester-form viewers: display-label: fallback: "Antrag genehmigt (Englisch)"