From c146ae9e29a2a0dbeb01f3d16ab2ab007454be0e Mon Sep 17 00:00:00 2001 From: Henriette Dinger Date: Fri, 23 Aug 2019 14:28:17 +0200 Subject: [PATCH] Remove status "in development" from seed data to avoid error messages on status board --- app/seeders/standard_seeder/basic_data/status_seeder.rb | 1 - .../standard_seeder/basic_data/workflow_seeder.rb | 9 ++++----- .../app/seeders/bim_seeder/basic_data/status_seeder.rb | 1 - .../app/seeders/bim_seeder/basic_data/workflow_seeder.rb | 7 +++---- 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/app/seeders/standard_seeder/basic_data/status_seeder.rb b/app/seeders/standard_seeder/basic_data/status_seeder.rb index 2738d73ba8..f77acc789e 100644 --- a/app/seeders/standard_seeder/basic_data/status_seeder.rb +++ b/app/seeders/standard_seeder/basic_data/status_seeder.rb @@ -63,7 +63,6 @@ module StandardSeeder { name: I18n.t(:default_status_to_be_scheduled), color_id: colors[4], is_closed: false, is_default: false, position: 5 }, { name: I18n.t(:default_status_scheduled), color_id: colors[5], is_closed: false, is_default: false, position: 6 }, { name: I18n.t(:default_status_in_progress), color_id: colors[6], is_closed: false, is_default: false, position: 7 }, - { name: I18n.t(:default_status_in_development), color_id: colors[7], is_closed: false, is_default: false, position: 8 }, { name: I18n.t(:default_status_developed), color_id: colors[8], is_closed: false, is_default: false, position: 9 }, { name: I18n.t(:default_status_in_testing), color_id: colors[9], is_closed: false, is_default: false, position: 10 }, { name: I18n.t(:default_status_tested), color_id: colors[10], is_closed: false, is_default: false, position: 11 }, diff --git a/app/seeders/standard_seeder/basic_data/workflow_seeder.rb b/app/seeders/standard_seeder/basic_data/workflow_seeder.rb index 9a444ceb4f..8cbe407f37 100644 --- a/app/seeders/standard_seeder/basic_data/workflow_seeder.rb +++ b/app/seeders/standard_seeder/basic_data/workflow_seeder.rb @@ -42,7 +42,6 @@ module StandardSeeder to_be_scheduled = Status.find_by(name: I18n.t(:default_status_to_be_scheduled)) scheduled = Status.find_by(name: I18n.t(:default_status_scheduled)) in_progress = Status.find_by(name: I18n.t(:default_status_in_progress)) - in_development = Status.find_by(name: I18n.t(:default_status_in_development)) developed = Status.find_by(name: I18n.t(:default_status_developed)) in_testing = Status.find_by(name: I18n.t(:default_status_in_testing)) tested = Status.find_by(name: I18n.t(:default_status_tested)) @@ -55,10 +54,10 @@ module StandardSeeder types[I18n.t(:default_type_task)] => [new, in_progress, on_hold, rejected, closed], types[I18n.t(:default_type_milestone)] => [new, to_be_scheduled, scheduled, in_progress, on_hold, rejected, closed], types[I18n.t(:default_type_phase)] => [new, to_be_scheduled, scheduled, in_progress, on_hold, rejected, closed], - types[I18n.t(:default_type_feature)] => [new, in_specification, specified, in_development, developed, in_testing, tested, test_failed, on_hold, rejected, closed], - types[I18n.t(:default_type_epic)] => [new, in_specification, specified, in_development, developed, in_testing, tested, test_failed, on_hold, rejected, closed], - types[I18n.t(:default_type_user_story)] => [new, in_specification, specified, in_development, developed, in_testing, tested, test_failed, on_hold, rejected, closed], - types[I18n.t(:default_type_bug)] => [new, confirmed, in_development, developed, in_testing, tested, test_failed, on_hold, rejected, closed] + types[I18n.t(:default_type_feature)] => [new, in_specification, specified, in_progress, developed, in_testing, tested, test_failed, on_hold, rejected, closed], + types[I18n.t(:default_type_epic)] => [new, in_specification, specified, in_progress, developed, in_testing, tested, test_failed, on_hold, rejected, closed], + types[I18n.t(:default_type_user_story)] => [new, in_specification, specified, in_progress, developed, in_testing, tested, test_failed, on_hold, rejected, closed], + types[I18n.t(:default_type_bug)] => [new, confirmed, in_progress, developed, in_testing, tested, test_failed, on_hold, rejected, closed] } end diff --git a/modules/bim_seeder/app/seeders/bim_seeder/basic_data/status_seeder.rb b/modules/bim_seeder/app/seeders/bim_seeder/basic_data/status_seeder.rb index 131673e13c..6dd96ef56f 100644 --- a/modules/bim_seeder/app/seeders/bim_seeder/basic_data/status_seeder.rb +++ b/modules/bim_seeder/app/seeders/bim_seeder/basic_data/status_seeder.rb @@ -63,7 +63,6 @@ module BimSeeder { name: I18n.t(:default_status_to_be_scheduled), color_id: colors[4], is_closed: false, is_default: false, position: 5 }, { name: I18n.t(:default_status_scheduled), color_id: colors[5], is_closed: false, is_default: false, position: 6 }, { name: I18n.t(:default_status_in_progress), color_id: colors[6], is_closed: false, is_default: false, position: 7 }, - { name: I18n.t(:default_status_in_development), color_id: colors[7], is_closed: false, is_default: false, position: 8 }, { name: I18n.t(:default_status_developed), color_id: colors[8], is_closed: false, is_default: false, position: 9 }, { name: I18n.t(:default_status_in_testing), color_id: colors[9], is_closed: false, is_default: false, position: 10 }, { name: I18n.t(:default_status_tested), color_id: colors[10], is_closed: false, is_default: false, position: 11 }, diff --git a/modules/bim_seeder/app/seeders/bim_seeder/basic_data/workflow_seeder.rb b/modules/bim_seeder/app/seeders/bim_seeder/basic_data/workflow_seeder.rb index c9065431ff..14b0600e87 100644 --- a/modules/bim_seeder/app/seeders/bim_seeder/basic_data/workflow_seeder.rb +++ b/modules/bim_seeder/app/seeders/bim_seeder/basic_data/workflow_seeder.rb @@ -41,7 +41,6 @@ module BimSeeder to_be_scheduled = Status.find_by(name: I18n.t(:default_status_to_be_scheduled)) scheduled = Status.find_by(name: I18n.t(:default_status_scheduled)) in_progress = Status.find_by(name: I18n.t(:default_status_in_progress)) - in_development = Status.find_by(name: I18n.t(:default_status_in_development)) developed = Status.find_by(name: I18n.t(:default_status_developed)) in_testing = Status.find_by(name: I18n.t(:default_status_in_testing)) tested = Status.find_by(name: I18n.t(:default_status_tested)) @@ -54,9 +53,9 @@ module BimSeeder types[I18n.t(:default_type_task)] => [new, in_progress, on_hold, rejected, closed], types[I18n.t(:default_type_milestone)] => [new, to_be_scheduled, scheduled, in_progress, on_hold, rejected, closed], types[I18n.t(:default_type_phase)] => [new, to_be_scheduled, scheduled, in_progress, on_hold, rejected, closed], - types[I18n.t('seeders.bim.default_type_building_model')] => [new, in_specification, specified, in_development, developed, in_testing, tested, test_failed, on_hold, rejected, closed], - types[I18n.t('seeders.bim.default_type_defect')] => [new, in_specification, specified, in_development, developed, in_testing, tested, test_failed, on_hold, rejected, closed], - types[I18n.t('seeders.bim.default_type_approval')] => [new, in_specification, specified, in_development, developed, in_testing, tested, test_failed, on_hold, rejected, closed] + types[I18n.t('seeders.bim.default_type_building_model')] => [new, in_specification, specified, in_progress, developed, in_testing, tested, test_failed, on_hold, rejected, closed], + types[I18n.t('seeders.bim.default_type_defect')] => [new, in_specification, specified, in_progress, developed, in_testing, tested, test_failed, on_hold, rejected, closed], + types[I18n.t('seeders.bim.default_type_approval')] => [new, in_specification, specified, in_progress, developed, in_testing, tested, test_failed, on_hold, rejected, closed] } end