|
|
|
@ -89,9 +89,12 @@ module DemoData |
|
|
|
|
|
|
|
|
|
statuses.to_a.map do |status| |
|
|
|
|
Query.new_default(project: project, user: admin).tap do |query| |
|
|
|
|
# Hide the query |
|
|
|
|
# Hide the query in the main menu |
|
|
|
|
query.hidden = true |
|
|
|
|
|
|
|
|
|
# Make it public so that new members can see it too |
|
|
|
|
query.is_public = true |
|
|
|
|
|
|
|
|
|
query.name = status.name |
|
|
|
|
# Set filter by this status |
|
|
|
|
query.add_filter('status_id', '=', [status.id]) |
|
|
|
@ -139,8 +142,12 @@ module DemoData |
|
|
|
|
|
|
|
|
|
lists.map do |list| |
|
|
|
|
Query.new(project: project, user: admin).tap do |query| |
|
|
|
|
# Hide the query |
|
|
|
|
# Hide the query in the main menu |
|
|
|
|
query.hidden = true |
|
|
|
|
|
|
|
|
|
# Make it public so that new members can see it too |
|
|
|
|
query.is_public = true |
|
|
|
|
|
|
|
|
|
query.name = list[:name] |
|
|
|
|
|
|
|
|
|
# Set manual sort filter |
|
|
|
|