plussing to WQL results

Ticket

plussing to WQL results+status
plussing to WQL results+priority
plussing to WQL results+commit
 

 

plussing to WQL results+solution

New syntax/capability for WQL:

 

{"prepend": "foo", "type": "Place"}

returns all Place cards plussed to foo, e.g.:

foo+Eugene

foo+Chicago

fpp+Fort Collins

etc.

 

{"append": "my current cards", "type": "User"

returns all User cards plussed to my current cards, e.g.:

John Abbe+my current cards

Jean Russell+my current cards

etc.

 

If the specified card is not a valid virtual card, it should still be renderable as a link or something.

 

 

I want to point out that we could achieve something very close to our "+tickets by status" with this if we made a "status" cardtype and made the status setting a pointer to it.  You would search for all the stati and plus them to a search that found all the tickets pointing to each status.


Lew might shoot my implementation down for performance reasons, but it sure was easy.

  --Ethan McCutchen.....Wed Mar 18 18:55:35 -0700 2009


Not working. See:
http://new.wagn.org/wagn/Related_forms (append)
http://sandwagn.wagn.org/wagn/prepend_test

Also, is it intentional that the syntax for prepend has no + while the syntax for append does? I'd be inclined toward having no + required for either (and maybe working with it anyway if we want to be forgiving).

  --John Abbe.....Wed Mar 25 18:33:40 -0700 2009


actually, that was my bad on the docs. Right now it doesn't require + for either, but part of me wants to require the + to leave open the possibility of having it work with non plus related patterns. but that's not super easy to justify.

  --Ethan McCutchen.....Thu Mar 26 09:14:52 -0700 2009


I'd actually never tested this one in the browser, only in the automatic tests, and so I had to make a little fix that had more to do with interpreting the JSON than updating the functionality. may have knocked out a couple of other tickets along the way. (I'll hunt)

  --Ethan McCutchen.....Thu Mar 26 10:14:46 -0700 2009


This rocks. Documenting.

  --John Abbe.....Thu Mar 26 11:50:56 -0700 2009