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

CourseState - Add label field #604

Open
jbpenrath opened this issue Jan 30, 2024 · 1 comment
Open

CourseState - Add label field #604

jbpenrath opened this issue Jan 30, 2024 · 1 comment
Assignees

Comments

@jbpenrath
Copy link
Member

jbpenrath commented Jan 30, 2024

Sometimes, we do not want to concat the course state text with its datetime but we simply want to display a label which explicit the course state.

So we could assume to add a label property to the CourseState dict output.

STATE_LABELS = {
    ONGOING_OPEN: _("On going and still opened for enrollment"),
    FUTURE_OPEN: _("Opened for enrollment"),
    ARCHIVED_OPEN: _("Archived but opened for enrollment"),
    FUTURE_NOT_YET_OPEN: _("Not yet opened for enrollment"),
    FUTURE_CLOSED: _("Not yet started"),
    ONGOING_CLOSED: _("On-going"),
    ARCHIVED_CLOSED: _("Archived"),
    TO_BE_SCHEDULED: _("To be scheduled"),
}
@jbpenrath
Copy link
Member Author

After some thoughts, I'm not quit sure this is relevant to add those kind of labels to backend. Indeed, the label to display really depend to the user context. As a learner, if I'm not yet enrolled to the course, I surely want to know if enrollment are still opened and when the course will begin. Then if the learner is enrolled, enrollment dates are no more relevant. Now, from a course leader point of view, maybe only course dates are relevant (when the course will start? It is ongoing ? When it will be ended ?)
Then from an content editor point of view, maybe it's relevant to display both information : what is the course state ? what is the enrollment state ?

Ping @PanchoutNathan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant