Class: Hyrax::Listeners::ProxyDepositListener Deprecated

Inherits:
Object
  • Object
show all
Defined in:
app/services/hyrax/listeners/proxy_deposit_listener.rb

Overview

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.

Instance Method Summary collapse

Instance Method Details

#on_object_deposited(_event) ⇒ void

This method returns an undefined value.

Called when ‘object.deposited’ event is published

Parameters:

  • _event (Dry::Events::Event)


16
17
18
19
20
21
22
23
24
25
# File 'app/services/hyrax/listeners/proxy_deposit_listener.rb', line 16

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