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

1032 option to make beta default mode #1328

Merged
merged 6 commits into from
Apr 24, 2024

Conversation

Mjaethers
Copy link
Contributor

Motivation and Context

Closes #1032.
Many users prefer the beta stream mode, so it makes sense for there to be a user option that makes this the default.

Description

Toggling the "Always use beta Stream when Available" option in the user settings will change the json value in the db for that user setting.
When the WatchPageData is being prepared this user setting is checked and if the default stream mode is set to beta, then the dvr value is set (in the same way it is if the URL contains the dvr query)

Steps for Testing

Prerequisites:

  • 1 Student
  1. Log in
  2. Navigate to Settings
  3. Enable the "Always use beta Stream when Available" option, notice the value in the db has updated
  4. Disable the option and the db will also have been updated

As for testing whether beta stream mode is actually used: that is something I cannot do locally.

Screenshots

image

Copy link

github-actions bot commented Feb 9, 2024

Your Testserver will be ready at https://1328.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

@Mjaethers Mjaethers marked this pull request as ready for review February 9, 2024 20:45
Copy link
Contributor

@SebiWrn SebiWrn left a comment

Choose a reason for hiding this comment

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

Apart from than that minor changes it looks really good

api/users.go Show resolved Hide resolved
Signed-off-by: Matthew Humphreys <[email protected]>
@SebiWrn SebiWrn merged commit 759d9de into dev Apr 24, 2024
8 checks passed
@SebiWrn SebiWrn deleted the 1032-option-to-make-beta-default-mode branch April 24, 2024 09:39
SebiWrn pushed a commit that referenced this pull request May 7, 2024
* added api endpoint to update user setting

Signed-off-by: Matthew Humphreys <[email protected]>

* added frontend components to update user setting

Signed-off-by: Matthew Humphreys <[email protected]>

* watchPageData set according to user setting

Signed-off-by: Matthew Humphreys <[email protected]>

* removed some duplicate code

Signed-off-by: Matthew Humphreys <[email protected]>

* consistent spelling

Signed-off-by: Matthew Humphreys <[email protected]>

* make sure user is signed in

Signed-off-by: Matthew Humphreys <[email protected]>

---------

Signed-off-by: Matthew Humphreys <[email protected]>
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.

Option to make "beta" mode default when opening a stream
2 participants