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 release/13.0 into dev

ulferts6623a2b48b5e
diff --git a/config/initializers/menus.rb b/config/initializers/menus.rb
index 74b28188985..6d5a3d9bc8d 100644
--- a/config/initializers/menus.rb
+++ b/config/initializers/menus.rb
@@ -68,7 +68,7 @@ Redmine::MenuManager.map :top_menu do |menu|
OpenProject::Static::Links.help_link,
last: true,
caption: '',
- icon: 'icon-help op-app-help--icon',
+ icon: 'help op-app-help--icon',
html: { accesskey: OpenProject::AccessKeys.key_for(:help),
title: I18n.t('label_help'),
target: '_blank' }
diff --git a/docs/development/data-flow/README.md b/docs/development/data-flow/README.md
index 072a865ef12..bd2811fc3e2 100644
--- a/docs/development/data-flow/README.md
+++ b/docs/development/data-flow/README.md
@@ -1,4 +1,4 @@
-# Data flow and Usage
+# Data flow and usage
Regardless of the type of installation of OpenProject, the following diagram provides a high-level overview of through which systems data related to OpenProject is flowing.
diff --git a/docs/enterprise-guide/enterprise-cloud-guide/openproject-cloud-status/README.md b/docs/enterprise-guide/enterprise-cloud-guide/openproject-cloud-status/README.md
index 23b745e8809..90c36c7b6af 100644
--- a/docs/enterprise-guide/enterprise-cloud-guide/openproject-cloud-status/README.md
+++ b/docs/enterprise-guide/enterprise-cloud-guide/openproject-cloud-status/README.md
@@ -8,66 +8,4 @@ keywords: enterprise cloud, status, incidents
# OpenProject cloud status page
-On this page, we will report any outages and reports of degraded services for our Enterprise cloud edition customers.
-
-* * *
-
-## Current issues
-
-–
-
-* * *
-
-## Past incidents
-
-### June 25, 2020
-
-We are currently seeing elevated response times and degraded performance. We are investigating the issue.
-
-* * *
-
-### September 11, 2018
-
-(13:20 - 13:50 UTC) During the latest deployment of OpenProject 8.0. on our cloud infrastructure, a migration was added to rename a specific table used for the new application. This migration turned out to run through significantly longer.
-
-* * *
-
-### May 26 - 27th, 2018
-
-(7:30 UTC) Services operating normally, root cause is being worked at.
-
-(1:00 UTC) One of the Aurora databases in our PostgreSQL cluster failed in an autovacuum operation scheduled to execute at nights (UTC + 2). A failover to the reader database happened, but not all web workers of the OpenProject cloud services reconnected correctly, resulting in consistently dropped connections during that night.
-
-* * *
-
-### April 25th, 2018
-
-(8:15 UTC) OpenProject email notifciation service has been restored.
-
-(7:28 UTC) We are aware of degradede mail notifications on our OpenProject Enterprise cloud edition service due to a technical issue with our mail notification provider and are actively working on resolving it.
-
-* * *
-
-### April 20th, 2018
-
-(3:00 UTC) The OpenProject Enterprise cloud edition is currently not available in Russia since the IP address is being blocked in connection with blocking Telegram ([more information](https://www.bbc.com/news/technology-43797176)).
-
-(3:00 UTC) The OpenProject Enterprise cloud edition service is currently not available in Russia.
-
-* * *
-
-### April 16th, 2018
-
-(7:30 UTC) Services operating normally.
-
-(7:20 UTC) One of the Aurora databases in our PostgreSQL cluster denied new client connections, resulting in timeouts whenever new web workers were restarted (this is scheduled randomly after a few thousand requests). The instance however reported normal operation and in turn did not automatically failover by itself. Once the failing database was took out of the cluster and restarted, access returned to normal.
-
-(6:30 UTC) We're investigating page timeouts and incomplete responses returned to some of our cloud environment instances.
-
-* * *
-
-### March 14th, 2018
-
-(14:25 UTC) Services operating normally.
-
-(14:07 UTC) We're aware of occasional Gateway timeout responses from one of our load balancers.
+The following status page provides information about outages, maintenance announcements, and degraded services for our Enterprise cloud customers: https://status.openproject.com/
diff --git a/docs/release-notes/13-0-6/README.md b/docs/release-notes/13-0-6/README.md
new file mode 100644
index 00000000000..a85b9c9bcd6
--- /dev/null
+++ b/docs/release-notes/13-0-6/README.md
@@ -0,0 +1,19 @@
+---
+title: OpenProject 13.0.6
+sidebar_navigation:
+ title: 13.0.6
+release_version: 13.0.6
+release_date: 2023-10-13
+---
+
+# OpenProject 13.0.6
+
+Release date: 2023-10-13
+
+We released [OpenProject 13.0.6](https://community.openproject.com/versions/1937).
+The release contains several bug fixes and we recommend updating to the newest version.
+
+<!--more-->
+#### Bug fixes and changes
+
+- Fixed: Project storage members page can be accessed without a session. \[[#50519](https://community.openproject.com/wp/50519)\]
diff --git a/docs/release-notes/README.md b/docs/release-notes/README.md
index 9187cc30256..78523647d26 100644
--- a/docs/release-notes/README.md
+++ b/docs/release-notes/README.md
@@ -14,6 +14,13 @@ Stay up to date and get an overview of the new features included in the releases
<!--- New release notes are generated below. Do not remove comment. -->
<!--- RELEASE MARKER -->
+## 13.0.6
+
+Release date: 2023-10-13
+
+[Release Notes](13-0-6/)
+
+
## 13.0.5
Release date: 2023-10-10
diff --git a/docs/user-guide/work-packages/work-package-relations-hierarchies/README.md b/docs/user-guide/work-packages/work-package-relations-hierarchies/README.md
index fe6b70894c8..cdb4568f18c 100644
--- a/docs/user-guide/work-packages/work-package-relations-hierarchies/README.md
+++ b/docs/user-guide/work-packages/work-package-relations-hierarchies/README.md
@@ -35,11 +35,18 @@ Work package relations indicate that work packages address a similar topic or cr
You can select one of the following relations:
- **Related to** - This option adds a link from the work package A to work package B, so that project members can immediately see the connection, even if the work packages are not members of the same hierarchy.
-- **Duplicates / Duplicated by** - This option indicates that the work package A duplicates a work package B in one way or another, for example both address the same task. This can be useful if you have the same work package that needs to be a part of a closed and public projects at the same time. The connection in this case is only semantic, the changes you make in work package A will need to be adapted in work package B manually. However, this does not affect the status, so if you change the status of work package A the status of work package B will change automatically to the same.
+
+- **Duplicates / Duplicated by** - This option indicates that the work package B duplicates a work package A in one way or another, for example both address the same task. This can be useful if you have the same work package that needs to be a part of a closed and public projects at the same time. The connection in this case is only semantic, the changes you make in work package A will need to be adapted in work package B manually.
+
+ **Note**: some changes in statuses will de adjusted automatically for the duplicated work package. Specifically, if the status of a work package A is set to be "closed" (or set to any status that is defined to count as "closed" in the [system settings](../../../system-admin-guide/manage-work-packages/work-package-status/), for example "rejected" often counts as a "closed" status), the status of the work package B will change to "closed". Note that this is direction dependent. Only if the work package A is closed will the work package B be closed as well, not the other way around.
+
- **Blocks / Blocked by** - This option defines status change restrictions between two work packages. If you set a work package A to be blocking work package B, the status of work package B cannot be set to closed or resolved until the work package A is closed.
+
- **Precedes / Follows** - Defines a chronological relation between two work packages. For example, if you set a work package A to precede a work package B, the start date of B has to be at least a day after the finish date of A.
Please note: If work package B is in [manual scheduling mode](../../gantt-chart/scheduling/#manual-scheduling-mode), changing the finish date of work package A will have no effect on work package B.
+
- **Includes / Part of** - Defines if work package A includes or is part of work package B. This relation type can be used for example when you have a roll-out work package and work packages which should be shown as included without using hierarchical relationships. There is no additional effect.
+
- **Requires / Required by** - Defines if work package A requires or is required by work package B. There is no additional effect.
The selected relation status will be automatically displayed in the work package that you enter. For example if you select "Blocks" in the current work package A and specify work package B, work package B will automatically show that it is "Blocked by" A.
diff --git a/frontend/src/global_styles/common/header/app-help.sass b/frontend/src/global_styles/common/header/app-help.sass
index b18f0f9c524..57acde51d63 100644
--- a/frontend/src/global_styles/common/header/app-help.sass
+++ b/frontend/src/global_styles/common/header/app-help.sass
@@ -1,5 +1,6 @@
.op-app-help
- &--icon
+ // For the higher specificity we switch to this nested class notation
+ .op-app-help--icon
&::before
display: flex
justify-content: center
diff --git a/lib/redmine/menu_manager/top_menu/help_menu.rb b/lib/redmine/menu_manager/top_menu/help_menu.rb
index 4b088d72f44..3a8c4df6ff3 100644
--- a/lib/redmine/menu_manager/top_menu/help_menu.rb
+++ b/lib/redmine/menu_manager/top_menu/help_menu.rb
@@ -49,7 +49,7 @@ module Redmine::MenuManager::TopMenu::HelpMenu
title: I18n.t(:label_help),
class: 'op-app-menu--item-action',
aria: { haspopup: 'true' } do
- op_icon('icon-help op-app-help--icon')
+ spot_icon('help', size: '1_25', classnames: 'op-app-help--icon')
end
render_menu_dropdown(
diff --git a/modules/storages/app/controllers/storages/project_settings/project_storage_members_controller.rb b/modules/storages/app/controllers/storages/project_settings/project_storage_members_controller.rb
index 802d044d9d9..5ff4679e99c 100644
--- a/modules/storages/app/controllers/storages/project_settings/project_storage_members_controller.rb
+++ b/modules/storages/app/controllers/storages/project_settings/project_storage_members_controller.rb
@@ -29,7 +29,7 @@
# Purpose: Let OpenProject create folders per project automatically.
# This is recommended as it ensures that every team member always has the correct access permissions.
#
-class Storages::ProjectSettings::ProjectStorageMembersController < ApplicationController
+class Storages::ProjectSettings::ProjectStorageMembersController < Projects::SettingsController
include PaginationHelper
menu_item :settings_project_storages
@@ -61,6 +61,5 @@ class Storages::ProjectSettings::ProjectStorageMembersController < ApplicationCo
super(object_id)
@project_storage = @object
@storage = @project_storage.storage
- @project = @project_storage.project
end
end
diff --git a/modules/storages/spec/contracts/storages/project_storages/base_contract_spec.rb b/modules/storages/spec/contracts/storages/project_storages/base_contract_spec.rb
index 29d80e173bc..be48377404b 100644
--- a/modules/storages/spec/contracts/storages/project_storages/base_contract_spec.rb
+++ b/modules/storages/spec/contracts/storages/project_storages/base_contract_spec.rb
@@ -37,8 +37,8 @@ RSpec.describe Storages::ProjectStorages::BaseContract do
include_context 'ModelContract shared context'
let(:contract) { described_class.new(project_storage, build_stubbed(:admin)) }
- # Creator is not writable in BaseContract; just test base contract writable attributes
- let(:project_storage) { build(:project_storage) }
+ let(:storage) { build_stubbed(:nextcloud_storage) }
+ let(:project_storage) { build(:project_storage, storage:) }
context 'if the project folder mode is `inactive`' do
before do
diff --git a/modules/storages/spec/factories/storage_factory.rb b/modules/storages/spec/factories/storage_factory.rb
index 556e16494cf..06d534de83c 100644
--- a/modules/storages/spec/factories/storage_factory.rb
+++ b/modules/storages/spec/factories/storage_factory.rb
@@ -38,7 +38,10 @@ FactoryBot.define do
trait :with_oauth_client do
oauth_client { build(:oauth_client) }
end
- # rubocop:enable FactoryBot/FactoryAssociationWithStrategy
+
+ trait :as_generic do
+ provider_type { 'Storages::Storage' }
+ end
end
factory :nextcloud_storage,
diff --git a/modules/storages/spec/features/manage_project_storage_spec.rb b/modules/storages/spec/features/manage_project_storage_spec.rb
index 119b4bb704b..389cb456347 100644
--- a/modules/storages/spec/features/manage_project_storage_spec.rb
+++ b/modules/storages/spec/features/manage_project_storage_spec.rb
@@ -34,7 +34,9 @@ require_module_spec_helper
# Setup storages in Project -> Settings -> File Storages
# This tests assumes that a Storage has already been setup
# in the Admin section, tested by admin_storage_spec.rb.
-RSpec.describe 'Activation of storages in projects', :js, :webmock do
+RSpec.describe(
+ 'Activation of storages in projects', :js, :webmock
+) do
let(:user) { create(:user) }
# The first page is the Project -> Settings -> General page, so we need
# to provide the user with the edit_project permission in the role.
@@ -149,7 +151,6 @@ RSpec.describe 'Activation of storages in projects', :js, :webmock do
page.find('.icon.icon-edit').click
expect(page).to have_current_path edit_project_settings_project_storage_path(project_id: project,
id: Storages::ProjectStorage.last)
-
expect(page).to have_text('Edit the file storage to this project')
expect(page).not_to have_select('storages_project_storage_storage_id')
expect(page).to have_text(storage.name)
@@ -198,7 +199,8 @@ RSpec.describe 'Activation of storages in projects', :js, :webmock do
describe 'automatic project folder mode' do
context 'when the storage is not automatically managed' do
- let(:storage) { create(:nextcloud_storage, :as_not_automatically_managed) }
+ let(:oauth_application) { create(:oauth_application) }
+ let(:storage) { create(:nextcloud_storage, :as_not_automatically_managed, oauth_application:) }
let(:project_storage) { create(:project_storage, storage:, project:) }
it 'automatic option is not available' do
@@ -209,7 +211,8 @@ RSpec.describe 'Activation of storages in projects', :js, :webmock do
end
context 'when the storage is automatically managed' do
- let(:storage) { create(:nextcloud_storage, :as_automatically_managed) }
+ let(:oauth_application) { create(:oauth_application) }
+ let(:storage) { create(:nextcloud_storage, :as_automatically_managed, oauth_application:) }
let(:project_storage) { create(:project_storage, storage:, project:) }
it 'automatic option is available' do
diff --git a/modules/storages/spec/features/view_project_storage_members_spec.rb b/modules/storages/spec/features/view_project_storage_members_spec.rb
index 8f6b6d23632..8c63d60df1c 100644
--- a/modules/storages/spec/features/view_project_storage_members_spec.rb
+++ b/modules/storages/spec/features/view_project_storage_members_spec.rb
@@ -49,6 +49,13 @@ RSpec.describe 'Project storage members connection status view' do
connected_no_permissions_user])
end
+ it 'cannot be accessed without being logged in' do
+ visit project_settings_project_storage_members_path(project, project_storage_id: project_storage.id)
+
+ expect(page).to have_title('Sign in | OpenProject')
+ expect(page).not_to have_text('Members connection status')
+ end
+
it 'lists project members connection statuses' do
login_as user
diff --git a/modules/storages/spec/models/project_storage_spec.rb b/modules/storages/spec/models/project_storage_spec.rb
index 13c3e825234..4c78fbdad06 100644
--- a/modules/storages/spec/models/project_storage_spec.rb
+++ b/modules/storages/spec/models/project_storage_spec.rb
@@ -85,7 +85,7 @@ RSpec.describe Storages::ProjectStorage do
let(:project_storage) { build_stubbed(:project_storage, storage:) }
context 'when the storage is not a NextcloudStorage' do
- let(:storage) { build_stubbed(:storage) }
+ let(:storage) { build_stubbed(:storage, :as_generic) }
it "returns false" do
expect(project_storage.automatic_management_possible?).to be false
diff --git a/spec/features/work_packages/attachments/attachment_upload_spec.rb b/spec/features/work_packages/attachments/attachment_upload_spec.rb
index 5860a03c112..04aee2abc67 100644
--- a/spec/features/work_packages/attachments/attachment_upload_spec.rb
+++ b/spec/features/work_packages/attachments/attachment_upload_spec.rb
@@ -71,7 +71,7 @@ RSpec.describe 'Upload attachment to work package', :js, :with_cuprite do
field.submit_by_click
- expect(field.display_element).to have_selector('img')
+ expect(field.display_element).to have_css('img')
expect(field.display_element).to have_content('Some image caption')
end
@@ -147,8 +147,8 @@ RSpec.describe 'Upload attachment to work package', :js, :with_cuprite do
editor.wait_until_upload_progress_toaster_cleared
editor.in_editor do |_container, editable|
- expect(editable).to have_selector('img[src*="/api/v3/attachments/"]', wait: 20)
- expect(editable).not_to have_selector('.ck-upload-placeholder-loader')
+ expect(editable).to have_css('img[src*="/api/v3/attachments/"]', wait: 20)
+ expect(editable).not_to have_css('.ck-upload-placeholder-loader')
end
sleep 2 unless example.metadata[:with_cuprite]
@@ -162,7 +162,7 @@ RSpec.describe 'Upload attachment to work package', :js, :with_cuprite do
split_view = Pages::SplitWorkPackage.new(WorkPackage.last)
field = split_view.edit_field :description
- expect(field.display_element).to have_selector('img')
+ expect(field.display_element).to have_css('img')
wp = WorkPackage.last
expect(wp.subject).to eq('My subject')
@@ -215,8 +215,8 @@ RSpec.describe 'Upload attachment to work package', :js, :with_cuprite do
editor.wait_until_upload_progress_toaster_cleared
editor.in_editor do |_container, editable|
- expect(editable).to have_selector('img[src*="/api/v3/attachments/"]', wait: 20)
- expect(editable).not_to have_selector('.ck-upload-placeholder-loader')
+ expect(editable).to have_css('img[src*="/api/v3/attachments/"]', wait: 20)
+ expect(editable).not_to have_css('.ck-upload-placeholder-loader')
end
sleep 2 unless example.metadata[:with_cuprite]
@@ -228,7 +228,7 @@ RSpec.describe 'Upload attachment to work package', :js, :with_cuprite do
)
field = wp_page.edit_field :description
- expect(field.display_element).to have_selector('img')
+ expect(field.display_element).to have_css('img')
wp = WorkPackage.last
expect(wp.subject).to eq('My subject')
@@ -316,7 +316,10 @@ RSpec.describe 'Upload attachment to work package', :js, :with_cuprite do
expect(page).not_to have_test_selector('op-files-tab--file-list-item-title')
attachments.attach_file_on_input(image_fixture.path)
editor.wait_until_upload_progress_toaster_cleared
- expect(page).to have_test_selector('op-files-tab--file-list-item-title', text: 'image.png', wait: 5)
+ expect(page)
+ .to have_test_selector('op-files-tab--file-list-item-title',
+ text: 'image.png',
+ wait: 5)
# Drop zone should become hidden again
expect(container).not_to be_visible
@@ -326,7 +329,10 @@ RSpec.describe 'Upload attachment to work package', :js, :with_cuprite do
attachments.drag_and_drop_file(container, image_fixture.path)
editor.wait_until_upload_progress_toaster_cleared
expect(page)
- .to have_test_selector('op-files-tab--file-list-item-title', text: 'image.png', count: 2, wait: 5)
+ .to have_test_selector('op-files-tab--file-list-item-title',
+ text: 'image.png',
+ count: 2,
+ wait: 5)
# Drop zone should become hidden again
expect(container).not_to be_visible
@@ -340,7 +346,10 @@ RSpec.describe 'Upload attachment to work package', :js, :with_cuprite do
editor.wait_until_upload_progress_toaster_cleared
expect(page)
- .to have_test_selector('op-files-tab--file-list-item-title', text: 'image.png', count: 3, wait: 5)
+ .to have_test_selector('op-files-tab--file-list-item-title',
+ text: 'image.png',
+ count: 3,
+ wait: 5)
# Drop zone should become hidden again
expect(container).not_to be_visible
@@ -356,7 +365,10 @@ RSpec.describe 'Upload attachment to work package', :js, :with_cuprite do
editor.wait_until_upload_progress_toaster_cleared
expect(page)
- .to have_test_selector('op-files-tab--file-list-item-title', text: 'image.png', count: 3, wait: 5)
+ .to have_test_selector('op-files-tab--file-list-item-title',
+ text: 'image.png',
+ count: 3,
+ wait: 5)
# Drop zone should become hidden again
expect(container).not_to be_visible