Support https://ntfy.sh (and self-hosted deployments) #184
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
orinoco/dump-things-server#184
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This would be useful to notifying a curator on, e.g., incoming submissions. The access control for the notifications can be left to the ntfy config. For dumpthings it would be sufficient to configure:
https://ntfy.sh/curation-alert)besides the config, this is just a single POST https://docs.ntfy.sh/#step-2-send-a-message
Here is an attractive use case that would be supported by this feature.
The server could be configured to post incoming records (in full) to a private notification channel. One or more subscribers for this channel could exist (processes running in different environments with different access to information -- this is the main difference to a "hook"-based system, where logic could live next to the service). A subscriber would check a record, and perform an action, if it understands it (ignore if not).
An example subscriber would be a publication record-enricher. It would look for publication records, and then act on a
doiproperty. It would fetch information from the DOI and enrich the record. Once done, it would submit the enriched record -- possibly into the same inbox (with curator permissions).With such an approach, a human curator would already see a machine-curated/enhanced record, and manual labor would be minimized.
And maybe as an additional argument: with ntfy, a receiver can be implemented with little to no overhead. Even a bash for-loop would be enough as a listener
https://docs.ntfy.sh/subscribe/api/#subscribe-as-json-stream
Another use case: watch for a particular property change. E.g.
XYZPerson.delegated_by[].ended_atto indicate an extension of a workplace relationship.