diff --git a/CHANGELOG.md b/CHANGELOG.md index be5863520..c26acddf4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,9 @@ New entries in this file should aim to provide a meaningful amount of informatio ### Added - Migrate Webpacker to Esbuild [PR#3320](https://github.com/ualbertalib/jupiter/pull/3320) +### Removed +- Remove fully enabled feature flags that have been enabled for years [PR#3375](https://github.com/ualbertalib/jupiter/pull/3375) + ### Chores - Update Bundler to v2.5.5 to match production [PR#3374](https://github.com/ualbertalib/jupiter/pull/3374) diff --git a/Gemfile.lock b/Gemfile.lock index 9b84143e7..1f3c71ef5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -162,7 +162,7 @@ GEM connection_pool (2.4.1) cork (0.3.0) colored2 (~> 3.1) - crack (0.4.6) + crack (1.0.0) bigdecimal rexml crass (1.0.6) @@ -386,7 +386,7 @@ GEM activesupport (>= 3.0.0) raabro (1.4.0) racc (1.7.3) - rack (2.2.8) + rack (2.2.8.1) rack-protection (3.1.0) rack (~> 2.2, >= 2.2.4) rack-test (2.1.0) @@ -460,7 +460,7 @@ GEM rack (>= 1.4) retriable (3.1.2) rexml (3.2.6) - rollbar (3.5.1) + rollbar (3.5.2) rouge (4.1.3) rsolr (2.5.0) builder (>= 2.1.2) @@ -509,14 +509,14 @@ GEM seed_dump (3.3.1) activerecord (>= 4) activesupport (>= 4) - selenium-webdriver (4.17.0) + selenium-webdriver (4.18.1) base64 (~> 0.2) rexml (~> 3.2, >= 3.2.5) rubyzip (>= 1.2.2, < 3.0) websocket (~> 1.0) shoulda-matchers (6.1.0) activesupport (>= 5.2.0) - sidekiq (7.2.1) + sidekiq (7.2.2) concurrent-ruby (< 2) connection_pool (>= 2.3.0) rack (>= 2.2.4) @@ -525,7 +525,7 @@ GEM fugit (~> 1.8) globalid (>= 1.0.1) sidekiq (>= 6) - sidekiq-unique-jobs (8.0.9) + sidekiq-unique-jobs (8.0.10) concurrent-ruby (~> 1.0, >= 1.0.5) sidekiq (>= 7.0.0, < 8.0.0) thor (>= 1.0, < 3.0) @@ -589,7 +589,7 @@ GEM activemodel (>= 6.0.0) bindex (>= 0.4.0) railties (>= 6.0.0) - webmock (3.20.0) + webmock (3.22.0) addressable (>= 2.8.0) crack (>= 0.3.2) hashdiff (>= 0.4.0, < 2.0.0) diff --git a/app/controllers/collections_controller.rb b/app/controllers/collections_controller.rb index 7ae36e1ac..2991e98e3 100644 --- a/app/controllers/collections_controller.rb +++ b/app/controllers/collections_controller.rb @@ -8,8 +8,7 @@ def show base_restriction_key: Item.solr_exporter_class.solr_name_for(:member_of_paths, role: :pathing), value: @collection.path, params:, - current_user:, - fulltext: Flipper.enabled?(:fulltext_search, current_user) + current_user: ) @results = search_query_index.results @search_models = search_query_index.search_models diff --git a/app/controllers/profile_controller.rb b/app/controllers/profile_controller.rb index 6d68f9c6d..41ff79aca 100644 --- a/app/controllers/profile_controller.rb +++ b/app/controllers/profile_controller.rb @@ -10,8 +10,7 @@ def index base_restriction_key: Item.solr_exporter_class.solr_name_for(:owner, role: :exact_match), value: @user.id, params:, - current_user: @user, - fulltext: Flipper.enabled?(:fulltext_search, current_user) + current_user: @user ) @results = search_query_index.results @search_models = search_query_index.search_models diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb index b5f06f549..57a872b17 100644 --- a/app/controllers/search_controller.rb +++ b/app/controllers/search_controller.rb @@ -19,8 +19,7 @@ def index search_query_index = UserSearchService.new( search_models: models, params:, - current_user:, - fulltext: Flipper.enabled?(:fulltext_search, current_user) + current_user: ) @results = search_query_index.results @search_models = search_query_index.search_models diff --git a/app/decorators/facets/default_facet_decorator.rb b/app/decorators/facets/default_facet_decorator.rb index 5c6ed3a17..a0d741a2b 100644 --- a/app/decorators/facets/default_facet_decorator.rb +++ b/app/decorators/facets/default_facet_decorator.rb @@ -29,11 +29,7 @@ def facet_search_link end def display - if Flipper.enabled?(:facet_badge_category_name) - "#{@category_name}: #{display_value}" - else - display_value - end + "#{@category_name}: #{display_value}" end def display_value diff --git a/app/models/jupiter_core/search.rb b/app/models/jupiter_core/search.rb index 42ef1fc3b..a016f034b 100644 --- a/app/models/jupiter_core/search.rb +++ b/app/models/jupiter_core/search.rb @@ -37,13 +37,7 @@ def self.faceted_search(q: '', facets: [], ranges: [], models: [], as: nil, full base_query << q if q.present? facets.each do |key, values| - if Flipper.enabled?(:or_facets) - fq << %Q(#{key}:\(#{values.collect { |value| "\"#{value}\"" }.join(' OR ')}\)) - else - values.each do |value| - fq << %Q(#{key}:"#{value}") - end - end + fq << %Q(#{key}:\(#{values.collect { |value| "\"#{value}\"" }.join(' OR ')}\)) end ranges.each do |key, value| fq << "#{key}:[#{value[:begin]} TO #{value[:end]}]" diff --git a/app/services/user_search_service.rb b/app/services/user_search_service.rb index f780e8f90..779705a16 100644 --- a/app/services/user_search_service.rb +++ b/app/services/user_search_service.rb @@ -6,8 +6,8 @@ class UserSearchService attr_reader :search_models, :invalid_date_range - def initialize(current_user:, params:, base_restriction_key: nil, value: nil, # rubocop:disable Metrics/ParameterLists - search_models: [Item, Thesis], fulltext: false) + def initialize(current_user:, params:, base_restriction_key: nil, value: nil, + search_models: [Item, Thesis]) if base_restriction_key.present? && value.blank? raise ArgumentError, 'Must supply both a base_restriction_key and a value' end @@ -18,7 +18,6 @@ def initialize(current_user:, params:, base_restriction_key: nil, value: nil, # @search_models = search_models @search_params = search_params(params) @current_user = current_user - @fulltext = fulltext end def results @@ -31,7 +30,7 @@ def results search_options = { q: query, models: search_models, as: @current_user, facets:, ranges: @search_params[:ranges], - fulltext: @fulltext } + fulltext: true } # Sort by relevance if a search term is present and no explicit sort field has been chosen sort_fields = @search_params[:sort] diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb index a9d5cc55b..280bd0012 100644 --- a/app/views/layouts/admin.html.erb +++ b/app/views/layouts/admin.html.erb @@ -23,11 +23,9 @@