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

rero / rero-ils / 23195483389
92%

Build:
DEFAULT BRANCH: staging
Ran 17 Mar 2026 02:19PM UTC
Jobs 1
Files 608
Run time 2min
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

17 Mar 2026 01:02PM UTC coverage: 91.825% (-0.2%) from 92.057%
23195483389

push

github

rerowep
feat(sru): enhance CQL search capabilities and performance

* SRU CQL Parser (cql_parser.py):
  - Add 4 new Dublin Core search indexes:
    - dc.note → note.label (MARC 500)
    - dc.tableofcontents → tableOfContents (MARC 505)
    - dc.abstract → summary.label (MARC 520)
    - dc.dissertation → dissertation.label (MARC 502)
  - Add ES_SORT_MODIFIERS for sort order mapping (ascending/descending)
  - Add ES_SORT_INDEX_MAPPINGS for sortable field mappings
  - Add SUPPORTED_RELATION_MODIFIERS and UNSUPPORTED_RELATION_MODIFIERS
  - Fix typos: SERVER_CHOISE → SERVER_CHOICE

* SRU Explain (explaine.py):
  - Add _ES_MAPPINGS_CACHE module-level dictionary for caching
  - Implement ES mappings caching in __init__ to avoid repeated file I/O
  - Fix unsafe open() call by using context manager

* SRU Views (views.py):
  - Add EXPLAIN_CACHE_MAX_AGE (3600s) and SEARCH_CACHE_MAX_AGE (60s) constants
  - Add hashlib import for cache key generation

* MARC 21 Serializer (marc.py):
  - Add authority control numbers ($0) to MARC 650__ and 655__ fields
  - Extract $ref from TOPIC and genreForm entities for authority links
  - Fix recordPosition element casing (RecordPosition → recordPosition)
  - Add <version>1.1</version> to echoedSearchRetrieveRequest (SRU 1.1 compliance)

* Tests (test_sru_rest.py):
  - Update echoedSearchRetrieveRequest assertion to include zs:version

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

292 of 377 new or added lines in 8 files covered. (77.45%)

5 existing lines in 3 files now uncovered.

23655 of 25761 relevant lines covered (91.82%)

0.92 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
92.8
-2.96% rero_ils/modules/documents/dojson/contrib/jsontodc/model.py
3
82.35
-17.65% rero_ils/modules/documents/loaders/marcxml.py
3
96.88
-3.13% rero_ils/modules/sru/explaine.py
31
85.11
-2.29% rero_ils/modules/sru/cql_parser.py
46
88.3
-6.05% rero_ils/modules/documents/dojson/contrib/jsontomarc21/model.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
88.3
-6.05% rero_ils/modules/documents/dojson/contrib/jsontomarc21/model.py
1
75.73
-0.97% rero_ils/modules/files/cli.py
3
92.8
-2.96% rero_ils/modules/documents/dojson/contrib/jsontodc/model.py
Jobs
ID Job ID Ran Files Coverage
1 23195483389.1 17 Mar 2026 02:19PM UTC 608
91.82
GitHub Action Run
Source Files on build 23195483389
  • Tree
  • List 608
  • Changed 10
  • Source Changed 9
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23195483389
  • 935f06d8 on github
  • Prev Build on staging (#23191090658)
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