Page MenuHomePhabricator

Allow PhutilClassMapQuery to filter null
ClosedPublic

Authored by joshuaspence on Jul 7 2015, 10:02 AM.
Tags
None
Referenced Files
F13098441: D13572.id.diff
Fri, Apr 26, 6:52 AM
Unknown Object (File)
Fri, Apr 26, 1:14 AM
Unknown Object (File)
Thu, Apr 25, 1:36 PM
Unknown Object (File)
Thu, Apr 25, 2:36 AM
Unknown Object (File)
Wed, Apr 24, 11:17 PM
Unknown Object (File)
Tue, Apr 23, 8:41 AM
Unknown Object (File)
Fri, Apr 19, 5:32 AM
Unknown Object (File)
Mon, Apr 8, 1:48 PM
Subscribers

Details

Summary

Allow PhutilClassMapQuery to filter objects which return null from the "unique" method.

Test Plan

See next diff.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Allow PhutilClassMapQuery to filter null.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
epriestley added inline comments.
src/symbols/PhutilClassMapQuery.php
79–81

Prefer documenting.

This revision is now accepted and ready to land.Jul 7 2015, 12:36 PM

FWIW, I find the method signature pretty awkward, but it seemed better than adding a filterNull() method.

I think it's OK. Not ideal, but does seem cleaner than a separate method.

And likewise cleaner than a setUniqueButAlsoNullFitleringMethod(...) method.

This revision was automatically updated to reflect the committed changes.