Page MenuHomePhabricator

Invert include/exclude logic on DivinerAtomQuery
ClosedPublic

Authored by joshuaspence on Jun 4 2015, 9:04 PM.
Tags
None
Referenced Files
F15418869: D13157.id31796.diff
Fri, Mar 21, 1:58 AM
F15397478: D13157.id31795.diff
Sun, Mar 16, 8:29 PM
F15390284: D13157.id31795.diff
Sat, Mar 15, 6:05 AM
F15389877: D13157.id.diff
Sat, Mar 15, 5:44 AM
F15389800: D13157.id.diff
Sat, Mar 15, 5:39 AM
F15388683: D13157.id31797.diff
Sat, Mar 15, 4:15 AM
F15384808: D13157.diff
Fri, Mar 14, 8:54 PM
F15368254: D13157.id31795.diff
Wed, Mar 12, 1:11 AM
Subscribers

Details

Summary

Fixes T8401. Change withIncludeGhosts() to withExcludeGhosts() and withIncludeUndocumentable() to withExcludeDocumentable(). In particular, this allows querying for atoms by PHID to work as expected.

Test Plan

I got confused with double negatives so I might have gotten some of these wrong... I poked around Diviner and re-generated documentation to verify that this is working as expected.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Invert include/exclude logic on DivinerAtomQuery.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.

I intentionally didn't change the following:

  • DivinerAtomPHIDType
  • DivinerAtomSearchEngine
src/applications/diviner/controller/DivinerAtomController.php
50–51

This will be changed when I land D13114.

epriestley edited edge metadata.

Also slightly more modern is withGhosts(), defaulting to null, and accepting true to mean "ghosts only" or false to mean "no ghosts". See PeopleQuery for an example if you want to go that route.

This revision is now accepted and ready to land.Jun 4 2015, 9:08 PM
joshuaspence edited edge metadata.

Modernize using withGhosts() and withIsDocumentable

This revision was automatically updated to reflect the committed changes.