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

Course prerequisites #858

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

rgroves
Copy link
Contributor

@rgroves rgroves commented Feb 2, 2021

With this PR:

  • Courses can be assigned prerequisites
  • Registration for a session will only be allowed if a student has the necessary prerequisites
  • If a student still needs to take one or more of the prerequisites, buttons will be displayed for each prerequisite
    • where an upcoming session is scheduled for a prerequisite, its button will be active
  • The upcoming classes list on the Programs page will list prerequisites associated with the class for the session

This partially addresses #816. The outstanding item needed to close this out is related to the Courses list on the Programs page, will comment on the issue with details.

This will allow for specifiying prerequisites for a course.
The new method allows for retrieval of course details for all outstanding prerequisites a student needs for a session.
This adds a dictionary (keyed by Course id) of Session details to the view's context.

These session details are for future sessions being held for prerequisites of the current session.

This detail facilitates adding prerequisite buttons to the registration form when a student is missing one or more of the prerequisites required.
The tag will now disable the enroll button when a student does not meet the prerequisites for a session.

It will also add buttons for prerequisite course sessions.

These buttons will navigate to the registration page of an upcoming session for the prerequisite, if avaialable.
Will now programmatically list prerequisites associated with a class.
@rgroves rgroves requested a review from karbassi February 2, 2021 23:22
@rgroves rgroves mentioned this pull request Feb 2, 2021
4 tasks
This class name was accidentally left in from when I was still playing around with the look of things.
@karbassi karbassi changed the title Feature/course prerequisites Course prerequisites Feb 12, 2021
@karbassi karbassi temporarily deployed to website-feature-course--2ytozk February 18, 2021 03:11 Inactive
@karbassi karbassi temporarily deployed to website-feature-course--fuu71c February 18, 2021 03:13 Inactive
@karbassi karbassi temporarily deployed to website-feature-course--fuu71c February 18, 2021 03:56 Inactive
@karbassi karbassi temporarily deployed to website-feature-course--fuu71c February 18, 2021 04:19 Inactive
@karbassi karbassi temporarily deployed to website-feature-course--fuu71c February 18, 2021 04:25 Inactive
@karbassi karbassi temporarily deployed to website-feature-course--fuu71c February 18, 2021 04:27 Inactive
@karbassi karbassi temporarily deployed to website-feature-course--fuu71c February 23, 2021 02:17 Inactive
@rgroves
Copy link
Contributor Author

rgroves commented Feb 23, 2021

@karbassi I have added the prerequisites to the class view templates for the guardian and public views. I didn't think it made sense for the mentor view—don't want to have someone think they can't mentor a class before mentoring for a prerequisite class. If you don't agree with this let me know and I'll add it to the mentor's class view template as well.

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.

None yet

2 participants