Page MenuHomePhabricator

Sort project typeahead tokens by display name, not hashtag
ClosedPublic

Authored by epriestley on May 26 2016, 5:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 26, 3:36 AM
Unknown Object (File)
Wed, Mar 20, 6:10 PM
Unknown Object (File)
Mon, Mar 18, 2:57 AM
Unknown Object (File)
Tue, Mar 5, 9:54 AM
Unknown Object (File)
Feb 13 2024, 11:34 PM
Unknown Object (File)
Feb 9 2024, 1:42 PM
Unknown Object (File)
Feb 3 2024, 10:17 AM
Unknown Object (File)
Jan 19 2024, 8:37 AM
Subscribers
None

Details

Summary

Fixes T8510. Results are internally ordered by "name", which is the full list of strings a user can type to match a result. On the balance, it is probably good/correct to order by this (particularly, it allows function(x) to sort near x).

However, the way projects were built put the tags first, so a project like "Discovery" could end up last if it had originally been created with a different name like "Search Team", so that its first slug is "search-team".

Instead, put the display name first in the ordering.

Test Plan

Screen Shot 2016-05-26 at 10.01.30 AM.png (459×634 px, 55 KB)

To reproduce in particular:

  • Create a project named "Zebra".
  • Create a lot of projects named "Armadillo-blahblahblah".
  • Rename "Zebra" to "Armadillo".

Before the patch, the new "Armadillo" project would still sort as though it were named "Zebra". After the patch, it sorts as expected normally.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Sort project typeahead tokens by display name, not hashtag.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.May 26 2016, 5:46 PM
This revision was automatically updated to reflect the committed changes.