Add Sort by Last Updated to Issue/MR Sort Options in Global Search
Originally Pointed out here. #25687
Users should have the ability to sort results lists for Issues and MRs by Last Updated.
This can help with larger and older Instances where users are dealing with duplicates and similar issues and MRs.
On the issues page, Last updated is the second most used Feature.
Release notes
On the GitLab search result page, we have a dropdown list where users can choose to sort the results by certain criteria. In GitLab 13.9, we added another option in the dropdown list where users can sort the issues and MRs results by their last updated time.
Designs
- Show closed items
Relates to
- #263365Backlog5
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- John McGuire added to epic &4084
added to epic &4084
- John McGuire added Category:Global Search groupglobal search labels
added Category:Global Search groupglobal search labels
- John McGuire marked this issue as related to #263365
marked this issue as related to #263365
- John McGuire changed the description
Compare with previous version changed the description
- John McGuire marked this issue as related to #273328 (closed)
marked this issue as related to #273328 (closed)
- John McGuire added workflowdesign label
added workflowdesign label
- John McGuire added 1 design
added 1 design
- John McGuire added 1 design
added 1 design
- Author Contributor
@nickbrandt I think we can leverage the existing work and are pretty close to being Dev Ready.
1 Collapse replies - Developer
@JohnMcGuire Yes, this is close. We currently don't display the last updated date within the Issue/MR list results, so that will need added. I'm putting together the design now and will update shortly.
- Developer
@JohnMcGuire added new design above. If this looks good to you, we can move this issue along to
workflow::ready for dev
.I think in the future when we look into adding the ability to sort by number of likes/comments, we can consider moving some of this metadata to be aligned right within the items in the listing (similar to what you see on issue/MR list pages). For now though, I think it makes sense to keep it aligned with the other metadata as seen in the design above.
1
- Author Contributor
Customer Request through the sales team.
- John McGuire added customer label
added customer label
- John McGuire added UX label
added UX label
Thanks for opening this John. Much appreciated.
- Maintainer
@JohnMcGuire I'm confused by this issue description. The first sentence says:
Group search does not return results for code search when searching from a subgroup with no project.
What does this have to do with sorting? Is there 2 separate issues being described here?
Also I don't understand how you could expect to find code if there was no project.
Collapse replies - Author Contributor
Thanks, @DylanGriffith ! Updated.
That line was included accidentally.
👍
- John McGuire changed the description
Compare with previous version changed the description
- Maintainer
Setting label(s) devopsenablement sectionenablement based on groupglobal search.
- 🤖 GitLab Bot 🤖 added devopssystems sectioncore platform labels
added devopssystems sectioncore platform labels
- Nick Brandt assigned to @nickbrandt
assigned to @nickbrandt
- Nick Brandt added 2 designs
added 2 designs
- Nick Brandt removed 2 designs
removed 2 designs
- Changzheng Liu mentioned in issue gitlab-org/search-team/team-tasks#29 (closed)
mentioned in issue gitlab-org/search-team/team-tasks#29 (closed)
- Changzheng Liu mentioned in issue gitlab-org/enablement-section/discussions#4
mentioned in issue gitlab-org/enablement-section/discussions#4
- Nick Brandt added workflowready for development label and removed workflowdesign label
added workflowready for development label and removed workflowdesign label
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#1608 (closed)
mentioned in issue gitlab-org/quality/triage-reports#1608 (closed)
- John McGuire added Deliverable label
added Deliverable label
- Changzheng Liu added [deprecated] good for new contributors label
added [deprecated] good for new contributors label
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#1709 (closed)
mentioned in issue gitlab-org/quality/triage-reports#1709 (closed)
- Developer
I suspect unit and perhaps integration tests would suffice for testing this.
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#1799 (closed)
mentioned in issue gitlab-org/quality/triage-reports#1799 (closed)
- Nick Brandt mentioned in issue gitlab-ui#1155
mentioned in issue gitlab-ui#1155
- Author Contributor
@changzhengliu This issue is ready for Development. In case someone is looking for a frontend change with a large impact.
1 - 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#1929 (closed)
mentioned in issue gitlab-org/quality/triage-reports#1929 (closed)
- Dmitry Gruzd assigned to @dgruzd
assigned to @dgruzd
- Dmitry Gruzd mentioned in merge request !53589 (merged)
mentioned in merge request !53589 (merged)
- Dmitry Gruzd added workflowin dev label and removed workflowready for development label
added workflowin dev label and removed workflowready for development label
- Maintainer
@JohnMcGuire this is merged. Should we close the issue or should we wait for the release post first?
Collapse replies - Developer
@dgruzd one thing that looks as though it may have been missed in !53589 (merged) is adding the last updated date to the results items (seen here in the design after the created date). If a user is sorting by a certain criteria, it is best to be able to provide details to that information in the results when possible. Sorry this wasn't made clear in the description above.
- Author Contributor
I will leave this open for the Release Post.
- Maintainer
@nickbrandt oh, sorry. I missed that. I'll create another MR to add the last updated date to the results items
👍
- Dmitry Gruzd assigned to @JohnMcGuire
assigned to @JohnMcGuire
- Dmitry Gruzd added workflowcanary label and removed workflowin dev label
added workflowcanary label and removed workflowin dev label
- John McGuire started a discussion on Search_Facets_-Sort-_Last_Updated.png
started a discussion on Search_Facets_-Sort-_Last_Updated.png
- Dmitry Gruzd mentioned in merge request !53958 (merged)
mentioned in merge request !53958 (merged)
- Changzheng Liu changed the description
Compare with previous version changed the description
- Changzheng Liu added GitLab Core release post itemsecondary labels
added GitLab Core release post itemsecondary labels
- Changzheng Liu added release post itemtop label and removed release post itemsecondary label
added release post itemtop label and removed release post itemsecondary label
- Changzheng Liu added release post itemsecondary label and removed release post itemtop label
added release post itemsecondary label and removed release post itemtop label
- 🤖 GitLab Bot 🤖 added release post itemin review label and removed release post itemsecondary label
added release post itemin review label and removed release post itemsecondary label
- 🤖 GitLab Bot 🤖 mentioned in merge request gitlab-com/www-gitlab-com!75087 (merged)
mentioned in merge request gitlab-com/www-gitlab-com!75087 (merged)
- Changzheng Liu added workflowproduction label and removed workflowcanary label
added workflowproduction label and removed workflowcanary label
- Changzheng Liu closed
closed
- John McGuire mentioned in issue #325775
mentioned in issue #325775
- 🤖 GitLab Bot 🤖 added devopsdata stores label and removed devopssystems label
added devopsdata stores label and removed devopssystems label
- John McGuire removed from epic &4084
removed from epic &4084