kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] dw_dev2010-07-21 10:23 am
Entry tags:

LJSV-1068

LJ just unveiled two features I've wanted here but haven't known how to implement, which are a tag list on the update page, and searching for multiple tags using AND instead of OR.

For the first, am I to assume that the new update page will support this, so we don't need to bother with trying to patch the feature into the old update page? Or perhaps rather that the new update page won't support it immediately, but it will be such a radical change that we shouldn't even bother working on it until then? (I really want this ASAP, and it has appeared on "most wanted".)

For the second, should we roll our own fix adopting LJ's URL syntax, or attempt a codemerge? Here's the syntax for those who missed the announcement:

http://username.livejournal.com/tag/tag1,tag2?mode=and
http://username.livejournal.com?tag=tag1,tag2&mode=and

The URL syntax was what bogged us down on that bug, and this seems like a reasonable solution, plus it's what users of both sites will come to expect.

Links to our Bugzilla:

http://bugs.dwscoalition.org/show_bug.cgi?id=581 (for the tag list)
http://bugs.dwscoalition.org/show_bug.cgi?id=1585 (for multiple tag search)
cesy: "Cesy" - An old-fashioned quill and ink (Default)

[personal profile] cesy 2010-07-21 03:44 pm (UTC)(link)
The last I heard on the tag list was that we should hold off until the new update page, though you could quite easily take part 2 out of my patch and part 1 could go straight into the site as it is, as a stop-gap solution.
cesy: "Cesy" - An old-fashioned quill and ink (Default)

[personal profile] cesy 2010-07-21 04:25 pm (UTC)(link)
Ah, yes, quite possibly. I was thinking mainly of personal journals when I wrote it, and I can't remember testing it for communities.
msilverstar: (corset)

[personal profile] msilverstar 2010-07-21 04:01 pm (UTC)(link)
argh, that gets us into teaching Boolean operators to people :-/

I much prefer the terms "ALL" and "ANY"
cesy: "Cesy" - An old-fashioned quill and ink (Default)

[personal profile] cesy 2010-07-21 04:04 pm (UTC)(link)
I think "AND" and "OR" are just as descriptive as "ALL" and "ANY" for a non-techie user, and considerably more useful for a techie or mathmo user.
jazzfish: Jazz Fish: beret, sunglasses, saxophone (Default)

[personal profile] jazzfish 2010-07-21 04:16 pm (UTC)(link)
In my depressing and frustrating experience, non-techies tend to assume "OR" means "boolean XOR" and "AND" means "boolean OR" (the logic is something like "I'm looking for X, and I'm also looking for Y"), and then get upset when there isn't any option to search for "only things that have both X and Y."
msilverstar: (corset)

[personal profile] msilverstar 2010-07-22 04:35 am (UTC)(link)
depressing and frustrating, yes
jazzfish: Jazz Fish: beret, sunglasses, saxophone (Default)

[personal profile] jazzfish 2010-07-21 04:11 pm (UTC)(link)
+1

I'd be happy to see "and" and "or" available as alternatives, in the same way that [lj user=] is an alternative to [user name=], but "all" and "any" are far more intuitive.

(end tech-writer / usability-guy-by-default rant)
cesy: "Cesy" - An old-fashioned quill and ink (Default)

[personal profile] cesy 2010-07-21 04:14 pm (UTC)(link)
I wouldn't object to them being there as alternatives, I suppose, though I'd still rather have "and" and "or" as the standard ones.
msilverstar: (corset)

[personal profile] msilverstar 2010-07-22 04:41 am (UTC)(link)
Alternative usage is good, GUI is good, nice FAQ with examples are good.

Just, any time you use Booleans, explaining is hard
sophie: A cartoon-like representation of a girl standing on a hill, with brown hair, blue eyes, a flowery top, and blue skirt. ☀ (Default)

[personal profile] sophie 2010-07-22 12:24 am (UTC)(link)
+1!

I prefer "all" and "any" too - it really, really is more intuitive. "and"/"or" are bad for the reasons [personal profile] jazzfish mentioned above. I hope that if we have this, these would be the standard.
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)

[personal profile] matgb 2010-07-21 05:25 pm (UTC)(link)
I hate the LJ syntax for the URL. My rule of thumb is if I can't remember it, most people won't, and I can't remember that, or indeed security filtering or date checking my friends page.

It's the ?mode=and bit that'll throw most people, if we can figure out a way of bumping the operator that isn't broken due to existing allowed characters, we're good.

I see from the bugt that no one has managed this, but, y'know.

I do think though that allowing the LJ syntax makes sense, but as a redirect to something that doesn't actually suck.
aveleh: Close up picture of a vibrantly coloured lime (Default)

[personal profile] aveleh 2010-07-21 08:29 pm (UTC)(link)
me too. If we're going to lean toward keeping the commas, I want something like this:

http://username.dreamwidth.org/tag/and/tag1,tag2

(with aliases, etc.)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2010-07-21 08:30 pm (UTC)(link)
Oh, that looks fairly neat.
pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)

[personal profile] pauamma 2010-07-21 05:30 pm (UTC)(link)
I'd run this through suggestions first. (And personally, I'd favor a GUI generating the appropriate URL, because any/all/and/or are all English-specific. This would also sidestep the "which is clearer?" debate neatly.)
alierak: (Default)

[personal profile] alierak 2010-07-21 05:47 pm (UTC)(link)
GUI +1. URLs should be meaningful but not be your primary UI.
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2010-07-21 06:11 pm (UTC)(link)
A GUI sounds good; that way we don't have to worry so much about the URL format, yes.
deborah: the Library of Congress cataloging numbers for children's literature, technology, and library science (Default)

[personal profile] deborah 2010-07-21 06:12 pm (UTC)(link)
GUI +1
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2010-07-21 05:56 pm (UTC)(link)
I prefer one of the forms in Bug 1585. Which, hm. I guess this is a good place to bring up to see what people like.
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2010-07-21 06:11 pm (UTC)(link)
The characters, if meant ot be used as ilterals in the tag, will need to be escaped. (So to avoid breaking existing tag urls, we'd need to set up new urls, then have the current tag urls redirect to the new tags, with characters suitably escaped, if necessary)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2010-07-21 06:33 pm (UTC)(link)
Hmm. I think it's actually easier, long-term, since it's just a couple of characters that need being redone. We'd need to make sure to reserve the characters early on, though. (Maybe have extras?)

I prefer characters (, and +, - ) to the AND/OR stuff since there's shorter and there's less confusion, but yeah *g*

(I'm kinda distracted so I hope that I'm making sense!)
Edited 2010-07-21 18:34 (UTC)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2010-07-21 06:44 pm (UTC)(link)
Hmm, well that matches existing syntax. Not sure about ? and & -- or rather, if there is a & but no ?, then it's okay. But the & should be escaped anyway (but escaping & is pretty standard, IIRC)
alierak: (Default)

[personal profile] alierak 2010-07-22 10:21 am (UTC)(link)
Don't forget + is already a URI escape character for space.
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2010-07-22 03:17 pm (UTC)(link)
In the arguments, so /tag/a+b isn't a space, but ?tag=a+b is a space

(Or was it the other way around?)
mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)

[staff profile] mark 2010-07-22 12:00 am (UTC)(link)
I'd rather wait for the new update page than update the existing one. I should ask [personal profile] fu what the timeline is for that, as I'm not sure.

We could probably take the implementation for AND-tags (maybe, I haven't looked at it) but I don't like that syntax much. I definitely think the GUI suggestion is a good one, but we should also have a URL that is memorable and easy enough for people who want to do so.