Commit 763b8433 authored by alinamihaila's avatar alinamihaila

Rename product analytics to product intelligence:

  - Update labels and group name in Dangerfile
  - Update CODEOWNERS group name
parent 2822095c
...@@ -250,10 +250,10 @@ Dangerfile @gl-quality/eng-prod ...@@ -250,10 +250,10 @@ Dangerfile @gl-quality/eng-prod
/ee/spec/lib/gitlab/code_owners/ @reprazent @kerrizor @garyh /ee/spec/lib/gitlab/code_owners/ @reprazent @kerrizor @garyh
/doc/user/project/code_owners.md @reprazent @kerrizor @garyh /doc/user/project/code_owners.md @reprazent @kerrizor @garyh
[Product Analytics] [Product Intelligence]
/ee/lib/gitlab/usage_data_counters/ @gitlab-org/growth/product_analytics/engineers /ee/lib/gitlab/usage_data_counters/ @gitlab-org/growth/product_intelligence/engineers
/ee/lib/ee/gitlab/usage_data.rb @gitlab-org/growth/product_analytics/engineers /ee/lib/ee/gitlab/usage_data.rb @gitlab-org/growth/product_intelligence/engineers
/lib/gitlab/grafana_embed_usage_data.rb @gitlab-org/growth/product_analytics/engineers /lib/gitlab/grafana_embed_usage_data.rb @gitlab-org/growth/product_intelligence/engineers
/lib/gitlab/usage_data.rb @gitlab-org/growth/product_analytics/engineers /lib/gitlab/usage_data.rb @gitlab-org/growth/product_intelligence/engineers
/lib/gitlab/cycle_analytics/usage_data.rb @gitlab-org/growth/product_analytics/engineers /lib/gitlab/cycle_analytics/usage_data.rb @gitlab-org/growth/product_intelligence/engineers
/lib/gitlab/usage_data_counters/ @gitlab-org/growth/product_analytics/engineers /lib/gitlab/usage_data_counters/ @gitlab-org/growth/product_intelligence/engineers
# frozen_string_literal: true # frozen_string_literal: true
PRODUCT_ANALYTICS_CHANGED_FILES_MESSAGE = <<~MSG CHANGED_FILES_MESSAGE = <<~MSG
For the following files, a review from the [Data team and Product Analytics team](https://gitlab.com/groups/gitlab-org/growth/product_analytics/engineers/-/group_members?with_inherited_permissions=exclude) is recommended For the following files, a review from the [Data team and Product Intelligence team](https://gitlab.com/groups/gitlab-org/growth/product_intelligence/engineers/-/group_members?with_inherited_permissions=exclude) is recommended
Please check the ~"product analytics" [guide](https://docs.gitlab.com/ee/development/product_analytics/usage_ping.html) and reach out to %<product_analytics_engineers_group>s group for a review. Please check the ~"product intelligence" [guide](https://docs.gitlab.com/ee/development/product_analytics/usage_ping.html) and reach out to %<engineers_group>s group for a review.
%<changed_files>s %<changed_files>s
...@@ -14,7 +14,7 @@ UPDATE_METRICS_DEFINITIONS_MESSAGE = <<~MSG ...@@ -14,7 +14,7 @@ UPDATE_METRICS_DEFINITIONS_MESSAGE = <<~MSG
MSG MSG
PRODUCT_ANALYTICS_ENGINEERS_GROUP = '@gitlab-org/growth/product_analytics/engineers' ENGINEERS_GROUP = '@gitlab-org/growth/product_intelligence/engineers'
tracking_files = [ tracking_files = [
'lib/gitlab/tracking.rb', 'lib/gitlab/tracking.rb',
...@@ -33,16 +33,16 @@ changed_files = (usage_data_changed_files + snowplow_events_changed_files) ...@@ -33,16 +33,16 @@ changed_files = (usage_data_changed_files + snowplow_events_changed_files)
if changed_files.any? if changed_files.any?
mention = if helper.draft_mr? mention = if helper.draft_mr?
"`#{PRODUCT_ANALYTICS_ENGINEERS_GROUP}`" "`#{ENGINEERS_GROUP}`"
else else
PRODUCT_ANALYTICS_ENGINEERS_GROUP ENGINEERS_GROUP
end end
warn format(PRODUCT_ANALYTICS_CHANGED_FILES_MESSAGE, changed_files: helper.markdown_list(changed_files), product_analytics_engineers_group: mention) warn format(CHANGED_FILES_MESSAGE, changed_files: helper.markdown_list(changed_files), engineers_group: mention)
warn format(UPDATE_METRICS_DEFINITIONS_MESSAGE) unless helper.changed_files(/usage_ping\.md/).any? warn format(UPDATE_METRICS_DEFINITIONS_MESSAGE) unless helper.changed_files(/usage_ping\.md/).any?
product_analytics_labels = ['product analytics'] labels = ['product intelligence']
product_analytics_labels << 'product analytics::review pending' unless helper.mr_has_labels?('product analytics::reviewed') labels << 'product intelligence::review pending' unless helper.mr_has_labels?('product intelligence::approved')
markdown(helper.prepare_labels_for_mr(product_analytics_labels)) markdown(helper.prepare_labels_for_mr(labels))
end end
...@@ -11,7 +11,7 @@ class GitlabDanger ...@@ -11,7 +11,7 @@ class GitlabDanger
karma karma
database database
commit_messages commit_messages
product_analytics product_intelligence
utility_css utility_css
pajamas pajamas
pipeline pipeline
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment