I'm noticing that we're having some overlap on tags, just by some people's nature of some using hyphens and others who remove spaces. For example there are tags "purple-air" and "purpleair" the material should be the same, we end up with two different tag pages, and different material on each tag page. Is there anyway to make those two things go to the same result? go to the same tag page?
https://publiclab.org/tag/purple-air
https://publiclab.org/tag/purpleair
@publiclab/mentors this one is probably a little more complicated, but I'd love to talk about it with someone!
It might also be interesting to force one system here, for example if someone tries to post hyphenated tags, the hyphens are removed when it's posted and replaced with a tag with hyphen. We could make it capitalize the word after the hyphen for example someone trying to tag "purple-air" could end up with "PurpleAir"
Thanks Stevie! We can do two things here:
redirect:purpleair (for example) so that both show the same wiki page content at the top of the tag page.Thanks again!
Oh this is exciting! I have done much tag standardization over the years,
because what Stevie writes is so true. The idea that one tag could be a
parent is amazing, did not know that.
I think we have a norm of usually using "kabob-case" for tags (as described
by 2017 Google Summer of Code Fellows, possibly @ryzokuken). Kabob-case
means words separated by hyphens.
On Fri, Oct 12, 2018, 9:59 AM Jeffrey Warren notifications@github.com
wrote:
Thanks Stevie! We can do two things here:
- we can make one the "parent" of the other tag, so if you have a
preferred please mention it and we can do this (although it's done in the
database directly... we could imagine adding a button to "make a parent" as
a break-out feature)- we can also be sure there is a wiki page for both, but one
redirecting with redirect:purpleair (for example) so that both show
the same wiki page content at the top of the tag page.Thanks again!
โ
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/3677#issuecomment-429178691,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJ2n9i9d_JfhEnvfWvbffyQRodXWp1hks5uj_eHgaJpZM4XYVDQ
.
Ok, so would we be good to have tag parenting get more user interface or
would we like to perhaps have some other system developed like, if no
content is found, redirect to a non-hyphenated close alternative?
I don't think it'd be able to figure out how to add in hyphens because it
wouldn't know enough English to figure that out, like, if
maneatingcabbage would
become man-eating-cabbage or maneating-cabbage.
We could also make a button to "add redirects" if that makes creating
redirect pages a bit faster.
+1 for any of these ideas? 1 and 3 are easier and more maintainable than 2.
On Fri, Oct 12, 2018, 10:26 AM Liz Barry notifications@github.com wrote:
Oh this is exciting! I have done much tag standardization over the years,
because what Stevie writes is so true. The idea that one tag could be a
parent is amazing, did not know that.I think we have a norm of usually using "kabob-case" for tags (as described
by 2017 Google Summer of Code Fellows, possibly @ryzokuken). Kabob-case
means words separated by hyphens.On Fri, Oct 12, 2018, 9:59 AM Jeffrey Warren notifications@github.com
wrote:Thanks Stevie! We can do two things here:
- we can make one the "parent" of the other tag, so if you have a
preferred please mention it and we can do this (although it's done in the
database directly... we could imagine adding a button to "make a parent"
as
a break-out feature)- we can also be sure there is a wiki page for both, but one
redirecting with redirect:purpleair (for example) so that both show
the same wiki page content at the top of the tag page.Thanks again!
โ
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/publiclab/plots2/issues/3677#issuecomment-429178691
,
or mute the thread
<
https://github.com/notifications/unsubscribe-auth/AAJ2n9i9d_JfhEnvfWvbffyQRodXWp1hks5uj_eHgaJpZM4XYVDQ.
โ
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/3677#issuecomment-429182961,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJ2S4bPl-La0S9edP2jbXeOU_RR5Eks5uj_3PgaJpZM4XYVDQ
.
Is there any way for the system to just ignore the hyphens? and redirect all tags with the same letters to the same place?
I'm sure we would run into a couple weird situations with your maneating-cabbage example, but it might be easier to just have a manual override on those unique situations than worrying about redirecting all over the place?
Hi @steviepubliclab , I couldn't help but Google about your discussion, and here's a Ruby method .gsub() which Returns a copy of str with the all occurrences of pattern substituted for the second argument .
Example,
"purple-air".gsub(/[-]/, '')
Output : purpleair
I think what Liz was saying, and I see her point, is that we already have a pretty strong convention for using hyphens ("kabob-case"), so this might disrupt a lot of existing pages. But let's think through it -- if we can't /add/ hyphens, we can only remove them, then:
purple-air would be auto-redirected to purpleair which would work for this instanceBut my concern with this is that that we have a lot of existing redirects in both directions, but mostly towards hyphens, as Liz pointed out: https://publiclab.org/wiki/airquality for example, redirects to https://publiclab.org/wiki/air-quality, and many more like that.
@shubhangi-chauhan is right (thank you!!!!) that we can strip out the hyphens.
I think we could potentially make all hyphenated tags automatically have all non-hyphenated versions as alias tags, AND create a wiki page redirecting back to the hyphenated page, so if we create a tag like sand-storm it would automatically generate sandstorm and redirect the /wiki/sandstorm wiki page to /wiki/sand-storm. We could run this on all existing hyphenated tags too, although we'd have to check for exceptions like purpleair. But because of the man-eating-cabbage problem, we can't do the reverse (insert hyphens) because the system wouldn't know where to put the hyphens.
What do you think? There are a couple features we'd have to implement here, but it could be broken up into smaller parts.
Hi again,
Is there any way to do a search on Public Lab URLs for text that is the same regardless of the hiphons, that could point out where we run into trouble with redirects.
Would it be helpful to just output all wiki page URLs in alphabetical
order? We could do that and review it?
On Tue, Oct 23, 2018 at 9:32 AM Stevie notifications@github.com wrote:
Hi again,
Is there any way to do a search on Public Lab URLs for text that is the
same regardless of the hiphons, that could point out where we run into
trouble with redirects.โ
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/3677#issuecomment-432246848,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJ67k5X6hKtVHQWVM1hL_kVgT1W2-ks5unxpEgaJpZM4XYVDQ
.
Interesting, do you have an estimate on about how many wikis there are right now?
I would love to see an alphebetized list of wikis! Last time i paged
through to count, there were about 1000 pages.
On Tue, Oct 23, 2018, 11:28 PM Stevie notifications@github.com wrote:
Interesting, do you have an estimate on about how many wikis there are
right now?โ
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/3677#issuecomment-432291886,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJ2nz7miTnMVdQAqQe4nQjZMw2U2Q8Qks5unzW2gaJpZM4XYVDQ
.
https://publiclab.org/stats says 1269, wow!
On Tue, Oct 23, 2018 at 11:29 AM Stevie notifications@github.com wrote:
Interesting, do you have an estimate on about how many wikis there are
right now?โ
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/3677#issuecomment-432291886,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJ19Pea9zu0dIRl2Ek3tKAHMmbH8Oks5unzWzgaJpZM4XYVDQ
.
OK - so here's the alphabetized list: https://publiclab.org/wiki?sort=title
On Tue, Oct 23, 2018 at 11:48 AM Liz Barry notifications@github.com wrote:
I would love to see an alphebetized list of wikis! Last time i paged
through to count, there were about 1000 pages.On Tue, Oct 23, 2018, 11:28 PM Stevie notifications@github.com wrote:
Interesting, do you have an estimate on about how many wikis there are
right now?โ
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/publiclab/plots2/issues/3677#issuecomment-432291886
,
or mute the thread
<
https://github.com/notifications/unsubscribe-auth/AAJ2nz7miTnMVdQAqQe4nQjZMw2U2Q8Qks5unzW2gaJpZM4XYVDQ.
โ
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/3677#issuecomment-432299682,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJ3k8nlKcr1hXv0thEnZfCMAmpXEyks5unzoQgaJpZM4XYVDQ
.
I guess we can add a column to show the URL here too if that would be
helpful!
On Tue, Oct 23, 2018 at 12:12 PM Jeffrey Warren jeff@unterbahn.com wrote:
OK - so here's the alphabetized list:
https://publiclab.org/wiki?sort=titleOn Tue, Oct 23, 2018 at 11:48 AM Liz Barry notifications@github.com
wrote:I would love to see an alphebetized list of wikis! Last time i paged
through to count, there were about 1000 pages.On Tue, Oct 23, 2018, 11:28 PM Stevie notifications@github.com wrote:
Interesting, do you have an estimate on about how many wikis there are
right now?โ
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/publiclab/plots2/issues/3677#issuecomment-432291886
,
or mute the thread
<
https://github.com/notifications/unsubscribe-auth/AAJ2nz7miTnMVdQAqQe4nQjZMw2U2Q8Qks5unzW2gaJpZM4XYVDQ.
โ
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/3677#issuecomment-432299682,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJ3k8nlKcr1hXv0thEnZfCMAmpXEyks5unzoQgaJpZM4XYVDQ
.
Created an issue for a first-timer:
https://github.com/publiclab/plots2/issues/3744
On Tue, Oct 23, 2018 at 12:12 PM Jeffrey Warren jeff@unterbahn.com wrote:
I guess we can add a column to show the URL here too if that would be
helpful!On Tue, Oct 23, 2018 at 12:12 PM Jeffrey Warren jeff@unterbahn.com
wrote:OK - so here's the alphabetized list:
https://publiclab.org/wiki?sort=titleOn Tue, Oct 23, 2018 at 11:48 AM Liz Barry notifications@github.com
wrote:I would love to see an alphebetized list of wikis! Last time i paged
through to count, there were about 1000 pages.On Tue, Oct 23, 2018, 11:28 PM Stevie notifications@github.com wrote:
Interesting, do you have an estimate on about how many wikis there are
right now?โ
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
<
https://github.com/publiclab/plots2/issues/3677#issuecomment-432291886>,
or mute the thread
<
https://github.com/notifications/unsubscribe-auth/AAJ2nz7miTnMVdQAqQe4nQjZMw2U2Q8Qks5unzW2gaJpZM4XYVDQ.
โ
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/3677#issuecomment-432299682,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJ3k8nlKcr1hXv0thEnZfCMAmpXEyks5unzoQgaJpZM4XYVDQ
.
Awesome!!!!
On Wed, Oct 24, 2018, 12:21 AM Jeffrey Warren notifications@github.com
wrote:
Created an issue for a first-timer:
https://github.com/publiclab/plots2/issues/3744On Tue, Oct 23, 2018 at 12:12 PM Jeffrey Warren jeff@unterbahn.com
wrote:I guess we can add a column to show the URL here too if that would be
helpful!On Tue, Oct 23, 2018 at 12:12 PM Jeffrey Warren jeff@unterbahn.com
wrote:OK - so here's the alphabetized list:
https://publiclab.org/wiki?sort=titleOn Tue, Oct 23, 2018 at 11:48 AM Liz Barry notifications@github.com
wrote:I would love to see an alphebetized list of wikis! Last time i paged
through to count, there were about 1000 pages.On Tue, Oct 23, 2018, 11:28 PM Stevie notifications@github.com
wrote:Interesting, do you have an estimate on about how many wikis there
are
right now?โ
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
<
https://github.com/publiclab/plots2/issues/3677#issuecomment-432291886
,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJ2nz7miTnMVdQAqQe4nQjZMw2U2Q8Qks5unzW2gaJpZM4XYVDQ
>.
โ
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
<
https://github.com/publiclab/plots2/issues/3677#issuecomment-432299682>,
or mute the thread
<
https://github.com/notifications/unsubscribe-auth/AABfJ3k8nlKcr1hXv0thEnZfCMAmpXEyks5unzoQgaJpZM4XYVDQ.
โ
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/3677#issuecomment-432315093,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJ2n30xNzrzN5c05_wyVH2KVwXOelVIks5un0IXgaJpZM4XYVDQ
.
Also added an interface for adding tag parents (admin only) here: https://github.com/publiclab/plots2/pull/3749
barebones though and not published yet!
Alphabetizing of URLs is also here now as of today: https://publiclab.org/wiki
Add tag parent now exists but is buggy. Updates soon!
OK tag parenting has a button only shown to admins now. it's not that tidy looking but it works:

There is one final bug but it should be running by Monday. ๐
Hi @jywarren, please update the issue progress. Thanks!
I think the only remaining thing we could look into would be from this comment, the essence of which would be:
kabob-cased tag to its hyphen-free alternative kabob-cased version, for all wiki pages. Although now that I think of it, we could also explore @steviepubliclab's idea in this comment to see if we can get the search function to essentially ignore hyphens, or to add an unhyphenated version to the search terms automatically, or something like that -- i'd be happy to break out a new issue with that if folks are interested.
@jywarren I think @steviepubliclab's idea is nice and seems possible. Where do you think we should implement it- at https://publiclab.org/search/ maybe?
Thanks!
I agree that @steviepubliclab 's idea is nice and straightforward. Not sure where it should be implemented.
OK, i'll open a new issue for that and close this one, leaving aside the auto-redirect generation idea. Thanks!
Most helpful comment
Hi again,
Is there any way to do a search on Public Lab URLs for text that is the same regardless of the hiphons, that could point out where we run into trouble with redirects.