Skip to content

Commit 8bab981

Browse files
committed
move Agile::Backlogs to Backlogs
1 parent 87a0cc2 commit 8bab981

22 files changed

Lines changed: 28 additions & 28 deletions

File tree

modules/backlogs/app/components/backlogs/backlogs_component.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ See COPYRIGHT and LICENSE files for more details.
5353
head.with_actions do
5454
render Primer::Beta::Button.new(
5555
tag: :a,
56-
label: Agile::BacklogBucket.human_model_name,
56+
label: BacklogBucket.human_model_name,
5757
href: new_dialog_project_backlogs_backlog_buckets_path(project),
5858
data: {
5959
controller: "async-dialog",
6060
test_selector: "op-backlog-buckets--new-backlog-bucket-button"
6161
}
6262
) do |button|
6363
button.with_leading_visual_icon(icon: :plus)
64-
Agile::BacklogBucket.human_model_name
64+
BacklogBucket.human_model_name
6565
end
6666
end
6767
elsif allow_sprint_creation?(project)

modules/backlogs/app/contracts/backlog_buckets/base_contract.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class BacklogBuckets::BaseContract < ModelContract
3232
validate :user_authorized
3333

3434
def self.model
35-
Agile::BacklogBucket
35+
BacklogBucket
3636
end
3737

3838
attribute :name

modules/backlogs/app/controllers/backlogs/backlog_buckets_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class BacklogBucketsController < BaseController
3636
before_action :find_backlog_bucket, only: %i[edit_dialog update destroy]
3737

3838
def new_dialog
39-
backlog_bucket = Agile::BacklogBucket.new(project: @project)
39+
backlog_bucket = BacklogBucket.new(project: @project)
4040

4141
respond_with_dialog Backlogs::NewBacklogBucketDialogComponent.new(backlog_bucket:)
4242
end
@@ -104,7 +104,7 @@ def check_feature_flag
104104
end
105105

106106
def find_backlog_bucket
107-
@backlog_bucket = Agile::BacklogBucket.where(project: @project).find(params[:id])
107+
@backlog_bucket = BacklogBucket.where(project: @project).find(params[:id])
108108
end
109109

110110
def backlog_bucket_params

modules/backlogs/app/controllers/backlogs/backlog_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def split_view_base_route
6565

6666
def load_backlogs
6767
if OpenProject::FeatureDecisions.backlog_buckets_active?
68-
@backlog_buckets = Agile::BacklogBucket.for_project(@project)
68+
@backlog_buckets = BacklogBucket.for_project(@project)
6969
end
7070

7171
@sprints = Sprint.for_project(@project)

modules/backlogs/app/controllers/backlogs/inbox_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def load_work_package
9595
def replace_inbox_component_via_turbo_stream
9696
inbox_work_packages = WorkPackage.backlogs_inbox_for(project: @project)
9797
backlog_buckets = if OpenProject::FeatureDecisions.backlog_buckets_active?
98-
Agile::BacklogBucket.for_project(@project)
98+
BacklogBucket.for_project(@project)
9999
end
100100

101101
replace_via_turbo_stream(

modules/backlogs/app/controllers/backlogs/work_packages_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def moved_to_inbox
127127
)
128128
inbox_work_packages = WorkPackage.backlogs_inbox_for(project: @project)
129129
backlog_buckets = if OpenProject::FeatureDecisions.backlog_buckets_active?
130-
Agile::BacklogBucket.for_project(@project)
130+
BacklogBucket.for_project(@project)
131131
end
132132

133133
replace_via_turbo_stream(

modules/backlogs/app/models/backlog_bucket.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# See COPYRIGHT and LICENSE files for more details.
2929
#++
3030

31-
class Agile::BacklogBucket < ApplicationRecord
31+
class BacklogBucket < ApplicationRecord
3232
self.table_name = "backlog_buckets"
3333

3434
belongs_to :project

modules/backlogs/app/services/backlog_buckets/create_service.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030

3131
class BacklogBuckets::CreateService < BaseServices::Create
3232
def instance_class
33-
Agile::BacklogBucket
33+
BacklogBucket
3434
end
3535
end

modules/backlogs/app/services/backlog_buckets/update_service.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030

3131
class BacklogBuckets::UpdateService < BaseServices::Update
3232
def instance_class
33-
Agile::BacklogBucket
33+
BacklogBucket
3434
end
3535
end

modules/backlogs/lib/open_project/backlogs/patches/project_patch.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ module OpenProject::Backlogs::Patches::ProjectPatch
3434

3535
included do
3636
has_and_belongs_to_many :done_statuses, join_table: :done_statuses_for_project, class_name: "::Status"
37-
has_many :backlog_buckets, class_name: "Agile::BacklogBucket", dependent: :destroy
38-
has_many :sprints, class_name: "Sprint", dependent: :destroy
37+
has_many :sprints, dependent: :destroy
38+
has_many :backlog_buckets, dependent: :destroy
3939
end
4040

4141
def backlogs_enabled?

0 commit comments

Comments
 (0)