SiteSetting.anonymous_posting min trust level has been deprecated

AI-generated summary

A deprecation notice has been reported by sunjam when configuring the Translator plugin on Discourse 3.2.0.beta3-dev. The notice states that SiteSetting.anonymous_posting_min_trust_level has been deprecated in favor of SiteSetting.anonymous_posting_allowed_groups and will be removed in Discourse 3.3. According to Arkshine, this is related to the changes coming to settings for giving access to features from trust levels to groups. JammyDodger assures that the notice is harmless and is part of the effort to move to more group-enabled style settings.

Seeing this warning a lot while configuring Translator plugin with Libretranslate and Multilingual on 3.2.0.beta3-dev

Message (2 copies reported)

Deprecation notice: `SiteSetting.anonymous_posting_min_trust_level` has been deprecated. Please use `SiteSetting.anonymous_posting_allowed_groups` instead. (removal in Discourse 3.3) 
At /var/www/discourse/lib/site_setting_extension.rb:156:in `public_send`

Backtrace

/var/www/discourse/lib/discourse.rb:1024:in `deprecate'
/var/www/discourse/lib/site_settings/deprecated_settings.rb:26:in `block (2 levels) in setup_deprecated_methods'
/var/www/discourse/lib/site_setting_extension.rb:156:in `public_send'
/var/www/discourse/lib/site_setting_extension.rb:156:in `block in client_settings_json_uncached'
/var/www/discourse/lib/site_setting_extension.rb:155:in `map'
/var/www/discourse/lib/site_setting_extension.rb:155:in `client_settings_json_uncached'
/var/www/discourse/lib/site_setting_extension.rb:147:in `block in client_settings_json'
/var/www/discourse/lib/cache.rb:89:in `fetch'
/var/www/discourse/lib/site_setting_extension.rb:146:in `client_settings_json'
/var/www/discourse/app/controllers/application_controller.rb:639:in `preload_anonymous_data'

This is related to this change :slight_smile:

It’s a deprecation notice and shouldn’t do any harm. As Arkshine says, it’s connected to the move over to more group-enabled style settings, so you will likely see more as that effort continues. :+1: