app/services/hyrax/statistics/query_service.rb in hyrax-5.0.0.rc2 vs app/services/hyrax/statistics/query_service.rb in hyrax-5.0.0.rc3
- old
+ new
@@ -1,8 +1,14 @@
# 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
def find_by_date_created(start_datetime, end_datetime = nil)
return [] if start_datetime.blank? # no date just return nothing