|
|
|
@ -107,6 +107,7 @@ module DemoData |
|
|
|
|
def seed_basic_board |
|
|
|
|
board = ::Boards::Grid.new project: project |
|
|
|
|
board.name = project_data_for(key, 'boards.basic.name') |
|
|
|
|
board.options = { 'highlightingMode' => 'priority' } |
|
|
|
|
|
|
|
|
|
board.widgets = seed_basic_board_queries.each_with_index.map do |query, i| |
|
|
|
|
Grids::Widget.new start_row: 1, end_row: 2, |
|
|
|
@ -145,21 +146,19 @@ module DemoData |
|
|
|
|
|
|
|
|
|
def query_list_work_package_association |
|
|
|
|
wps = [ |
|
|
|
|
[WorkPackage.find_by(subject: 'Plan a hiking trip').id, |
|
|
|
|
WorkPackage.find_by(subject: 'Sow flowers').id, |
|
|
|
|
WorkPackage.find_by(subject: 'Cut the lawn').id, |
|
|
|
|
WorkPackage.find_by(subject: 'Cut trees').id], |
|
|
|
|
[WorkPackage.find_by(subject: 'Visit the fire department').id], |
|
|
|
|
[WorkPackage.find_by(subject: 'Visit the ocean').id, |
|
|
|
|
WorkPackage.find_by(subject: 'Learn how to dive').id], |
|
|
|
|
[WorkPackage.find_by(subject: 'Eat more bananas').id, |
|
|
|
|
WorkPackage.find_by(subject: 'Buy a parasol').id] |
|
|
|
|
[WorkPackage.find_by(subject: 'Create a new project').id, |
|
|
|
|
WorkPackage.find_by(subject: 'Edit a work package').id, |
|
|
|
|
WorkPackage.find_by(subject: 'Create work packages').id, |
|
|
|
|
WorkPackage.find_by(subject: 'Activate further modules').id], |
|
|
|
|
[WorkPackage.find_by(subject: 'Create a project plan').id], |
|
|
|
|
[WorkPackage.find_by(subject: 'Invite new team members').id], |
|
|
|
|
[WorkPackage.find_by(subject: 'Customize project overview page').id] |
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
[{ name: 'Green list', wps: wps[0] }, |
|
|
|
|
{ name: 'Red list', wps: wps[1] }, |
|
|
|
|
{ name: 'Blue list', wps: wps[2] }, |
|
|
|
|
{ name: 'Yellow list', wps: wps[3] }] |
|
|
|
|
[{ name: 'Today', wps: wps[0] }, |
|
|
|
|
{ name: 'Tomorrow', wps: wps[1] }, |
|
|
|
|
{ name: 'Later', wps: wps[2] }, |
|
|
|
|
{ name: 'Never', wps: wps[3] }] |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|