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 remote-tracking branch 'origin/dev' into rails-7.2

ulferts7bca8c404e21
diff --cc Gemfile.lock
index 42f3fb80d4d,81cbdc6a170..0cc272c70dd
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@@ -286,11 -291,13 +286,13 @@@ GE
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
+ active_record_doctor (1.15.0)
+ activerecord (>= 4.2.0)
- activejob (7.1.5.1)
- activesupport (= 7.1.5.1)
+ activejob (7.2.2.1)
+ activesupport (= 7.2.2.1)
globalid (>= 0.3.6)
- activemodel (7.1.5.1)
- activesupport (= 7.1.5.1)
+ activemodel (7.2.2.1)
+ activesupport (= 7.2.2.1)
activemodel-serializers-xml (1.0.3)
activemodel (>= 5.0.0.a)
activesupport (>= 5.0.0.a)
@@@ -1262,9 -1269,10 +1264,10 @@@ PLATFORM
DEPENDENCIES
actionpack-xml_parser (~> 2.0.0)
+ active_record_doctor (~> 1.15.0)
activemodel-serializers-xml (~> 1.0.1)
activerecord-import (~> 2.1.0)
- activerecord-nulldb-adapter (~> 1.1.0)
+ activerecord-nulldb-adapter (~> 1.1.1)
activerecord-session_store (~> 2.1.0)
acts_as_list (~> 1.2.0)
acts_as_tree (~> 2.9.0)
@@@ -1474,17 -1482,18 +1477,18 @@@
CHECKSUMS
Ascii85 (2.0.1) sha256=15cb5d941808543cbb9e7e6aea3c8ec3877f154c3461e8b3673e97f7ecedbe5a
- actioncable (7.1.5.1) sha256=764637b5b2d97b94e412d562c177bfd16b0fd769d55c98846362f5263e8aaa0d
- actionmailbox (7.1.5.1) sha256=c3c20589fe43e6fa88bba2d76a6f9805ffdd02531f4a9a4af8197d59f5a5360a
- actionmailer (7.1.5.1) sha256=b213d6d880b23b093ccfef3b4f87a3d27e4666442f71b5b634b2d19e19a49759
- actionpack (7.1.5.1) sha256=2bc263d9f43f16cc3b3360f59659ab11f140577602f371f1a968e2672b38d718
+ actioncable (7.2.2.1) sha256=5b3b885075a80767d63cbf2b586cbf82466a241675b7985233f957abb01bffb4
+ actionmailbox (7.2.2.1) sha256=896a47c2520f4507c75dde67c6ea1f5eec3a041fe7bfbf3568c4e0149a080e25
+ actionmailer (7.2.2.1) sha256=b02ae523c32c8ad762d4db941e76f3c108c106030132247ee7a7b8c86bc7b21f
+ actionpack (7.2.2.1) sha256=17b2160a7bcbd5a569d06b1ae54a4bb5ccc7ba0815d73ff5768100a79dc1f734
actionpack-xml_parser (2.0.1) sha256=40cb461ee99445314ab580a783fb7413580deb8b28113c9e70ecd7c1b334d5e6
- actiontext (7.1.5.1) sha256=b8e261cfad5bc6a78b3f15be5e7c7f32190041b3dc6f027a3a353b4392d2f7ec
- actionview (7.1.5.1) sha256=8c559a213501798e29b50b5341a643a70bbf6fa0aa2abaf571d0efc59dc4f6aa
+ actiontext (7.2.2.1) sha256=f369cee41a6674b697bf9257d917a3dce575a2c89935af437b432d6737a3f0d6
+ actionview (7.2.2.1) sha256=69fc880cf3d8b1baf21b048cf7bb68f1eef08760ff8104d7d60a6a1be8b359a5
+ active_record_doctor (1.15.0) sha256=614a49e259a679d17cbc62dead9217acaf7191a371115606132473123b426b13
- activejob (7.1.5.1) sha256=7633376c857f4c491d06b5a7f5d86d9f07afc595398354a3f1abe80eb7e35767
- activemodel (7.1.5.1) sha256=74727466854a7fbdfe8f2702ca3112b23877500d4926bf7e02e921ad542191f1
+ activejob (7.2.2.1) sha256=f2f95a8573b394aa4f7c24843f0c4a6065c073a5c64d6f15ecd98d98c2c23e5b
+ activemodel (7.2.2.1) sha256=8398861f9ee2c4671a8357ab39e9b38a045fd656f6685a3dd5890c2419dbfdaf
activemodel-serializers-xml (1.0.3) sha256=fa1b16305e7254cc58a59c68833e3c0a593a59c8ab95d3be5aaea7cd9416c397
- activerecord (7.1.5.1) sha256=f40ad1609bf33b9ba5bdc4e16d80a77b1517153234ceb413d31d635d7b91f1e3
+ activerecord (7.2.2.1) sha256=79a31f71c32d5138717c2104e0ff105f5d82922247c85bdca144f2720e67fab9
activerecord-import (2.1.0) sha256=7b1bc586c4b636e125c18f533c9ac4421dd2dbac8f4865dbf576382a338c2c94
activerecord-nulldb-adapter (1.1.1) sha256=034c91106183b954b072fba14c2786adf1a2b9e852ce04f85f823afaf03e9820
activerecord-session_store (2.1.0) sha256=f8453b1d618d0c8744683f0808fda4c01c9a93508301316299dd1b9756662374
diff --cc modules/storages/app/models/storages/storage.rb
index b3087984e7d,be1a3195856..b5aec404434
--- a/modules/storages/app/models/storages/storage.rb
+++ b/modules/storages/app/models/storages/storage.rb
@@@ -85,7 -88,9 +88,9 @@@ module Storage
scope :in_project, ->(project_id) { joins(project_storages: :project).where(project_storages: { project_id: }) }
+ scope :with_audience, ->(audience) { where("provider_fields->>'storage_audience' = ?", audience) }
+
- enum health_status: {
+ enum :health_status, {
pending: "pending",
healthy: "healthy",
unhealthy: "unhealthy"
diff --cc spec/lib/deprecated_alias_spec.rb
index 9c116a977e9,9c116a977e9..d53a494f8d3
--- a/spec/lib/deprecated_alias_spec.rb
+++ b/spec/lib/deprecated_alias_spec.rb
@@@ -1,3 -1,3 +1,5 @@@
++# frozen_string_literal: true
++
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) the OpenProject GmbH
@@@ -47,15 -47,15 +49,23 @@@ RSpec.describe DeprecatedAlias d
MSG
end
++ let(:deprecation_instance) do
++ instance_double(ActiveSupport::Deprecation, warn: nil)
++ end
subject(:object) { clazz.new }
before do
-- expect(ActiveSupport::Deprecation).to receive(:warn)
-- .with(deprecation_warning, an_instance_of(Array))
++ allow(ActiveSupport::Deprecation)
++ .to receive(:new)
++ .and_return(deprecation_instance)
end
it "aliases the method" do
expect(object.special_key).to eq("happiness")
++
++ expect(deprecation_instance)
++ .to have_received(:warn)
++ .with(deprecation_warning, an_instance_of(Array))
end
end