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

Set include_subprojects in factories

Oliver Günther7673d3951514
diff --git a/spec/factories/query_factory.rb b/spec/factories/query_factory.rb
index 35b81959f14..e2ad6446398 100644
--- a/spec/factories/query_factory.rb
+++ b/spec/factories/query_factory.rb
@@ -30,6 +30,7 @@ FactoryBot.define do
factory :query do
project
user factory: :user
+ include_subprojects { true }
sequence(:name) { |n| "Query #{n}" }
factory :public_query do
diff --git a/spec_legacy/fixtures/queries.yml b/spec_legacy/fixtures/queries.yml
index 465e506de71..8abf181191a 100644
--- a/spec_legacy/fixtures/queries.yml
+++ b/spec_legacy/fixtures/queries.yml
@@ -31,6 +31,7 @@ queries_001:
id: 1
project_id: 1
public: true
+ include_subprojects: true
name: Multiple custom fields query
filters: |
---
@@ -53,6 +54,7 @@ queries_002:
id: 2
project_id: 1
public: false
+ include_subprojects: true
name: Private query for cookbook
filters: |
---
@@ -71,6 +73,7 @@ queries_003:
id: 3
project_id:
public: false
+ include_subprojects: true
name: Private query for all projects
filters: |
---
@@ -85,6 +88,7 @@ queries_004:
id: 4
project_id:
public: true
+ include_subprojects: true
name: Public query for all projects
filters: |
---
@@ -99,6 +103,7 @@ queries_005:
id: 5
project_id:
public: true
+ include_subprojects: true
name: Open issues by priority and type
filters: |
---
@@ -119,6 +124,7 @@ queries_006:
id: 6
project_id:
public: true
+ include_subprojects: true
name: Open issues grouped by type
filters: |
---
@@ -138,6 +144,7 @@ queries_007:
id: 7
project_id: 2
public: true
+ include_subprojects: true
name: Public query for project 2
filters: |
---
@@ -152,6 +159,7 @@ queries_008:
id: 8
project_id: 2
public: false
+ include_subprojects: true
name: Private query for project 2
filters: |
---
@@ -166,6 +174,7 @@ queries_009:
id: 9
project_id:
public: true
+ include_subprojects: true
name: Open issues grouped by list custom field
filters: |
---