From 81558b3fac27cfabe2c5cb3bcaa66eb039c0eba2 Mon Sep 17 00:00:00 2001 From: tamsin johnson Date: Mon, 30 Oct 2023 15:50:07 -0700 Subject: [PATCH] deprecate `Statistics::QueryService` we now use a Statistics::ValkyrieQueryService by default everywhere, so this one should be deprecated for removal and not tested in valkyrie stacks. --- app/services/hyrax/statistics/query_service.rb | 6 ++++++ spec/services/hyrax/statistics/query_service_spec.rb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/services/hyrax/statistics/query_service.rb b/app/services/hyrax/statistics/query_service.rb index 9fd472b2f2..d712339607 100644 --- a/app/services/hyrax/statistics/query_service.rb +++ b/app/services/hyrax/statistics/query_service.rb @@ -1,7 +1,13 @@ # frozen_string_literal: true module Hyrax module Statistics + ## + # @deprecated for removal in 6.0.0 class QueryService + extend Deprecation + self.deprecation_horizon = 'hyrax version 6.0.0' + deprecation_deprecate :initialize + # query to find works created during the time range # @param [DateTime] start_datetime starting date time for range query # @param [DateTime] end_datetime ending date time for range query diff --git a/spec/services/hyrax/statistics/query_service_spec.rb b/spec/services/hyrax/statistics/query_service_spec.rb index 1ee1634fc3..bf2963ca46 100644 --- a/spec/services/hyrax/statistics/query_service_spec.rb +++ b/spec/services/hyrax/statistics/query_service_spec.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true -RSpec.describe Hyrax::Statistics::QueryService, :clean_repo do +RSpec.describe Hyrax::Statistics::QueryService, :clean_repo, :active_fedora do let(:service) { described_class.new } describe "#count" do