-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PHRAS-4078_ExpiringRight-to-core (#4526)
* wip do not merge * fix event EXPORT_CREATE for basket download * fix bad conf (not a worker) * fix bad table name
- Loading branch information
Showing
8 changed files
with
1,141 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -489,3 +489,42 @@ translator: | |
# end of job : change coll status | ||
set_status: 10xxxx | ||
set_collection: online | ||
expiring-rights: | ||
version: 3 | ||
jobs: | ||
# "I want to alert owners that records have expired" | ||
- rights-expired-owners: | ||
active: false | ||
target: "owners" | ||
databox: "db_with_rights" | ||
collection: [ "Promo", "Selections" ] | ||
expire_field: ExpireDate | ||
prior_notice: -60 | ||
set_status: 01xxxx | ||
alerts: | ||
- method: webhook | ||
recipient: ["[email protected]", "[email protected]"] | ||
|
||
# "I want to alert users who have downloaded that a document rights will expire in 60 days" | ||
- rights-60-downloaders: | ||
active: false | ||
target: "downloaders" | ||
databox: "db_with_rights" | ||
collection: [ "Promo", "Selections" ] | ||
downloaded: [ "document", "preview" ] | ||
expire_field: "ExpirationDate" | ||
prior_notice: -60 | ||
alerts: | ||
- method: "webhook" | ||
|
||
# "I want to alert users who have downloaded that a document rights has expired" | ||
- rights-expired-dowloaders: | ||
active: false | ||
target: "downloaders" | ||
databox: "db_with_rights" | ||
collection: [ "Promo", "Selections" ] | ||
downloaded: [ "document", "preview" ] | ||
expire_field: "ExpirationDate" | ||
prior_notice: 0 | ||
alerts: | ||
- method: "webhook" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.