Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

I44 create evaluation #45

Merged
merged 8 commits into from
Jan 23, 2021
Merged

Conversation

MouseAndKeyboard
Copy link
Collaborator

@MouseAndKeyboard MouseAndKeyboard commented Jan 22, 2021

Still todo:
Add dueDate field to evaluation document in database to add the ability to set a "due date" for reviewers.

Need:

  • Auto-assign permission to the coordinator which makes an evaluation
  • DueDate field in the Evaluations table in mongo (this is the date by which reviewers must complete their reviews).

Nice-to-haves:

  • Non required fields
  • Client side validation
  • Auto redirect to new evaluation

@MouseAndKeyboard MouseAndKeyboard linked an issue Jan 22, 2021 that may be closed by this pull request
Copy link
Member

@frinzekt frinzekt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will be adding your "need" for this pull request in this branch.

Currently I don't plan to address the first two of your nice to haves. However, I would like to mention #25 as a source of info on how to do it.

Comment on lines 63 to 66
const response = await services["course-evaluation"].create({
courseId: code,
reviewDescription: description,
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in relatively low effort, you can do "Auto redirect to new evaluation" using the information you get from this "_id"...

from there...

you could use router = useRouter() and router.push('coordinator/${_id}') ( i can't do backticks within code highlight)

Copy link
Member

@frinzekt frinzekt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! I have implemented your requested change

Comment on lines +144 to +150
<Datetime
onChange={(date) => {
setDueDate(date);
}}
value={dueDate}
placeholder="13/05/2031"
/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added your dueDate modal, however, I did notice some discrepancy on the dueDate and the createdAt date... particularly I believe because of different time format.

See #46 , I dont plan to solve that in this pull request, nor in stage 1

@frinzekt frinzekt merged commit 1e3a13b into coordinator-user-page Jan 23, 2021
@frinzekt frinzekt deleted the i44-create-evaluation branch January 23, 2021 12:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modal to create new evaluations
2 participants