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 unused file_added notified_event setting

ulfertseefaad00c10e
diff --git a/config/locales/en.yml b/config/locales/en.yml
index b1adc804bc1..cfb1d58a62e 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1562,7 +1562,6 @@ en:
label_feeds_access_key: "RSS access key"
label_feeds_access_key_created_on: "RSS access key created %{value} ago"
label_feeds_access_key_type: "RSS"
- label_file_added: "File added"
label_file_plural: "Files"
label_filter_add: "Add filter"
label_filter_plural: "Filters"
diff --git a/config/settings.yml b/config/settings.yml
index ce6f2790faf..7cb8c602a7e 100644
--- a/config/settings.yml
+++ b/config/settings.yml
@@ -238,7 +238,6 @@ notified_events:
default:
- news_added
- news_comment_added
- - file_added
- message_posted
- wiki_content_added
- wiki_content_updated
diff --git a/lib/open_project/notifiable.rb b/lib/open_project/notifiable.rb
index 3d40e3a2b29..9e29693f999 100644
--- a/lib/open_project/notifiable.rb
+++ b/lib/open_project/notifiable.rb
@@ -32,7 +32,6 @@ module OpenProject
NOTIFIABLE = [
%w(news_added),
%w(news_comment_added),
- %w(file_added),
%w(message_posted),
%w(wiki_content_added),
%w(wiki_content_updated),
diff --git a/spec/lib/open_project/notifiable_spec.rb b/spec/lib/open_project/notifiable_spec.rb
index e0e56dbee76..b95b261c646 100644
--- a/spec/lib/open_project/notifiable_spec.rb
+++ b/spec/lib/open_project/notifiable_spec.rb
@@ -32,7 +32,7 @@ require 'spec_helper'
describe OpenProject::Notifiable do
describe '#all' do
it 'matches expected list' do
- %w(news_added news_comment_added file_added message_posted wiki_content_added
+ %w(news_added news_comment_added message_posted wiki_content_added
wiki_content_updated membership_added membership_updated).each do |expected|
expect(described_class.all.map(&:name))
.to include(expected)