Sha256: 9a299f9531e940189cffc2384ce792b729fc957ade64a8aa0ccc24687b1b0384

Contents?: true

Size: 1.01 KB

Versions: 16

Compression:

Stored size: 1.01 KB

Contents

# frozen_string_literal: true

module Hyrax
  module Listeners
    ##
    # @deprecated transfer requests are now carried out synchronously during
    # object save
    #
    ## Listens for deposit events, and checks for proxy situations. When a user
    # deposits an item `on_behalf_of` another, ensures transfer is handled.
    class ProxyDepositListener
      ##
      # Called when 'object.deposited' event is published
      # @param [Dry::Events::Event] _event
      # @return [void]
      def on_object_deposited(_event)
        Deprecation.warn(
          "The ProxyDepositListener was deprecated, effective immediately, in \
          response to a difficult-to-diagnose race condition bug. This listener \
          is now a no-op. To retain functionality ensure that \
          DefaultMiddlewareStack is configured to use \
          Hyrax::Actors::TransferRequestActor. To quiet this deprecation remove any \
          local initializer configuration that subscribes this listener."
        )
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
hyrax-5.0.1 app/services/hyrax/listeners/proxy_deposit_listener.rb
hyrax-5.0.0 app/services/hyrax/listeners/proxy_deposit_listener.rb
hyrax-5.0.0.rc3 app/services/hyrax/listeners/proxy_deposit_listener.rb
hyrax-5.0.0.rc2 app/services/hyrax/listeners/proxy_deposit_listener.rb
hyrax-5.0.0.rc1 app/services/hyrax/listeners/proxy_deposit_listener.rb
hyrax-3.6.0 app/services/hyrax/listeners/proxy_deposit_listener.rb
hyrax-4.0.0 app/services/hyrax/listeners/proxy_deposit_listener.rb
hyrax-4.0.0.rc3 app/services/hyrax/listeners/proxy_deposit_listener.rb
hyrax-4.0.0.rc2 app/services/hyrax/listeners/proxy_deposit_listener.rb
hyrax-4.0.0.rc1 app/services/hyrax/listeners/proxy_deposit_listener.rb
hyrax-3.5.0 app/services/hyrax/listeners/proxy_deposit_listener.rb
hyrax-4.0.0.beta2 app/services/hyrax/listeners/proxy_deposit_listener.rb
hyrax-3.4.2 app/services/hyrax/listeners/proxy_deposit_listener.rb
hyrax-4.0.0.beta1 app/services/hyrax/listeners/proxy_deposit_listener.rb
hyrax-3.4.1 app/services/hyrax/listeners/proxy_deposit_listener.rb
hyrax-3.4.0 app/services/hyrax/listeners/proxy_deposit_listener.rb