From 2d54f0705b63dc0d03889d4bbee6ffed4b6aedde Mon Sep 17 00:00:00 2001 From: gabrielburnworth Date: Fri, 5 Apr 2024 15:38:59 -0700 Subject: [PATCH] remove undesired seeder eraser functions --- app/mutations/devices/seeders/genesis_one_seven.rb | 3 --- app/mutations/devices/seeders/genesis_one_six.rb | 3 --- app/mutations/devices/seeders/genesis_xl_one_seven.rb | 3 --- app/mutations/devices/seeders/genesis_xl_one_six.rb | 3 --- spec/controllers/api/devices/devices_controller_seed_spec.rb | 4 +--- 5 files changed, 1 insertion(+), 15 deletions(-) diff --git a/app/mutations/devices/seeders/genesis_one_seven.rb b/app/mutations/devices/seeders/genesis_one_seven.rb index 2502fd676..e791e7474 100644 --- a/app/mutations/devices/seeders/genesis_one_seven.rb +++ b/app/mutations/devices/seeders/genesis_one_seven.rb @@ -7,9 +7,6 @@ def settings_firmware .update!(firmware_hardware: FbosConfig::FARMDUINO_K17) end - def settings_change_firmware_config_defaults - end - def peripherals_rotary_tool add_peripheral(2, ToolNames::ROTARY_TOOL) end diff --git a/app/mutations/devices/seeders/genesis_one_six.rb b/app/mutations/devices/seeders/genesis_one_six.rb index de32b75b0..f33b0b319 100644 --- a/app/mutations/devices/seeders/genesis_one_six.rb +++ b/app/mutations/devices/seeders/genesis_one_six.rb @@ -7,9 +7,6 @@ def settings_firmware .update!(firmware_hardware: FbosConfig::FARMDUINO_K16) end - def settings_change_firmware_config_defaults - end - def peripherals_rotary_tool add_peripheral(2, ToolNames::ROTARY_TOOL) end diff --git a/app/mutations/devices/seeders/genesis_xl_one_seven.rb b/app/mutations/devices/seeders/genesis_xl_one_seven.rb index 9ff9cdfb7..1627580b3 100644 --- a/app/mutations/devices/seeders/genesis_xl_one_seven.rb +++ b/app/mutations/devices/seeders/genesis_xl_one_seven.rb @@ -7,9 +7,6 @@ def settings_firmware .update!(firmware_hardware: FbosConfig::FARMDUINO_K17) end - def settings_change_firmware_config_defaults - end - def settings_device_name device.update!(name: Names::GENESIS_XL) end diff --git a/app/mutations/devices/seeders/genesis_xl_one_six.rb b/app/mutations/devices/seeders/genesis_xl_one_six.rb index d2510f3e4..8376a22d4 100644 --- a/app/mutations/devices/seeders/genesis_xl_one_six.rb +++ b/app/mutations/devices/seeders/genesis_xl_one_six.rb @@ -7,9 +7,6 @@ def settings_firmware .update!(firmware_hardware: FbosConfig::FARMDUINO_K16) end - def settings_change_firmware_config_defaults - end - def settings_device_name device.update!(name: Names::GENESIS_XL) end diff --git a/spec/controllers/api/devices/devices_controller_seed_spec.rb b/spec/controllers/api/devices/devices_controller_seed_spec.rb index 22b32b30a..90914b07d 100644 --- a/spec/controllers/api/devices/devices_controller_seed_spec.rb +++ b/spec/controllers/api/devices/devices_controller_seed_spec.rb @@ -68,9 +68,7 @@ def settings_hide_sensors?(device) def settings_change_firmware_config_defaults?(device) c = device.firmware_config - return c.encoder_enabled_x != 0 && - c.encoder_enabled_y != 0 && - c.encoder_enabled_z != 0 + return c.movement_motor_current_x == 1646 end def settings_soil_height?(device)