-
-
Notifications
You must be signed in to change notification settings - Fork 862
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
Feature add hours as sorting options backend #3161
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot of people are going to like this one, especially for large communities. Thanks!
|
||
-- alter all you enum columns | ||
alter table local_user | ||
alter column default_sort_type type sort_type_enum using default_sort_type::text::sort_type_enum; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did some searching and this does appear to be the correct way to do it, nice job.
@@ -59,6 +59,9 @@ pub enum SortType { | |||
TopAll, | |||
MostComments, | |||
NewComments, | |||
TopHour, | |||
TopSixHour, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job. We did need to make sure these got appended, to make sure people's existing sort types didn't get wiped out.
Run |
ran, commited changes |
ready for merge |
This feature adds the possiblity to sort by Top Hour, Top Six Hours and Top Twelve Hours.
Related issue:
#3049
This PR is part of a 3 PRs:
Back End
#3161
Translation
LemmyNet/lemmy-translations#63
Front End
LemmyNet/lemmy-ui#1345