Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow validators to choose a reason when disapproving a validation process #13

Merged
merged 2 commits into from
Sep 28, 2023

Conversation

bra-i-am
Copy link
Contributor

Description

This PR implements the rejection reasons gotten through this endpoint for making the validators able to use them when required to update the status of a validation process to 'Disapproved'

image

How to test

  1. As courseAutor, submit a validation process
    image

  2. Then, as a validator, take the course to review it
    image

  3. And access to the modal to send a validator review
    image

  4. Here you'll be able to...

    • ... see the form validations if something is lacking
      image
    • ... choose a reason if the status selected is 'Disapproved'
      image
    • ... send the validator's review by clicking on submit
      image

Additionals

As courseAuthor:

  • refactor: apply the needed changes to show reason.name
    image

* feat: apply validations to modal of submitting reviews
* refactor: show error messages when needed
* refactor: apply the needed changes to show reason.name
* refactor: improve some variable names to improve readability
@bra-i-am bra-i-am requested a review from dcoa September 27, 2023 22:44
@dcoa dcoa merged commit 33bc792 into master Sep 28, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants