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

rero / rero-ils / 28779774833
91%
staging: 91%

Build:
Build:
LAST BUILD BRANCH: rep-fa7
DEFAULT BRANCH: staging
Ran 07 Jul 2026 09:41AM UTC
Jobs 1
Files 612
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

06 Jul 2026 08:53AM UTC coverage: 91.33% (+0.007%) from 91.323%
28779774833

push

github

PascalRepond
fix(acquisition): allow cancelling the last non-received order line

Cancelling the last non-received line of a partially received order makes
the order fully received. The REST PUT calls the record's overridden
update() (which commits and reindexes), then invenio commits again and
re-runs extended_validation, which then saw the order as RECEIVED and
rejected it with "wrong status" -- even though the cancellation had
already persisted, leaving the line cancelled but surfacing an error.

Accept RECEIVED in extended_validation when the line is being cancelled:
a cancellation is always valid, and the update permission (evaluated once
on the prior status) remains the real gate. Also fix and translate the validation
docstring (it omitted the order-status check and claimed a False return)
and reword the message to "save" instead of "create" so it no longer
implies a creation on updates.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-by: Pascal Repond <pascal.repond@rero.ch>

3 of 3 new or added lines in 1 file covered. (100.0%)

20 existing lines in 6 files now uncovered.

24249 of 26551 relevant lines covered (91.33%)

0.91 hits per line

Coverage Regressions

Lines Coverage ∆ File
7
97.35
0.04% rero_ils/modules/documents/api.py
4
93.98
0.14% rero_ils/modules/ext.py
4
95.45
0.11% rero_ils/modules/item_types/api.py
2
95.92
-1.81% rero_ils/modules/patrons/permissions.py
2
98.26
0.03% rero_ils/modules/stats/api/report.py
1
98.7
0.0% rero_ils/modules/stats/api/indicators/others.py
Jobs
ID Job ID Ran Files Coverage
1 28779774833.1 07 Jul 2026 09:41AM UTC 612
91.33
GitHub Action Run
Source Files on build 28779774833
  • Tree
  • List 612
  • Changed 9
  • Source Changed 9
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28779774833
  • 05886c19 on github
  • Prev Build on bib-test (#28170341578)
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