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

1185-recent-VODs-section-doesnt-show-pinned-public-courses #1221

Merged

Conversation

barisgul15
Copy link
Contributor

Motivation and Context

Issue 1185: Recent VODs section doesnt show pinned (public) courses

Description

Before the changes, only user courses were listed for the recently VOD section. Now there is a new array for pinned Courses and if it is detected that user has one or more pinned courses, pinned and user courses are merged into a new array (with eliminating duplicates) and this array is used for the recently VOD section. However a user without any course will still be seeing all public courses in recently VOD section whether he/she has pinned any course or not. That can also be changed to see only pinned courses if desired, but since the probability of a user without any course pinning a course is so low, that feature is not implemented.

Steps for Testing

  1. Log in
  2. Pin a public course that is not also listed in my courses.
  3. Navigate to recently VOD section.

Screenshots

pinnedCourses are added to recently.
@barisgul15 barisgul15 linked an issue Oct 26, 2023 that may be closed by this pull request
@github-actions
Copy link

Your Testserver will be ready at https://1221.test.live.mm.rbg.tum.de in a few minutes.

Logins
Kurs1 Kurs2 Kurs3 Kurs4
public public loggedin enrolled
prof1 prof1 prof2 prof1
prof2
student1
student2
student3
student1
student2
student2
student3
student1
student2

eslint prettifier error, added an "enter" at line 39
eslint prettifier errors are fixed.
eslint prettifier errors are fixed.
@barisgul15 barisgul15 enabled auto-merge (squash) October 26, 2023 13:20
@barisgul15 barisgul15 changed the title Update main.ts 1185-recent-VODs-section-doesnt-show-pinned-public-courses Oct 26, 2023
Copy link
Collaborator

@alexanderstephan alexanderstephan left a comment

Choose a reason for hiding this comment

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

First, I was a little bit confused, since I intuitively would have checked which of the pinned courses is a public course. However, your solution is more elegant, as it would work with additional course types in the future. Nice job!

@barisgul15 barisgul15 merged commit ae10abd into dev Nov 8, 2023
8 checks passed
@barisgul15 barisgul15 deleted the 1185-recent-VODs-section-doesnt-show-pinned-public-courses branch November 8, 2023 00:38
SebiWrn pushed a commit that referenced this pull request May 7, 2024
* Update main.ts

pinnedCourses are added to recently.

* Update main.ts

eslint prettifier error, added an "enter" at line 39

* Update main.ts

eslint prettifier errors are fixed.

* Update main.ts

eslint prettifier errors are fixed.
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.

Recent VODs section doesnt show pinned (public) courses
2 participants