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

Remove old course types from workshop dropdown #42961

Merged
merged 4 commits into from
Oct 13, 2021
Merged

Conversation

dmcavoy
Copy link
Contributor

@dmcavoy dmcavoy commented Oct 13, 2021

Remove courses from the workshop dropdown that are no longer workshops we support (ECS, CSinA, CSinS, Admin, Counselor). If you edit an old workshop that uses ones of these archived courses we will show the archived courses in the dropdown.

Screen.Recording.2021-10-13.at.5.48.36.PM.mov

Links

Jira: https://codedotorg.atlassian.net/browse/PLAT-1374

Testing story

  • Added new unit tests to check that the CourseSelect and getAllowedCourses work correctly

@dmcavoy dmcavoy requested a review from a team October 13, 2021 21:51
if (permission.hasAny(Organizer, ProgramManager, WorkshopAdmin)) {
return Courses;
if (ArchivedCourses.includes(course)) {

Choose a reason for hiding this comment

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

I like this solution for handling old workshops!

Copy link
Contributor

@tim-dot-org tim-dot-org left a comment

Choose a reason for hiding this comment

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

perfect!

@dmcavoy dmcavoy merged commit f773aa1 into staging Oct 13, 2021
@dmcavoy dmcavoy deleted the clean-dropdown-workshop branch October 13, 2021 23:54
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

3 participants