Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
This repository was archived by the owner on Nov 18, 2021. It is now read-only.

Sort by the difference +1 - -1 count on issue index #600

Open

Description

@cirosantilli

Or possibly even better metrics such as the Wilson score.

Also requested at #9 but let's open an issue just for it.

Now https://github.com/blog/2119-pull-request-and-issue-reactions that we have +1 and -1 (and some other weird reactions), let us sort issues by the net (+1 count) - (-1 count) on the issue index page https://github.com/isaacs/github/issues

Update 2016-03-24: it is now possible to sort by the count of any reactions. But I want the difference between +1 and -1 totals.

GitLab did it recently, here's a screenshot PR https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/2781

This is an extension of #527 to consider both up and downvotes, and deals more precisely with the current state of affairs.

Likely implies: #605

Activity

  1. MichaelSp commented on Mar 11, 2016

    @MichaelSp

    I'm so tempted to +1 here, but I don't :D

  2. Mottie commented on Mar 12, 2016

    @Mottie

    They need to also add the reaction data to the api... just the first post should be enough.

  3. jcrben commented on Mar 23, 2016

    @jcrben

    Right now the way that Github is probably looking at the most requested features is to sort the list here by number of comments. So maybe we need to comment on this to push it up.

  4. TPS commented on Mar 24, 2016

    @TPS
    Collaborator

    @isaacs @cirosantilli @ALL This now seems to be solved (& then some — sort by any of the supplied reactions!), e.g., for this repo, to sort open issues by most 👍s:

    https://github.com/isaacs/github/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc

    This is fully accessible by the typical issues-list sort-menu. ☺

  5. changed the title [-]Sort by +1 + -1 count on issue index[/-] [+]Sort by +1 - -1 count on issue index[/+] on Mar 24, 2016
  6. changed the title [-]Sort by +1 - -1 count on issue index[/-] [+]Sort by the difference +1 - -1 count on issue index[/+] on Mar 24, 2016
  7. cirosantilli commented on Mar 24, 2016

    @cirosantilli
    CollaboratorAuthor

    @TPS but can you sort by the difference between +1 and -1 ?

  8. TPS commented on Mar 24, 2016

    @TPS
    Collaborator

    @cirosantilli I though that was #605? Again, these fine differences.…

  9. cirosantilli commented on Mar 24, 2016

    @cirosantilli
    CollaboratorAuthor

    @TPS #605 is show, this is sort. sort likely implies show though.

  10. TPS commented on Mar 24, 2016

    @TPS
    Collaborator

    OIC!:
    #527= Bulk/gross sort
    #600= Net sort
    #605= Net view

    Right?:bulb:

  11. howardroark commented on Jun 17, 2016

    @howardroark

    If anyone is curious you can see this project's issues sorted by "thumbs up" votes here.

  12. cirosantilli commented on Jun 17, 2016

    @cirosantilli
    CollaboratorAuthor
  13. TPS commented on Jun 17, 2016

    @TPS
    Collaborator

    @howardroark @cirosantilli What you folks are talking about is #527, which was solved some months ago.

  14. howardroark commented on Jun 19, 2016

    @howardroark

    Thanks @TPS and @cirosantilli ! I think i'll modify the version in the link to factor in both up and down votes :)

  15. arshaw commented on Jul 5, 2016

    @arshaw

    My newly released open source project, ghi-scoreboard, which is an alternate UI for Github Issues that does ranking, is meant for this sort of thing but it doesn't do this explicit feature of subtracting -1's from +1's. However, it could be easily modified to do so. If someone wants to add this feature in the code, I could give some pointers.

  16. TPS commented on Jul 5, 2016

    @TPS
    Collaborator

    GitLab did it recently, here's a screenshot PR https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/2781

    @cirosantilli Since you mentioned that, this issue could really use the Parity label!

  17. added
    parityFeatures that GitHub is missing, but competitors implement; also, see [Migration]
    on Jul 5, 2016
  18. matthijsmelissen commented on Jul 22, 2017

    @matthijsmelissen

    This issue seems to be implemented now.

  19. cirosantilli commented on Jul 22, 2017

    @cirosantilli
    CollaboratorAuthor

    @math1985 how to use it?

  20. matthijsmelissen commented on Jul 22, 2017

    @matthijsmelissen

    Sorry I misread, it is still only possible to respond by individual responses but not by difference.

  21. aaronfranke commented on Feb 4, 2019

    @aaronfranke

    The correct way to sort content by votes is using the lower bound of Wilson score confidence interval for a Bernoulli parameter. It is an algorithm that treats a post with a high amount of total votes at a higher priority than a post with a low amount of total votes but a similar ratio of up/down votes.

    Compared to subtracting votes, this avoids the problem of 200 up 100 down being sorted higher than 50 up 0 down, and compared to finding the percentage of likes to dislikes, this avoids the problem of 1 up 0 down being sorted higher than 1000 up 1 down.

  22. added a commit that references this issue on Jun 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementissuesparityFeatures that GitHub is missing, but competitors implement; also, see [Migration]reactionssorting

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions