From c874158bd749ad98ac64a7583bcdc0d4351c76c2 Mon Sep 17 00:00:00 2001 From: Seth Call Date: Sun, 15 Jun 2025 14:22:30 -0500 Subject: [PATCH] Fix diagnostic for GEAR_SELECTION --- web/app/assets/javascripts/wizard/gear_utils.js | 4 ++-- web/bin/start_mx | 1 + web/config/environments/development.rb | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100755 web/bin/start_mx diff --git a/web/app/assets/javascripts/wizard/gear_utils.js b/web/app/assets/javascripts/wizard/gear_utils.js index f96e24f69..01daabb5d 100644 --- a/web/app/assets/javascripts/wizard/gear_utils.js +++ b/web/app/assets/javascripts/wizard/gear_utils.js @@ -374,13 +374,13 @@ return profiles; } - gearUtils.postDiagnostic = function (operatingSystem, deviceInformation, selectedDeviceInfo, gearTest, frameBuffers, isAutomated) { + gearUtils.postDiagnostic = async function (operatingSystem, deviceInformation, selectedDeviceInfo, gearTest, frameBuffers, isAutomated) { rest.createDiagnostic({ type: 'GEAR_SELECTION', data: { client_type: context.JK.clientType(), client_id: context.JK.JamServer.clientID, - summary: gearUtils.ftueSummary(operatingSystem, deviceInformation, selectedDeviceInfo, gearTest, frameBuffers, isAutomated) + summary: await gearUtils.ftueSummary(operatingSystem, deviceInformation, selectedDeviceInfo, gearTest, frameBuffers, isAutomated) } }); } diff --git a/web/bin/start_mx b/web/bin/start_mx new file mode 100755 index 000000000..827253118 --- /dev/null +++ b/web/bin/start_mx @@ -0,0 +1 @@ +BUNDLE_GEMFILE=Gemfile.alt RAILS_ENV=development LOCAL_DEV=1 MODERN_OS=1 JAM_RUBY_VERSION=2.4.1 NO_WEBSOCKET_GATEWAY=1 bundle _1.17.3_ exec rails server -b 0.0.0.0 -p 3000 diff --git a/web/config/environments/development.rb b/web/config/environments/development.rb index 729cc059e..18846093d 100644 --- a/web/config/environments/development.rb +++ b/web/config/environments/development.rb @@ -113,6 +113,8 @@ SampleApp::Application.configure do config.root_redirect_on = false config.show_recording_debug_status = true + config.gear_check_ignore_high_latency = true + config.ftue_maximum_gear_latency = 200 config.video_conferencing_host = "http://localhost:3001" config.use_video_conferencing_server = true