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

remove project_attributes alias for project_details scope

Ivan Kuchina222d638446d
diff --git a/app/models/activities/fetcher.rb b/app/models/activities/fetcher.rb
index 06efff3dccb..b3e1a65e00a 100644
--- a/app/models/activities/fetcher.rb
+++ b/app/models/activities/fetcher.rb
@@ -78,11 +78,7 @@ module Activities
when :default
OpenProject::Activity.default_event_types.to_a
else
- scope = Array(scope)
-
- scope << "project_details" if scope.delete("project_attributes")
-
- scope & event_types
+ Array(scope) & event_types
end
end
diff --git a/spec/models/activities/fetcher_integration_spec.rb b/spec/models/activities/fetcher_integration_spec.rb
index 425b81199f4..9528efdeb4d 100644
--- a/spec/models/activities/fetcher_integration_spec.rb
+++ b/spec/models/activities/fetcher_integration_spec.rb
@@ -119,15 +119,6 @@ RSpec.describe Activities::Fetcher, "integration" do
.to match_array(activities_of_types(Message, TimeEntry, Project))
end
end
-
- context "with scope of compatibility alias of project_attributes for project_details" do
- before { options[:scope] = %w[project_attributes] }
-
- it "finds only events matching the scope" do
- expect(event_journables)
- .to match_array(activities_of_types(Project))
- end
- end
end
context "for global activities" do