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
Unknown Object (File)
Sat, Apr 20, 6:26 PM
Unknown Object (File)
Fri, Apr 12, 9:52 PM
Unknown Object (File)
Feb 19 2024, 11:59 AM
Unknown Object (File)
Feb 19 2024, 6:20 AM
Unknown Object (File)
Feb 16 2024, 2:30 AM
Unknown Object (File)
Feb 10 2024, 3:56 PM
Unknown Object (File)
Feb 4 2024, 3:00 AM
Unknown Object (File)
Jan 27 2024, 6:10 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)