Skip to content

Draft: Outgoing COAR Notifications

Renaud Boyer requested to merge rboyer/swh-deposit:coar-notifications into master

Quick prototype for https://hedgedoc.softwareheritage.org/u4SE5rAKTGWmabO75tKHUg (https://gitlab.softwareheritage.org/product-management/core-platform/-/issues/3)

  • use https://github.com/antleaf/coar_notify_inbox to receive notifications
  • write 4 patterns
    • Accept (passed checks)
    • Reject (not passed checks)
    • IngestAction (loaded)
    • Failed (not loaded)
  • DepositNotification model to keep track of notifications (?)
  • use Deposit.__init__ to store previous state
  • use Deposit.save() to send notifications

Local COAR Inbox service to receive notifications

  # in compose.deposit.yml
  coar-notity-inbox:
    image: antleaf/notify_ldn_inbox:1.2
    command: notify_ldn_inbox -host=http://localhost -port=30800 -debug=true
    ports:
      - "30800:30800"
Edited by Renaud Boyer

Merge request reports

Loading