Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

update work packages seeded

ulfertsb7105b8a88cd
diff --git a/config/locales/en.seeders.standard.yml b/config/locales/en.seeders.standard.yml
index 6ec584bde7a..e2cc033bdc1 100644
--- a/config/locales/en.seeders.standard.yml
+++ b/config/locales/en.seeders.standard.yml
@@ -114,50 +114,74 @@ en:
name: 'Basic board'
parent_child:
name: 'Work breakdown structure'
+ # For all dates, the reference is the monday of the current week
+ # So
+ # * start: 0 references Monday
+ # * start: 4 references Friday
+
work_packages:
- - start: 4
+ - start: -1
subject: Start of project
description:
status: default_status_closed
type: default_type_milestone
duration: 0
schedule_manually: false
- - start: 5
+ - start: 0
subject: Organize open source conference
description:
status: default_status_in_progress
type: default_type_phase
children:
- - start: 5
+ - start: 0
subject: Set date and location of conference
description: ''
status: default_status_in_progress
type: default_type_task
- duration: 16
+ children:
+ - start: 0
+ subject: Send invitation to speakers
+ description: ''
+ status: default_status_in_progress
+ type: default_type_task
+ duration: 1
+ - start: 0
+ subject: Contact sponsoring partners
+ description: ''
+ status: default_status_new
+ type: default_type_task
+ duration: 2
+ - start: 0
+ subject: Create sponsorship brochure and hand-outs
+ description: ''
+ status: default_status_new
+ type: default_type_task
+ duration: 4
+ duration: 4
schedule_manually: false
- - start: 22
- subject: Setup conference website
+ - start: 4
+ subject: Invite attendees to conference
description: ''
status: default_status_new
type: default_type_task
- duration: 35
+ duration: 1
relations:
- to: Set date and location of conference
type: follows
- :schedule_manually: false
- - start: 22
- subject: Invite attendees to conference
+ schedule_manually: false
+ - start: 4
+ subject: Setup conference website
description: ''
status: default_status_new
type: default_type_task
- duration: 16
+ duration: 11
relations:
- to: Set date and location of conference
type: follows
schedule_manually: false
- duration: 70
+ duration: 15
schedule_manually: true
- - start: 76
+ - start: 15
subject: Conference
description:
status: default_status_scheduled
@@ -167,20 +191,20 @@ en:
- to: Organize open source conference
type: follows
schedule_manually: false
- - start: 77
+ - start: 21
subject: Follow-up tasks
description:
status: default_status_to_be_scheduled
type: default_type_phase
children:
- - start: 77
+ - start: 21
subject: Upload presentations to website
description: ''
status: default_status_new
type: default_type_task
- duration: 16
+ duration: 10
schedule_manually: false
- - start: 77
+ - start: 31
subject: Party for conference supporters :-)
description: |-
* [ ] Beer
@@ -189,11 +213,11 @@ en:
* [ ] Even more beer
status: default_status_new
type: default_type_task
- duration: 0
+ duration: 1
schedule_manually: false
- duration: 16
+ duration: 11
schedule_manually: false
- - start: 94
+ - start: 32
subject: End of project
description:
status: default_status_new
diff --git a/spec/seeders/demo_data_seeder_spec.rb b/spec/seeders/demo_data_seeder_spec.rb
index 75c84627cc9..83d4dfcb295 100644
--- a/spec/seeders/demo_data_seeder_spec.rb
+++ b/spec/seeders/demo_data_seeder_spec.rb
@@ -39,7 +39,7 @@ describe RootSeeder,
expect(User.where(admin: true).count).to eq 1
expect(Project.count).to eq 2
- expect(WorkPackage.count).to eq 33
+ expect(WorkPackage.count).to eq 36
expect(Wiki.count).to eq 2
expect(Query.having_views.count).to eq 7
expect(View.where(type: 'work_packages_table').count).to eq 7