Skip to content

Commit aa660a8

Browse files
annesnour03goomens
andauthored
DN-3886 feat: harmonise the project workflows onto a common base (#201)
* DN-3886 feature: harmonise the project workflows onto a common base * DN-3886 chore(RMSS): cleanup unused * DN-3886 fix: RMSS pilot * DN-3886 feat(resetParent): first version of resetParentStep suppression generatio * DN-3886 chore(test): also resetparentstep in rmss test * DN-3886 chore: rename for better clarity * Feature/dn 3886 pick substeps (#216) * DN-3886 feat(inheritance): track declared keys better * DN-3886 fix: inherit resources correctly * DN-3886 fix: same logic for relatedUserGrouping * DN-3886 fix: merge (global)actions * DN-3886 chore: make inheritance property checks type-safe --------- Co-authored-by: Gerrit Oomens <g.oomens@uva.nl>
1 parent ad7c23d commit aa660a8

35 files changed

Lines changed: 1221 additions & 156 deletions

Schemas/Step.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,6 +1481,10 @@
14811481
"items": {
14821482
"type": "string"
14831483
}
1484+
},
1485+
"resetParentStep": {
1486+
"type": "boolean",
1487+
"description": "When declared on a step event, restarts the sequential parent of the declaring step; the suppression rules are generated from the effective hierarchy (see docs/reset-parent-step.md)."
14841488
}
14851489
}
14861490
}

Schemas/WorkflowDefinition.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,6 +1206,10 @@
12061206
"items": {
12071207
"type": "string"
12081208
}
1209+
},
1210+
"resetParentStep": {
1211+
"type": "boolean",
1212+
"description": "When declared on a step event, restarts the sequential parent of the declaring step; the suppression rules are generated from the effective hierarchy (see docs/reset-parent-step.md)."
12091213
}
12101214
}
12111215
},

UvA.Workflow.Tests/Fixtures/PA/Project-PA/Entity.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Project-PA
2+
inheritsFrom: Project-Base
23
title:
34
en: Project (PA)
45
nl: Project (PA)

UvA.Workflow.Tests/Fixtures/PA/Project-PA/Properties.yaml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,10 @@
11
properties:
2-
- name: Course
3-
type: Context!
4-
inheritedRoles: [Coordinator, Impersonator]
5-
6-
- name: Student
7-
type: User!
8-
92
- name: WorkingTitle
103
type: String!
114
text:
125
en: Working title
136
nl: Werktitel
147

15-
- name: EC
16-
type: Int!
17-
text:
18-
en: EC
19-
nl: EC
20-
21-
- name: Examiner
22-
type: User!
23-
text:
24-
en: Examiner
25-
nl: Examinator
26-
278
- name: SecondReviewer
289
type: User!
2910
text:
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Project-Base
2+
title: Project (base)
3+
titlePlural: Projects
4+
instanceTitle: '{{ Title }}'
5+
6+
relatedUsers:
7+
- property: Supervisor
8+
group: default
9+
- property: Examiner
10+
group: default
11+
- property: Reviewer
12+
group: default
13+
- property: SecondReader
14+
group: default
15+
- property: Course.Coordinator
16+
group: support
17+
- property: Course.ConfidentialAdviser
18+
group: support
19+
- property: Course.StudyAdviser
20+
group: support
21+
22+
relatedUserGrouping:
23+
groups:
24+
- name: default
25+
- name: support
26+
title:
27+
en: Other involved staff
28+
nl: Andere betrokkenen
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
properties:
2+
- name: Course
3+
type: Context!
4+
inheritedRoles: [Coordinator, Impersonator]
5+
6+
- name: Title
7+
type: String!
8+
text:
9+
en: Working title
10+
nl: Werktitel
11+
12+
- name: EC
13+
type: Int!
14+
15+
- name: StartDate
16+
type: Date!
17+
text:
18+
en: Start date
19+
nl: Startdatum
20+
21+
- name: EndDate
22+
type: Date!
23+
text:
24+
en: End date
25+
nl: Einddatum
26+
27+
- name: Examiner
28+
type: User!
29+
text:
30+
en: Examiner
31+
nl: Examinator
32+
33+
- name: Supervisor
34+
type: User!
35+
allowsExternalUsers: true
36+
text:
37+
en: Supervisor
38+
nl: Begeleider
39+
40+
- name: Reviewer
41+
type: User!
42+
text:
43+
en: Reviewer
44+
nl: Beoordelaar
45+
46+
- name: SecondReader
47+
type: User!
48+
text:
49+
en: Second reader
50+
nl: Tweede beoordelaar
51+
52+
- name: Student
53+
type: User!

UvA.Workflow.Tests/Fixtures/Project-RMSS/Entity.yaml

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,22 @@ titlePlural:
44
en: Projects (RMSS)
55
nl: Projecten (RMSS)
66
instanceTitle: '{{ Title }}'
7-
inheritsFrom: Project
7+
inheritsFrom: Project-Base
88

9-
events:
10-
- name: Start
11-
suppresses:
12-
- ProposalApprovedSupervisor
13-
- ProposalRejectedSupervisor
14-
- ProposalApprovedReviewer
15-
- ProposalRejectedReviewer
16-
- ProposalReturnedForRevision
17-
18-
- name: ProposalRejectedSupervisor
19-
suppresses: [ProposalApprovedSupervisor]
20-
- name: ProposalApprovedSupervisor
21-
suppresses: [ProposalRejectedSupervisor]
22-
23-
- name: ProposalRejectedReviewer
24-
suppresses: [ProposalApprovedReviewer]
25-
- name: ProposalApprovedReviewer
26-
suppresses: [ProposalRejectedReviewer]
27-
28-
- name: ProposalReturnedForRevision
29-
suppresses: [Start]
9+
fields:
10+
- property: Course.Name
11+
title: Course
12+
- property: Course.StudyManual
13+
title:
14+
en: Study Manual
15+
nl: Studiehandleiding
16+
- property: Student.DisplayName
17+
title: Student
18+
- property: Student.Email
19+
title: Email
20+
- property: Title
21+
- currentStep: true
22+
- property: TurnitinId
3023

3124
steps:
3225
- ProposalPhase

UvA.Workflow.Tests/Fixtures/Project-RMSS/Properties.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
properties:
2-
- name: Course
3-
type: Context!
4-
inheritedRoles: [Coordinator, Impersonator]
5-
62
- name: EC
73
type: EcType!
84
text:
@@ -27,3 +23,6 @@ properties:
2723
text:
2824
en: Proposal reviewer
2925
nl: Voorstel beoordelaar
26+
27+
- name: TurnitinId
28+
type: String

UvA.Workflow.Tests/Fixtures/Project-RMSS/Screens/Projects-RMSS.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ grouping:
4444
nl: Werkt aan scriptie
4545
steps:
4646
- Finish
47-
4847
- name: completed
4948
title:
5049
en: Completed

UvA.Workflow.Tests/Fixtures/Project-RMSS/Steps/ProposalAssessment.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ hierarchyMode: Parallel
1818
children:
1919
- ProposalAssessmentSupervisor
2020
- ProposalAssessmentReviewer
21+
22+
events:
23+
# Resets ProposalPhase: reopens Start, and resubmitting it clears both assessments.
24+
- name: ProposalReturnedForRevision
25+
resetParentStep: true

0 commit comments

Comments
 (0)