• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rero / rero-ils / 22664919338
92%

Build:
DEFAULT BRANCH: staging
Ran 04 Mar 2026 11:27AM UTC
Jobs 1
Files 608
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Mar 2026 10:15AM UTC coverage: 92.058% (-0.004%) from 92.062%
22664919338

push

github

PascalRepond
refactor(loans): simplify anonymisation to a single 12-month delay

Replace the 3-month/6-month two-tier mechanism with a single 12-month
delay for all patrons:

- remove RERO_ILS_ANONYMISATION_MIN_TIME_LIMIT; update MAX to 12 months
- simplify can_anonymize() and get_anonymized_candidates(): concluded
  loans older than 12 months are anonymised unconditionally
- remove keep_history=False immediate anonymisation trigger from the
  patron listener
- move patron history visibility to circulation_search_factory():
  patrons who opt out only see non-concluded loans; librarians see all
  loans up to 12 months regardless of patron preference
- add test_keep_history_loan_visibility covering patron/librarian search
  visibility and post-anonymisation exclusion for all users
- Closes #4042.

Co-Authored-by: Pascal Repond <pascal.repond@rero.ch>

13 of 14 new or added lines in 4 files covered. (92.86%)

27 existing lines in 8 files now uncovered.

23485 of 25511 relevant lines covered (92.06%)

0.92 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
94.32
0.21% rero_ils/modules/loans/api.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
80.0
-20.0% rero_ils/modules/entities/local_entities/jsonresolver.py
1
80.0
-20.0% rero_ils/modules/ill_requests/jsonresolver.py
1
80.0
-20.0% rero_ils/modules/patron_transaction_events/jsonresolver.py
1
80.0
-20.0% rero_ils/modules/stats_cfg/jsonresolver.py
2
80.0
-20.0% rero_ils/modules/vendors/jsonresolver.py
6
97.13
-0.36% rero_ils/modules/libraries/api.py
7
97.32
0.01% rero_ils/modules/documents/api.py
8
95.0
0.06% rero_ils/modules/acquisition/acq_order_lines/api.py
Jobs
ID Job ID Ran Files Coverage
1 22664919338.1 04 Mar 2026 11:27AM UTC 608
92.06
GitHub Action Run
Source Files on build 22664919338
  • Tree
  • List 608
  • Changed 23
  • Source Changed 18
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22664919338
  • ffe6a53b on github
  • Prev Build on staging (#22312867962)
  • Next Build on staging (#22667890562)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc