Page MenuHomePhabricator

Don't show closed typeahead results while open results exist
ClosedPublic

Authored by epriestley on Feb 14 2014, 10:26 PM.
Tags
None
Referenced Files
F18843104: D8238.id.diff
Tue, Oct 28, 8:59 PM
F18837746: D8238.diff
Mon, Oct 27, 7:33 AM
F18821243: D8238.diff
Wed, Oct 22, 9:03 PM
F18810932: D8238.diff
Mon, Oct 20, 12:08 AM
F18791067: D8238.id19604.diff
Thu, Oct 16, 12:49 AM
F18737566: D8238.id.diff
Oct 1 2025, 11:25 AM
F18685674: D8238.id19607.diff
Sep 26 2025, 11:34 AM
F18627168: D8238.id19604.diff
Sep 16 2025, 3:22 AM
Subscribers

Details

Summary

Ref T4420. When a result list contains both open and closed results, hide the closed results. I think this has a good chance of almost always working, and feeling very intuitive. It has a small chance of being a weird mess. It feels reasonable to me so far

The one bad case I can come up with here is that if you have results which shadow each other, like "Apples" (a closed project) and "Apples and Bananas" (an open project), it is impossible to get "Apples" in the result list, because "Apples and Bananas" will always shadow it. Let's wait for someone to hit this before we figure out how to deal with it.

Test Plan

Typed through open stuff to hit closed stuff.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Seems like project shortnames would provide a workaround for that case.

We can still have users @jsmith and @jsmithson, but I'm not really convinced this will ever actually happen in real life.

I would be OK for exact matches displaying both, at least when someone complains.

jsmith

  • John Smithson (jsmithson)
  • John Smith (jsmith) disabled

jsmiths

  • John Smithson (jsmithson)