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

add variant of the "hot" trending algorithm #3625

Merged
merged 5 commits into from
Jan 28, 2021
Merged

Conversation

rigelk
Copy link
Collaborator

@rigelk rigelk commented Jan 22, 2021

Description

The current changes don't replace the "Trending" page or behaviour, but merely add a "Hot" variant inspired by Reddit's own algorithm, albeit extended for video to integrate views and comments.

Another change is the modularization of abstract video list titles. Simply setting a string is not enough for more involved and varying interfaces.

Related issues

No issue focused on changing the trending algorithm, just on "customizing" the landing page.
It could be related to #3488 as in standardizing scores will lead up to allowing options to how they are computed: potentially pushing forward local videos if need be.

Has this been tested?

  • 👍 only light tests as follows for now. any other required?

I tested queries on sherri.

Screenshots

Screenshot_2021-01-20 Trending videos - PeerTube

Questions

Should I create a dedicated route for the algorithm, much like "trending" has one?

@test2a

This comment has been minimized.

@Chocobozzz
Copy link
Owner

Please add ability for admin to enable/disable trending algorithm + default one

@Chocobozzz Chocobozzz added the Status: Requires Tests Either requires manual test, or writing tests, or both label Jan 25, 2021
@Chocobozzz
Copy link
Owner

Please add tests

@rigelk rigelk removed the Status: Requires Tests Either requires manual test, or writing tests, or both label Jan 28, 2021
@Chocobozzz Chocobozzz merged commit 923d3d5 into Chocobozzz:develop Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants