chaban
February 10, 2020, 2:00am
1
There are currently 3 tags using dots but the links don’t work:
last.fm
metabrainz.org
musicbrainz.org
@Freso can you please fix those? Otherwise I’d have to find the topics some other way and might hit the edit limit again.
Apparently they were never intended to be supported:
1 Like
Freso
February 10, 2020, 1:36pm
2
I’m looking into it. Seems like I can’t fix them from the GUI, but I’ll find a way!
7 Likes
Please @admins , if you know what and where the rails console is, could you rename the tag #last.fm to #lastfm ?
There is a bug with tags with periods:
Oops! That page doesn’t exist or is private.
Here is how to do , apparently:
t = Tag.find_by_name("last.fm")
t.name = "lastfm"
t.save
2 Likes
chaban
March 7, 2022, 10:32pm
4
I reported this a long time ago:
There are currently 3 tags using dots but the links don’t work:
last.fm
metabrainz.org
musicbrainz.org
@Freso can you please fix those? Otherwise I’d have to find the topics some other way and might hit the edit limit again.
Apparently they were never intended to be supported:
OTHER-363 Fix Discourse tags containing dots Type: Task
Priority: Normal
Bonus points to those who notice the time discrepancy of the post and ticket.
5 Likes
Ach, sorry @chaban , I forgot to search, I didn’t remember that.
Hi @Freso , I don’t know if you can merge this topic of mine, duplicate of chaban’s topic.
I got a reply to how to run their batch tag rename command:
Backup Discourse database
Connect to the server with ssh
cd /var/discourse
./launcher enter app
rails c
t = Tag.find_by_name("last.fm")
t.name = "lastfm"
t.save
Freso
March 9, 2022, 11:26am
6
@zas Is this something you can do? I don’t think I have server access to be able to access the rails console myself.
1 Like
Zas
March 9, 2022, 11:58am
7
jesus2099:
t.save
I renamed following tags:
“last.fm” couldn’t be renamed to “lastfm” because this tag name already exists, so I rename it to “last-fm ”.
4 Likes
Thanks very much!
Then I moved those 3 topics from #last-fm to #lastfm , where they now are together with the existing previous topic, nice and clean. :)
3 Likes