summaryrefslogtreecommitdiff
path: root/tooling/danger/product_intelligence.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tooling/danger/product_intelligence.rb')
-rw-r--r--tooling/danger/product_intelligence.rb26
1 files changed, 1 insertions, 25 deletions
diff --git a/tooling/danger/product_intelligence.rb b/tooling/danger/product_intelligence.rb
index 2c005b70de0..9eab611ec68 100644
--- a/tooling/danger/product_intelligence.rb
+++ b/tooling/danger/product_intelligence.rb
@@ -43,11 +43,7 @@ module Tooling
tracking_changed_files = all_changed_files & TRACKING_FILES
usage_data_changed_files = all_changed_files.grep(%r{(usage_data)})
- usage_data_changed_files + tracking_changed_files + metrics_changed_files + dictionary_changed_file + snowplow_changed_files
- end
-
- def need_dictionary_changes?
- required_dictionary_update_changed_files.any? && dictionary_changed_file.empty?
+ usage_data_changed_files + tracking_changed_files + metrics_changed_files + snowplow_changed_files
end
private
@@ -56,10 +52,6 @@ module Tooling
helper.all_changed_files
end
- def dictionary_changed_file
- all_changed_files.grep(%r{(doc/development/usage_ping/dictionary\.md)})
- end
-
def metrics_changed_files
all_changed_files.grep(%r{((ee/)?config/metrics/.*\.yml)})
end
@@ -84,22 +76,6 @@ module Tooling
matching_files?(file, extension: '.haml', pattern: %r{data: \{ track})
end
end
-
- def required_dictionary_update_changed_files
- dictionary_pattern = Regexp.union(
- 'key_path:',
- 'description:',
- 'product_section:',
- 'product_stage:',
- 'product_group:',
- 'status:',
- 'tier:'
- )
-
- metrics_changed_files.select do |file|
- matching_files?(file, extension: '.yml', pattern: dictionary_pattern)
- end
- end
end
end
end