Skip to content

Commit

Permalink
Merge pull request #6400 from samvera/deprecate-stats-query-service
Browse files Browse the repository at this point in the history
deprecate `Statistics::QueryService`
  • Loading branch information
dlpierce authored Oct 31, 2023
2 parents 1000c8b + 81558b3 commit cd3651a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/services/hyrax/statistics/query_service.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/services/hyrax/statistics/query_service_spec.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit cd3651a

Please sign in to comment.