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

Change default issues/PRs sort to "Recently updated" #80

Closed
mojavelinux opened this issue Mar 14, 2016 · 32 comments
Closed

Change default issues/PRs sort to "Recently updated" #80

mojavelinux opened this issue Mar 14, 2016 · 32 comments

Comments

@mojavelinux
Copy link

The Newest sort option in the issue tracker is rarely useful and not at all what I expect as the default sort. I want to see where the activity is. That's likely what needs my attention most. An update to an old issue and the addition of a new issue should have the same weight. Otherwise, old issues with recent activity stay buried.

I propose modifying the URL of the main Issues tab so the issues are sorted by Recently updated (in descending order) instead of Newest. That can be accomplished by adding the following query string:

?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc
@sindresorhus
Copy link
Member

👍 I always sort it by Recently updated.

@paulmolluzzo @hkdobrev What do you think?

@hkdobrev
Copy link
Contributor

I think it's useful for some cases, but not useful for others.

Of course it is useful when you to respond to latest activity, but not useful when there's a high-activity open-source repository and you want to try to close new issues and PRs fast and look at some long-running issues/PRs just from time-to-time. Imagine issues with a lot of +1 comments or PRs with a lot of code review comments from others.

Whether Recently updated should be the default depends on what you do most often. For me personally most of the time I'd prefer the default sorting of Newest. Especially for work repositories, even the activity is from a few people, I'd prefer to look at the exact same order every time similar to a Trello board which we are also using. We have Slack and GitHub notifications for every comment.

I'm not sure if this is a commonly shared logic and I'm not even sure having Recently updated by default would not be useful to me and I just don't realise it yet.

What do you think of having a button which toggles between the two instead of having to click the drop down to the right?

@paulmolluzzo
Copy link
Contributor

No strong opinion from me, except that I might get confused by changing the default (I don't know for sure).

I don't usually sort issues, tbh. When I'm triaging maybe?

@mojavelinux
Copy link
Author

Adding a toggle button like @hkdobrev suggested would be my second choice.

In fact, it's the cognitive strain caused by the Sort drop down that initially motivated this request. I was finding that I'd navigate to a GitHub repository, click Issues, not immediately see the issue I wanted, click Sort and then... ... ... (blink) ... ... try to read the words and figure out which one applied to my case. The one I really need (Recently updated) sits second to the bottom, below options related to comments which sort of look the same.

That makes me think that the underlying issue here is that the Sort drop down causes cognitive strain. Too many options without enough differentiation.

@mojavelinux
Copy link
Author

I'll provide a use case that explains why Recently updated comes up the most often.

I pick an issue to work on (perhaps because it came in via e-mail), do some coding, send a PR that references it (or perhaps someone else does). That's the issue on my mind (and others I worked on that day). I go to the Issues tab to follow-up on the issues, perhaps to add some additional notes or get information from an ongoing discussion. Where are those issues? No where to be found. Instead, what I see is new issues that came in the meantime that have nothing to do with the activity going on in the project.

The projects that this most affects are projects with lots of activity, because new issues are always coming in and occupying the top slots in the Newest sort.

@hkdobrev
Copy link
Contributor

Despite the obvious stand against options in this extension (which is quite right), this is the feature I feel is most suitable for an option. Of course in best case scenario that would be an option provided by GitHub itself similar to default diff view - split vs unified. When you choose a sort view, this could be persisted until you change it.

So I have 2 suggestions without adding options to the extension:

  1. Add just a toggle button for newest/updated issues.
  2. Implement persisted sort across repos which always uses the sort option you've selected last.

@mojavelinux
Copy link
Author

Persisted sort definitely sounds intriguing.

@hkdobrev hkdobrev self-assigned this Mar 19, 2016
@hkdobrev hkdobrev removed their assignment Mar 30, 2016
@hkdobrev
Copy link
Contributor

hkdobrev commented Apr 1, 2016

Just wanted to say I've tried this a couple of weeks ago and it isn't easy. Initially I thought I could fiddle directly with the URL - nope, GitHub changes the URLs in a few ways and also there are multiple URLs with the same search (e.g. /search/label/bug is the same as /search?q=label.... and others). Then I've started playing with clicking the sort drop down and around that time I lost interest. With persisting the sorting you need to consider pages where both issues and PRs are listed and pages where there is a sorting, but with different sort options and the chrome storage is asynchronous and the sorting would change after a while and sometimes is slow and so on and so on. I don't say it's impossible to do, it isn't, but it's not easy. And it's really easy to do from the back-end just like how GitHub persists diff style - unified vs split.

That said I just wanted to warn people who think about taking this, I'll be willing to assist when possible.

However I think it'd be more useful to contact the GitHub team about it and say "please" 😄

@giampaolo
Copy link

Definitively something I'm also looking for.

@pgorod
Copy link

pgorod commented Feb 1, 2017

I would also be interested. While it's not implemented, if anybody knows a workaround (some browser extension that can tweak html, for example), please share here. My desired behavior would be to change the tabs saying "Issues" and "Pull Requests" to a different URL (to specify my sorting preference). Thanks.

@BlaineBradbury
Copy link

yes, recently updated is the way to go

@giampaolo
Copy link

giampaolo commented Feb 15, 2017

Google Code allowed to change the default via the settings tab. I think the best option is to maintain backward compatibility by keeping the current sorting order, but give administrators the ability to change it via the settings tab.

@smeijer
Copy link
Contributor

smeijer commented May 11, 2017

Especially for milestones, this would be awesome. Milestones are currently sorted on "recently updated", while "closest due date" is more useful in my opinion.

@fregante
Copy link
Member

fregante commented May 30, 2017

What's the decision on this?

I went ahead and implemented it as a simple change: default the tab to Recently Updated in #454

Implement persisted sort across repos which always uses the sort option you've selected last.

I'd hate to find the issues in whatever weird order I checked the previous time. It should always be the same

there are multiple URLs with the same search

The problem with touching the (issues/PRs) search is that you're gonna have to intercept XHR calls and/or visually change the search field under the user's eyes.

Add just a toggle button for newest/updated issues.

One click vs two clicks. Perhaps it isn't enough of a time saver at that point.

@hkdobrev hkdobrev added the has PR label Jun 1, 2017
@fregante fregante removed the has PR label Jul 5, 2017
@fregante
Copy link
Member

fregante commented Jul 5, 2017

@sindresorhus Open to make it an option? It looks like many are interested in this.

@sindresorhus
Copy link
Member

@bfred-it Can't we just make it the default?

@fregante
Copy link
Member

fregante commented Jul 7, 2017

I would. Ask @hkdobrev and @jgierer12: #454 (comment)

@nikohansen
Copy link

nikohansen commented Oct 17, 2017

I would be in favor if the search field were to remember the search options/filters. Or, alternatively, there could be a user-defined default search filter. That would solve the sort-problem en passant.

@csb0730
Copy link

csb0730 commented Oct 29, 2017

Please simply add a user defined option in settings for sort order. That's it.

@monperrus
Copy link

I went ahead and implemented it as a simple change: default the tab to Recently Updated in #454

Is that already in the released version?

@fregante
Copy link
Member

fregante commented Oct 31, 2017

Not yet, it hasn't been implemented.

@monperrus
Copy link

Looking forward to it, that will be super useful!

@fregante fregante changed the title Change default sort in issue tracker to "Recently updated" Change default issues/PRs sort to "Recently updated" Jan 4, 2018
@monperrus
Copy link

Is that feature already deployed?

@fregante
Copy link
Member

fregante commented Feb 8, 2018

Yes

@mojavelinux
Copy link
Author

And it's a game changer!

@bsrz
Copy link

bsrz commented Feb 20, 2019

I just installed this extension recently and can't say how annoyed I am with this feature. Is there a way to turn it off?

@jgierer12
Copy link
Contributor

@bsarrazin Yes, by opening the extension settings and pasting sort-issues-by-update-time into the "Features to disable" textbox

@bsrz
Copy link

bsrz commented Feb 21, 2019

@jgierer12 thank you sir! 🌮

@koppor
Copy link

koppor commented Jun 30, 2019

Currently, one has to go to the settings of the extension and search for sort-issues-by-update-time. It is just a checkbox - not a generic free text field anymore:

image

@koppor
Copy link

koppor commented Oct 21, 2020

As of today, it is sort-conversations-by-update-time:

grafik

@KSH-code
Copy link
Contributor

KSH-code commented Nov 3, 2020

Thank you @koppor
I was inconvenient to sort all of PRs by update time by default.
btw, how do I find how use some of features.
I think refined github provides good solutions but I could have not found.

@shayded-exe
Copy link

shayded-exe commented May 27, 2021

Can we also get an option to put milestones without a due date at the bottom instead of the top?

@refined-github refined-github locked and limited conversation to collaborators May 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests