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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Allow for seeding card views
Wieland Lindenthal8da16bbe1f64
diff --git a/app/seeders/demo_data/query_builder.rb b/app/seeders/demo_data/query_builder.rbindex 2445940ad9c..ac446ead4a7 100644--- a/app/seeders/demo_data/query_builder.rb+++ b/app/seeders/demo_data/query_builder.rb@@ -66,6 +66,7 @@ module DemoDataset_sort_by! attrset_group_by! attrset_filters! attr+ set_display_representation! attrquery = Query.create! attr@@ -86,6 +87,10 @@ module DemoDataattr[:project] = project unless project.nil?end+ def set_display_representation!(attr)+ attr[:display_representation] = config[:display_representation] unless config[:display_representation].nil?+ end+def set_columns!(attr)attr[:column_names] = columns unless columns.empty?enddiff --git a/modules/bim_seeder/config/locales/en.seeders.bim.yml b/modules/bim_seeder/config/locales/en.seeders.bim.ymlindex 7f1b4e33e14..390429615a0 100644--- a/modules/bim_seeder/config/locales/en.seeders.bim.yml+++ b/modules/bim_seeder/config/locales/en.seeders.bim.yml@@ -1013,15 +1013,19 @@ en:- name: Issuesstatus: opentype: 'seeders.bim.default_type_issue'+ display_representation: card- name: Clashesstatus: opentype: 'seeders.bim.default_type_clash'+ display_representation: card- name: Requestsstatus: opentype: 'seeders.bim.default_type_request'+ display_representation: card- name: Remarksstatus: opentype: 'seeders.bim.default_type_remark'+ display_representation: card- name: Project planstatus: opentimeline: true