Update logic to fetch soon starting streams #1417
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Currently, if a professor has two lectures planned directly after each other, there could be conflicts about which stream to choose. E.g., If there's one lecture from 2-4 p.m. and one from 4-6 p.m. and the professor starts streaming at 3:59 p.m., the first lecture is selected. However, if the professor starts at 4 or 4:01 p.m., one might expect the second one to be selected, but it still selects the first one, as there's a buffer of 15 minutes before/after each lecture.
Description
GetSoonStartingStream
method to consider the case when two lectures from the same professors start right after each other.go.work.sum
fileSteps for Testing
Screenshots