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)
Thu, Dec 12, 10:46 PM
Unknown Object (File)
Wed, Dec 11, 3:55 PM
Unknown Object (File)
Sat, Dec 7, 7:38 AM
Unknown Object (File)
Wed, Nov 27, 5:30 PM
Unknown Object (File)
Wed, Nov 20, 2:38 PM
Unknown Object (File)
Nov 10 2024, 3:12 PM
Unknown Object (File)
Nov 9 2024, 11:54 AM
Unknown Object (File)
Nov 9 2024, 11:54 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
Branch
projorder
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 12348
Build 15620: Run Core Tests
Build 15619: arc lint + arc unit

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.