Allow everyone to view all evaluations #592
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes in this PR:
undefined
. This means thatuseParticipant()
now returns either aParticipant
or anundefined
.azureUniqueId
as an argument now has a participant as an argument. This makes it possible to check if a participant isundefined
before the id of the participant is being used.undefined
participant cannot do any operations in an evaluation. For instance, anundefined
participant cannot delete, add or edit actions.undefined
participants, can view the content of the workshop summary tab on the workshop stage, but only facilitators can edit the summary.Potential test cases
A user that is not a member of an evaluation, aka an
undefined
participant, should be able to view the content of the evaluation which means that the user can:The
undefined
user should not be able to:AnswerSummarySidebar
The workshop summary tab on the workshop stage
Facilitators, OrgLeads and Participants can create, edit and delete actions
Only Facilitators can click "Finish
stage
" and progress the evaluation. This only applies if the progress of the evaluation is the same as the stage in the current viewIf the progression of the evaluation and the user is on the Individual stage, then on the Individual stage Facilitators, OrgLeads and Participants can write answers. Facilitators can also write answers on the Workshop stage even if the progression of the evaluation and the user is not on the Individual stage.
If the progression of the evaluation and the user is on the Preparation stage, then on the Preparation stage Facilitators and OrgLeads can write answers.
Facilitators are the only ones who can write answers on the Workshop stage. Facilitators can also write answers on the Workshop stage even if the progression of the evaluation and the user is not on the Workshop stage.
If the progression of the evaluation and the user is on the Follow up stage, then on the Follow up stage only Facilitators can write answers.
If the progression of the evaluation and the user is on the Individual stage, then on the Individual stage Facilitators, OrgLeads and Participants can click the complete switch.
If the progression of the evaluation and the user is on the Preparation stage, then on the Preparation stage Facilitators and OrgLeads can click the complete switch.
If the progression of the evaluation and the user is on the Workshop stage, then on the Workshop stage Facilitators can click the complete switch.