Adopt basic board seeding to new demo data.

pull/8714/head
Wieland Lindenthal 4 years ago
parent 3ac2f70c1f
commit a720a542b9
  1. 12
      app/seeders/demo_data/work_package_board_seeder.rb
  2. 2
      config/locales/en.seeders.standard.yml

@ -135,9 +135,9 @@ module DemoData
basic_query_work_packages basic_query_work_packages
end end
lists = [{ name: 'Today', wps: wps[0] }, lists = [{ name: 'Wish list', wps: wps[0] },
{ name: 'Tomorrow', wps: wps[1] }, { name: 'Short list', wps: wps[1] },
{ name: 'Later', wps: wps[2] }, { name: 'Prio list for today', wps: wps[2] },
{ name: 'Never', wps: wps[3] }] { name: 'Never', wps: wps[3] }]
lists.map do |list| lists.map do |list|
@ -176,9 +176,9 @@ module DemoData
def basic_query_work_packages def basic_query_work_packages
[ [
[WorkPackage.find_by(subject: 'Set date and location of conference').id, [WorkPackage.find_by(subject: 'Setup conference website').id,
WorkPackage.find_by(subject: 'Party for conference supporters :-)').id], WorkPackage.find_by(subject: 'Upload presentations to website').id],
[WorkPackage.find_by(subject: 'Setup conference website').id], [WorkPackage.find_by(subject: 'Set date and location of conference').id],
[WorkPackage.find_by(subject: 'Invite attendees to conference').id], [WorkPackage.find_by(subject: 'Invite attendees to conference').id],
[] []
] ]

@ -110,7 +110,7 @@ en:
kanban: kanban:
name: 'Kanban board' name: 'Kanban board'
basic: basic:
name: 'Task board' name: 'Basic board'
work_packages: work_packages:
- :start: 4 - :start: 4
:subject: Start of project :subject: Start of project

Loading…
Cancel
Save