Commit 384b36bc authored by Adam Hegyi's avatar Adam Hegyi

Enable similarity search feature flags by default

This change enables the following feature flags by default:

- analytics_similarity_search
- similarity_search
parent 40fff8cc
---
title: Order projects within the project dropdown by relevance in analytics features
merge_request: 38675
author:
type: changed
......@@ -17,7 +17,7 @@ class Analytics::CycleAnalyticsController < Analytics::ApplicationController
push_frontend_feature_flag(:value_stream_analytics_path_navigation, @group)
push_frontend_feature_flag(:value_stream_analytics_filter_bar, @group)
push_frontend_feature_flag(:value_stream_analytics_create_multiple_value_streams, @group)
push_frontend_feature_flag(:analytics_similarity_search, @group)
push_frontend_feature_flag(:analytics_similarity_search, @group, default_enabled: true)
end
private
......
......@@ -19,7 +19,7 @@ module Analytics
before_action -> {
push_frontend_feature_flag(:productivity_analytics_scatterplot_enabled, default_enabled: true)
push_frontend_feature_flag(:analytics_similarity_search, @group)
push_frontend_feature_flag(:analytics_similarity_search, @group, default_enabled: true)
}
before_action :validate_params, only: :show, if: -> { request.format.json? }
......
......@@ -19,7 +19,7 @@ class Groups::Analytics::ProductivityAnalyticsController < Groups::Analytics::Ap
}
before_action -> {
push_frontend_feature_flag(:productivity_analytics_scatterplot_enabled, default_enabled: true)
push_frontend_feature_flag(:analytics_similarity_search, @group)
push_frontend_feature_flag(:analytics_similarity_search, @group, default_enabled: true)
}
before_action :validate_params, only: :show, if: -> { request.format.json? }
......
......@@ -121,7 +121,7 @@ module API
# rubocop: disable CodeReuse/ActiveRecord
def handle_similarity_order(group, projects)
if params[:search].present? && Feature.enabled?(:similarity_search, group)
if params[:search].present? && Feature.enabled?(:similarity_search, group, default_enabled: true)
projects.sorted_by_similarity_desc(params[:search])
else
order_options = { name: :asc }
......
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