HOME   FEED WIKI FORUM USERS TOP GROUPS   REGISTER LOGIN
Strip ID: 1260 Created: 2022-10-23 20:32:07 Last reply: 2022-10-30 17:30:26 Comments: 18



Maybe A Bug with @ing? Possible bad nooz




TeeEffDee
2022-10-23 20:32:07
#1
`Peyo` I was trying to @ nooz in a strip that completed and when I did it kept changing it to aim the mention at noozz. When I went to edit I'd see the mentioned name in single quotes. No idea what was going on there but I thought I'd mention it, and if you want to check the mention it was in the comments of this strip: https://pchutney.com/strip/1252 The weirdest thing is I never typed it any way except for nooz

Aluminimalism
2022-10-23 20:53:07
#2
What bad nooz, rocks off my shooz. Seems like mentions code needs its fair dooz. Exact match, or auto complete, you must chooz. Best if only one you yuuz. I ought to lay off the booz.

TeeEffDee
2022-10-23 20:53:44
#3
It would be great if every one of those ooz words atted nooz!

Peyo
2022-10-23 21:34:25
2022-10-23 21:15:05
#4
I investigated the problem: the probable cause is that nooz has two users with very similar usernames* (he lost the password for the old one according to his description at least [/user/39](/user/39) ) and this confuses my mention system which goes for the oldest username it can find with a similar name (that's my theory anyhow) so far my proposed solutions are: - I change it so default mentions are generated with user id instead of name (when you click on someones name in the comments) so the mention system doesn't get confused - I help `nooz` recover his old account so he gets these mentions too - I just change the name on his old account so the mention system doesn't get confused (there is probably a better way -- fixing the mention system somehow comes to mind -- but I still have trouble thinking straight so I'm not sure how ) edit: *and by username i mean the displayed name (true usernames are not public and only for login)

TeeEffDee
2022-10-25 19:22:15
2022-10-23 21:38:52
#5
`Peyo` I'm not sure what your relationship with coding is but the way I would have handled this back when I used to code was by doing a search for the exact string first (I don't imagine that would be much of a problem on here since the user base is pretty small) and then failing that have it start seeking a partial match, but also a more hardcore (but less error prone) approach would just be having anything but an exact match fail, since we can edit comments after the fact anyway. However, speaking of user numbers, that actually would have always been my approach would be to first reduce a string to a number/database reference and use that for the process.

Peyo
2022-10-23 21:58:30
2022-10-23 21:57:45
#6
`TeeEffDee` I guess one solution could be to add an extra check for an exact match of the name reducing string to database: we kind of do that -- it's just a bit over-engineered: there was concern about very long names and names with spaces in them -- so the system tries to auto-complete the names -- in this case: it tried to find any name like 'nooz' it's just that 'noozz' was a similar name and was found earlier in the database (as it was made earlier and has a lower id number)

Peyo
2022-10-25 17:35:46
#7
ok it should now check for exact name first this is just a test don't be alarmed `noozz`

Peyo
2022-10-25 17:36:00
#8
well.. back to the drawing board

TeeEffDee
2022-10-25 19:25:07
#9
`Peyo` I'm sorry to hear it's not working as you wish but figuring out how to reliably do an exact string match is something definitely worth getting down. That's gold!

Peyo
2022-10-25 21:13:00
2022-10-25 21:07:57
#10
hear hear .. sadly still WIP .. (SQL is hard to tame)

TeeEffDee
2022-10-25 21:32:27
#11
`Peyo` I was looking around for possible solutions and found out using back ticks like ` instead of straight up quotes like ' can cause an issue with matching. I checked and noticed when I edited the Nooz post that the edit has back ticks. Maybe using straight quotes is worth a try.

Peyo
2022-10-25 21:46:48
#12
unfortunately that is just a markdown ( meant to be an indicator that the mention was succesful) ``(you can write any text between the ticks and make it look like this)`` (it was done this way so after you mention someone and edit a post you don't send a second mention -- unless you add the name with the @ symbol again)

TeeEffDee
2022-10-25 22:03:07
#13
This kind of shows my level of knowledge on the matter! It sounds like you will find a solution soon, and great work so far!

Peyo
2022-10-26 20:38:24
#14
here we go again.. sorry for using you for testing `nooz`

Peyo
2022-10-26 20:39:03
#15
ok seems good enough (I accidently left the % symbol that is needed for sql like command for the exact name search)

TeeEffDee
2022-10-26 21:40:57
#16
`Peyo` I went and edited the original post and it seemed to work great now! Excellent! Also I wanted to test the `Peyo` functionality so, now is as good a time as any.

Peyo
2022-10-30 15:46:04
#17
`⚰` `🔳` (sorry guys just using your names for testing)

🔳
2022-10-30 17:30:26
#18
`Peyo` 👍

GO UP
 2022-2026 Peyocay Inc. Complain here Privacy Policy