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

notifications: add due soon date #2357

Merged
merged 1 commit into from Sep 2, 2021
Merged

notifications: add due soon date #2357

merged 1 commit into from Sep 2, 2021

Conversation

jma
Copy link
Contributor

@jma jma commented Sep 2, 2021

  • Adds a new due_soon_date property.
  • Computes the due soon loan from elasticsearch.
  • Creates a loan extension to put the new due soon property at each
    update.

Note: need to update the es mapping and do a mass correction for the loan ON_LOAN to update the due_soon_date.

Co-Authored-by: Johnny Mariéthoz Johnny.Mariethoz@rero.ch

Why are you opening this PR?

  • Which task/US does it implement?
  • Which issue does it fix?

Dependencies

My PR depends on the following rero-ils-ui's PR(s):

  • rero/rero-ils-ui#

How to test?

  • What command should I have to run to test your PR?
  • What should I test through the UI?

Code review check list

  • Commit message template compliance.
  • Commit message without typos.
  • File names.
  • Functions names.
  • Functions docstrings.
  • Unnecessary commited files?
  • Cypress tests successful?

@github-actions github-actions bot added f: circulation Concerns the circulation interface or backend f: notifications f: search labels Sep 2, 2021
@jma jma changed the title Maj fix due soon notifications: add due soon date Sep 2, 2021
rero_ils/modules/loans/api.py Outdated Show resolved Hide resolved
rero_ils/modules/loans/extensions.py Show resolved Hide resolved
* Adds a new `due_soon_date` property.
* Computes the due soon loan from elasticsearch.
* Creates a loan extension to put the new due soon property at each
  update.

Co-Authored-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>
@jma jma requested a review from zannkukai September 2, 2021 10:55
@jma jma marked this pull request as ready for review September 2, 2021 11:01
@iGormilhit iGormilhit added this to New in RERO ILS PRs via automation Sep 2, 2021
@iGormilhit iGormilhit moved this from New to Fix on production in RERO ILS PRs Sep 2, 2021
@iGormilhit iGormilhit added this to the v1.4.9 milestone Sep 2, 2021
Copy link

@iGormilhit iGormilhit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit message approved.

@jma jma merged commit 70f2bc8 into rero:dev Sep 2, 2021
RERO ILS PRs automation moved this from Fix on production to Closed PR Sep 2, 2021
@jma jma deleted the maj-fix-due-soon branch January 13, 2022 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f: circulation Concerns the circulation interface or backend f: search
Projects
No open projects
RERO ILS PRs
  
Closed PR
Development

Successfully merging this pull request may close these issues.

None yet

5 participants