Added Sort by Popularity to Advanced Search for Issues and MRs

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

###Steps for this issue

workflowplanning breakdown

  • Close this issue and make the new issue for MRs to have the sort. Issues Sort is complete.
  • Link to the epic that has the user feedback and research regarding the origin of the need.
  • In the new issue, add the details explaining the analysis for why this will only be available in Advanced Search.
    • this is inconsistent for Issues, as issues has Sort By popularity for Basic and Advanced Search.

Actionable Insights

Some users found value in seeing the number of upvotes/likes on issues and MRs in the results page, and being able to sort by this.

Why: A couple users mentioned that this indicator can help them in understanding and prioritizing issues that have the most support or backing.

Action: Add the ability to sort Issues and MRs by the number of upvotes/likes they have.

Link

Plan

  1. Add upvotes to issues index: !64683 (merged)
  2. Add upvotes_count column to issues table: !65250 (merged)
  3. Add sort by popularity for issues scope behind a new feature flag: !65452 (merged)
  4. Rollout the search_sort_issues_by_popularity feature flag on production incrementally: #334974 (closed)
  5. Remove or enable the search_sort_issues_by_popularity feature flag by default if everything's stable
  6. Add the upvotes field to the merge_requests index: !66671 (merged)
  7. Add the upvotes_count column to the merge_requests table (similar to ). This step might take some time to prove database reviewers/maintainers that it's worth it.: !67343 (closed) (not doing)
  8. Add the sort by popularity for the merge_requests scope behind a new feature flag
  9. Rollout this new feature flag on production
  10. Remove or enable the feature flag by default if everything's stable

Development

This has already been implemented for Issues (!65452 (merged)). We had to revert adding it to Merge Requests (!70944 (merged)), so that is all that remains for this issue.

  • Add sort by popularity to Issues
  • Add sort by popularity to Merge Requests

Release Notes

Customers who use upvoting for Issues and MR prioritization have difficulty doing this across multiple groups and projects.

In 14.2, users can see the number of Upvotes and sort by most popular, which shows the issues with the most upvotes first.

If upgrading to 14.2 this feature will take 5 to 30 minutes to update the indexing with the new field.

Screen_Shot_2021-08-06_at_10.30.39_AM

https://docs.gitlab.com/ee/user/search/advanced_search.html

Edited by 🤖 GitLab Bot 🤖