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

Merge branch 'dev' into feature/feature-flag-module-storages-active

Christophe Bliarda60605e76d26
diff --cc modules/storages/config/routes.rb
index 7d70368cbde,7ad3e2353f1..b63c12799f0
--- a/modules/storages/config/routes.rb
+++ b/modules/storages/config/routes.rb
@@@ -1,8 -1,34 +1,36 @@@
+ #-- copyright
+ # OpenProject is an open source project management software.
+ # Copyright (C) 2012-2022 the OpenProject GmbH
+ #
+ # This program is free software; you can redistribute it and/or
+ # modify it under the terms of the GNU General Public License version 3.
+ #
+ # OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
+ # Copyright (C) 2006-2013 Jean-Philippe Lang
+ # Copyright (C) 2010-2013 the ChiliProject Team
+ #
+ # This program is free software; you can redistribute it and/or
+ # modify it under the terms of the GNU General Public License
+ # as published by the Free Software Foundation; either version 2
+ # of the License, or (at your option) any later version.
+ #
+ # This program is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ # GNU General Public License for more details.
+ #
+ # You should have received a copy of the GNU General Public License
+ # along with this program; if not, write to the Free Software
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ #
+ # See COPYRIGHT and LICENSE files for more details.
+ #++
+
OpenProject::Application.routes.draw do
- scope 'admin/settings' do
- resources :storages, controller: 'storages/admin/storages'
+ namespace :admin do
+ namespace :settings do
+ resources :storages, controller: '/storages/admin/storages'
+ end
end
scope 'projects/:project_id', as: 'project' do
diff --cc modules/storages/spec/requests/api/v3/work_packages/work_packages_linked_filter_spec.rb
index 5aaeeec501b,c496d5a2f9f..42c9d60010c
--- a/modules/storages/spec/requests/api/v3/work_packages/work_packages_linked_filter_spec.rb
+++ b/modules/storages/spec/requests/api/v3/work_packages/work_packages_linked_filter_spec.rb
@@@ -140,7 -137,13 +140,15 @@@ describe 'API v3 work packages resourc
end
end
+ include_examples 'filter unavailable when storages module is inactive'
++
+ context 'if using signaling' do
+ let(:path) { api_v3_paths.path_for :work_packages, select: 'total,count,_type,elements/*', filters: filters }
+
+ it_behaves_like 'API V3 collection response', 2, 2, 'WorkPackage', 'WorkPackageCollection' do
+ let(:elements) { [work_package1, work_package3] }
+ end
+ end
end
context 'with single filter for storage id' do