DEV: Remove site setting "diags" (#20481)

Added almost exactly 10 years ago (in a2cca2540e), I don't think they're useful anymore 😅
This commit is contained in:
Jarek Radosz 2023-03-01 11:31:57 +01:00 committed by GitHub
parent a0fb2f45a2
commit ddbe6cf3b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 9 deletions

View File

@ -78,8 +78,5 @@ export default {
value: "",
},
],
diags: {
last_message_processed: null,
},
},
};

View File

@ -6,7 +6,7 @@ class Admin::SiteSettingsController < Admin::AdminController
end
def index
render_json_dump(site_settings: SiteSetting.all_settings, diags: SiteSetting.diags)
render_json_dump(site_settings: SiteSetting.all_settings)
end
def update

View File

@ -323,7 +323,6 @@ module SiteSettingExtension
def process_message(message)
begin
@last_message_processed = message.global_id
MessageBus.on_connect.call(message.site_id)
refresh!
ensure
@ -331,10 +330,6 @@ module SiteSettingExtension
end
end
def diags
{ last_message_processed: @last_message_processed }
end
def process_id
@process_id ||= SecureRandom.uuid
end