Manual trigger to recalculate badges and trust level

AI-generated summary

The discussion revolves around a feature request for a manual trigger to recalculate badges and trust levels in Discourse. rahul286 highlights the need for this feature after migrating a large, long-standing bbPress forum to Discourse, where many users have accumulated significant contributions over five years. They suggest that users should be able to manually recalculate badges and trust levels, possibly through a command like /moc.pmactr.ytinummoc//:ptth :]1[. cpradio clarifies that a background process already exists to backfill badges when new ones are enabled, but the request seems to focus on trust levels. sam adds that the daily backfill process is global and may not be sufficient for immediate updates. The thread indicates a desire for more control over badge and trust level recalculations, especially in large communities.

We have moved a very old bbPress forum to Discourse and loving every bit of new forum. :smile:

We have thousands of users and posts. And many users have contributed a lot in past 5 years. (old forum was almost 5 year old)

It will be good if discourse adds a small feature (may be rake task) to recalculate badges based on past contribution. It might benefit:

  1. Sites moving to discourse from old platform
  2. Changes to Trust Level settings may trigger recalculation.

I hope other discourse users will find this useful.

Thanks.

1개의 μ’‹μ•„μš”

I’m confused. I thought this already existed as a sidekiq job… (called BadgeGrant)

2개의 μ’‹μ•„μš”

I think that calculate per action. Does not recalculate everything.

I know there is a process that backfills badges. So if a badge is added/enabled later on, when it runs, it will award that badge to all users who have the qualifications for it. So I’m fairly certain this one exists… But the trust level one is slightly different. You are likely running into the following bug which makes it difficult to obtain and potentially keep your trust level.

https://meta.discourse.org/t/tl3-posts-read-requirement-seems-to-be-miscalculating/19130

The daily backfill is global, it fills all the holes.

1개의 μ’‹μ•„μš”