fnitu / edu-hospice

Application developed for SIIT Challenge Accepted – CODVIDHACK 2020
https://edu-hospice.herokuapp.com
2 stars 2 forks source link

A course should not be published unless it has at least one content #90

Closed Adrian-Moldovan closed 2 years ago

Adrian-Moldovan commented 2 years ago

On URL : https://edu-hospice-api.herokuapp.com/api/admin/courses/10

On adding a new course, the "course state" dropdown should be set as disabled with the "unpublished" option selected. The payload "courseState" property should not be sent to the API.

On updating the course, if the course has no content sections, the API will provide an error stating the invalid "courseState" property that should be displayed to the user.

Backend related issue: https://github.com/danutchindris/edu-hospice-api/issues/220

Adrian-Moldovan commented 2 years ago

Implement the status dropdown options as follows:

razvantudorache commented 2 years ago

Options for the status dropdown has been configured as requested.