From 55e31aabd715f757ec3934eaf93f14ef0de3018b Mon Sep 17 00:00:00 2001 From: Paul Kuruvilla Date: Thu, 11 Jul 2024 17:52:08 +0100 Subject: [PATCH] Refactor orderedCourses method in CourseExtensionIdeasController --- app/controllers/vote/course-extension-ideas.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/controllers/vote/course-extension-ideas.ts b/app/controllers/vote/course-extension-ideas.ts index 16b1fb689..d94210451 100644 --- a/app/controllers/vote/course-extension-ideas.ts +++ b/app/controllers/vote/course-extension-ideas.ts @@ -26,7 +26,12 @@ export default class CourseExtensionIdeasController extends Controller { } get orderedCourses() { - return this.model.courseExtensionIdeas.mapBy('course').uniq().sortBy('sortPositionForTrack'); + return this.model.courseExtensionIdeas + .mapBy('course') + .uniq() + .rejectBy('releaseStatusIsDeprecated') + .rejectBy('releaseStatusIsAlpha') + .sortBy('sortPositionForTrack'); } get selectedCourse() {