Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library newsletter notifications service #1

Open
ParthS007 opened this issue May 24, 2023 · 1 comment
Open

Library newsletter notifications service #1

ParthS007 opened this issue May 24, 2023 · 1 comment

Comments

@ParthS007
Copy link
Contributor

Aim:

Create custom hooks to run in specific time(e.g, in a week) and update the users subscribed to that notification for any new updates if any.

What is provided:

  1. Two types => Ebooks and Paper books

  2. Certain types and categories/subject for books and the queries for the subjects could be:

  3. ILS API - for example: https://catalogue.library.cern/api/literature/

Expected:

The task would be to create a query for every category/subject/types and populate a list of e books/paper books available and trigger the notifications via api with the payload from the query.

Expected use case:

Two possible use cases examples:

  1. We recently catalogued this book: https://catalogue.library.cern/backoffice/documents/b2f4x-gx545 with classification 530.145 and added the physical copy when the book arrived on 6 April 2023. Would it possible e.g. to alert the subscribers of our newsletter who work in EP/TH of the availability of the book?
  2. We recently added e-books on engineering/technology: https://catalogue.library.cern/search?q=_created%3A%5B2023-03-01%20TO%202023-03-31%5D%20AND%20%28subjects.value%3A62%2A%29%20AND%20publication_year%3A%5B2018%20TO%202023%5D&l=grid&order=asc&p=1&s=15&sort=bestmatch Would it be possible to alert e.g. subscribers who work in EN/TE?
@ParthS007 ParthS007 transferred this issue from cern-sis/issues May 24, 2023
@ParthS007
Copy link
Contributor Author

ParthS007 commented May 24, 2023

Steps

  • Setup Base CLI
  • Improve query generator
    • Add option for created, pub_year, pid, subject.values/scheme.
    • Have different methods for each
    • Make it work with single arguments
    • Make it work with multiple arguments of option like subjects and pid
  • Image and Kubernetes Job Setup
  • Final the response required for notification api payload
    • API: https://notifications.web.cern.ch/help#api
    • Check Allow scripts with the API Key to send notifications config.
    • Produce an example for IT subject with titles in notifications
    • Share it with Salome for feedback
    • For each query, have an example api call
    • Configure cronjob for each subject
    • Test on QA
    • Validate with Salome
    • Release on PROD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant