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

rero / rero-ils / 23888611000
92%

Build:
DEFAULT BRANCH: staging
Ran 02 Apr 2026 09:09AM UTC
Jobs 1
Files 609
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

02 Apr 2026 07:09AM UTC coverage: 91.876% (+0.05%) from 91.825%
23888611000

push

github

rerowep
feat(thumbnails): add cover image support with rero-invenio-thumbnails

* Add rero-invenio-thumbnails dependency for book cover retrieval
* Configure RERO_INVENIO_THUMBNAILS_FILES_DIR and RERO_INVENIO_THUMBNAILS_URL in config.py
* Remove legacy /cover/<isbn> endpoint and get_remote_cover helper

Template Filters:
* Add get_cover_art template filter for Jinja2 templates
  - Supports electronicLocator coverImage URLs
  - Falls back to ISBN-based thumbnail lookup
  - Handles multiple ISBNs in sorted order

Document Extensions:
* Add AddCoverUrlExtension for automatic cover URL injection
  - Automatically adds cover URLs on document create/commit
  - Checks for existing cover images to avoid duplicates
  - Configurable caching support

Tasks:
* Add add_cover_urls shared task for batch processing
  - Used by CLI command and can be called programmatically
  - Supports filtering by PIDs or processing all documents
  - Updates timestamp tracking for monitoring

Fixes:
* Replace deprecated datetime.utcnow() with arrow.utcnow() in stats conftest
* Add ES index refresh before destroy in test_migrations_cli to avoid flaky teardown
* marc.py: add MARC21 namespace to ElementMaker for valid XML output
* marc.py: fix off-by-one in SRU pagination (< → <=)
* marc.py: broaden PID regex to support non-numeric PIDs

Co-Authored-by: Peter Weber <peter.weber@rero.ch>

91 of 97 new or added lines in 9 files covered. (93.81%)

23694 of 25789 relevant lines covered (91.88%)

0.92 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
95.85
-1.47% rero_ils/modules/documents/api.py
2
83.33
5.39% rero_ils/modules/documents/tasks.py
Jobs
ID Job ID Ran Files Coverage
1 23888611000.1 02 Apr 2026 09:09AM UTC 609
91.88
GitHub Action Run
Source Files on build 23888611000
  • Tree
  • List 609
  • Changed 11
  • Source Changed 11
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23888611000
  • 27d84815 on github
  • Prev Build on staging (#23195483389)
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