# Title disappears when user sets it

**URL:** https://meta.discourse.org/t/title-disappears-when-user-sets-it/160912
**Category:** Bug
**Created:** [August 14, 2020, 6:42pm UTC](https://meta.discourse.org/t/title-disappears-when-user-sets-it/160912 "2020-08-14T18:42:41Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Yu\_Gong1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yu_gong1/32/98413_2.png) [@Yu\_Gong1](https://meta.discourse.org/u/Yu_Gong1)
#### Post date: [August 14, 2020, 6:42pm UTC](https://meta.discourse.org/t/title-disappears-when-user-sets-it/160912/1 "2020-08-14T18:42:41Z")

</div>

Hi,

This issue still remains 🙂 Will there be a fix coming for this? 🙂 [Trust level 3 user title disappearing - #12 by jomaxro](https://meta.discourse.org/t/trust-level-3-user-title-disappearing/137554/12)

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [August 15, 2020, 8:53pm UTC](https://meta.discourse.org/t/title-disappears-when-user-sets-it/160912/3 "2020-08-15T20:53:24Z")

</div>

It should be fixed since January. What are the steps to reproduce the issue? It works when I do the following:

- Set a default locale other than English (German in my case)
- Promote a user to TL3
- Login as that TL3 user
- Go to the user preferences (`/my/preferences/account`)
- Change the title and click Save
- Reload the page

The selected title is still visible.

---

<div class="post-metadata">

### Author: ![HeyRR](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heyrr/32/192157_2.png) [@HeyRR](https://meta.discourse.org/u/HeyRR)
#### Post date: [August 17, 2020, 6:14pm UTC](https://meta.discourse.org/t/title-disappears-when-user-sets-it/160912/4 "2020-08-17T18:14:08Z")

</div>

hey, I was redirected from this topic:

> [@Badge-related titles disappear every day](https://meta.discourse.org/t/badge-related-titles-disappear-every-day/156913/5):
>
> Yes, there is a related bug report here: [Title disappears when user sets it - #2](https://meta.discourse.org/t/title-disappears-when-user-sets-it/160912/2). One of our engineers has been assigned to look into the issue, so there should be more information about the problem soon.

I still have this issue and from my observation this happens to all other badge related titles when date changes, while I’m not 100% sure about it.  
A user report this issue to me and here’s what I tested yesterday:

1. Set a default locale (English in my case but I got issue report from user in China/Language: Chinese)
2. Set a badge as title (I set title for 2 users)
3. The title shows though the day but today when I check both title disappeared.

Is there a way to verify that it’s related to date change other than changing pc timezone setting? I tried this but it does not work (title did not disappear) .

I appreciate any suggestions, thanks

---

<div class="post-metadata">

### Author: ![Yu\_Gong1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yu_gong1/32/98413_2.png) [@Yu\_Gong1](https://meta.discourse.org/u/Yu_Gong1)
#### Post date: [August 18, 2020, 6:45am UTC](https://meta.discourse.org/t/title-disappears-when-user-sets-it/160912/5 "2020-08-18T06:45:35Z")

</div>

i also got this report from a user. i could not reproduce it using my old way, that acctually is fixed ,but somehow the user managed to get its title removed :S

The user sed he will try to figure out the logic how he managed to do it.

---

<div class="post-metadata">

### Author: ![Yu\_Gong1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yu_gong1/32/98413_2.png) [@Yu\_Gong1](https://meta.discourse.org/u/Yu_Gong1)
#### Post date: [August 18, 2020, 8:41pm UTC](https://meta.discourse.org/t/title-disappears-when-user-sets-it/160912/6 "2020-08-18T20:41:04Z")

</div>

@HeyRR @gerhard OK THIS IS RANDOM 😃 It seems that the title gets removed always 20:00 meaning 8:00 PM at the evening Finland local time. GMT +3 .

Something happens at that time? Some Cron job?

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [August 18, 2020, 9:02pm UTC](https://meta.discourse.org/t/title-disappears-when-user-sets-it/160912/7 "2020-08-18T21:02:41Z")

</div>

Thanks to @HeyRR’s description I’ve identified the issue. It’s the `BadgeGrant` background job which doesn’t handle localized badge names.

[https://github.com/discourse/discourse/pull/10483](https://github.com/discourse/discourse/pull/10483)

I’m going to merge that tomorrow.

---

<div class="post-metadata">

### Author: ![HeyRR](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heyrr/32/192157_2.png) [@HeyRR](https://meta.discourse.org/u/HeyRR)
#### Post date: [August 20, 2020, 8:03pm UTC](https://meta.discourse.org/t/title-disappears-when-user-sets-it/160912/8 "2020-08-20T20:03:50Z")

</div>

Thanks, I can see the badge is still there after rerunning the `BadgeGrant` job.

However, it seems there’s another issue related to this `BadgeGrant` job. I used to manually bulk assign some badges(eg. give out first like or receive first like) to users who cannot get it automatically because such like is given or received in restricted category.

> [@Badges not being granted for restricted categories](https://meta.discourse.org/t/badges-not-being-granted-for-restricted-categories/68141):
>
> I have a strange behavior on my forum. Basic badges (such as first like, first emoji etc.) that should be grated to users are not granted. Only admin users are granted these badges, while normal users are not. So for example, I can login as a normal user, and like as many posts as I want, and use as many emoji’s as I like, but I still won’t see the “First Like” and “First Emoji” badges. Thing is, there are certain early users that successfully got these badges. But recently all new users won…

but when the `BadgeGrant` job was triggered, all users who get such badge from manually bulk assign will lose it.

My Tests:

1. Manually assign a default badge which a user cannot get it automatically due to restricted category issue but he/she meets the requirement. Badge will be removed after running `BadgeGrant`.

2. Create a customized badge with some SQL, e.g. grant this badge when user post new topic in a specific category. Manually assign this badge which a user cannot get it automatically due to restricted category issue but he/she meets the requirement. Badge will be removed after running `BadgeGrant`.

3. Create a customized badge, no SQL. Manually assign this badge which a user cannot get it automatically due to restricted category issue but he/she meets the requirement. Badge stays after running `BadgeGrant`.

I guess this is the correct behavior as all those manually granted users does not meet the SQL query and hence will be kicked out from candidate group. But if that’s the case then most discussion in below topic will make much less sense for forums which has very active restricted categories. Also, to my understand, short-term solution becomes impossible.

> [@Some common badge queries](https://meta.discourse.org/t/some-common-badge-queries-idea/31859):
>
> warning Enabling Badge SQL entails security and performance risks so it is not available by default. For more information, see: [Enable Badge SQL](https://meta.discourse.org/t/badge-sql-can-no-longer-be-edited-by-default/47894) Here are some common badge queries which you can use to create your own awesome badge! Grant a badge if user has created at least one topic in the “foo”\* category \*(“foo” is the category name, not the category slug) SELECT p.user\_id, min(p.created\_at) granted\_at, MIN(p.id) post\_id FROM badge\_posts p JOIN topics t ON t.id = p.topic\_id WHERE cate…

Any suggestion here? I can simply stop doing that but just curious if there’s a way to deal with it.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [August 22, 2020, 12:14am UTC](https://meta.discourse.org/t/title-disappears-when-user-sets-it/160912/9 "2020-08-22T00:14:24Z")

</div>

You can stop this by turning off the “Run revocation query daily” setting, but you may not be able to do that for built-in badges.

---

<div class="post-metadata">

### Author: ![Yu\_Gong1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yu_gong1/32/98413_2.png) [@Yu\_Gong1](https://meta.discourse.org/u/Yu_Gong1)
#### Post date: [August 23, 2020, 6:38pm UTC](https://meta.discourse.org/t/title-disappears-when-user-sets-it/160912/10 "2020-08-23T18:38:17Z")

</div>

Is this deployed to all services? We are still seeing this issue. [https://keskustelut.inderes.fi/](https://keskustelut.inderes.fi/)

EDIT: Oh i guess master is not automatically deployed to all discourse hosted services i guess. When it is supposed to be released?

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [August 23, 2020, 6:55pm UTC](https://meta.discourse.org/t/title-disappears-when-user-sets-it/160912/11 "2020-08-23T18:55:34Z")

</div>

Thanks for the reminder. I’m going to make sure your site gets deployed on Monday.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [August 24, 2020, 7:20pm UTC](https://meta.discourse.org/t/title-disappears-when-user-sets-it/160912/12 "2020-08-24T19:20:03Z")

</div>

@Yu_Gong1 Your site has been deployed today.

@HeyRR Feel free to create a #Contribute > Feature topic for a site setting to allow badges in private categories.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [August 24, 2020, 7:20pm UTC](https://meta.discourse.org/t/title-disappears-when-user-sets-it/160912/13 "2020-08-24T19:20:13Z")

</div>


