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

rero / sonar / 30822499532
95%
master: 95%

Build:
Build:
LAST BUILD BRANCH: sonar-dev
DEFAULT BRANCH: master
Ran 03 Aug 2026 02:35PM UTC
Jobs 1
Files 283
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

03 Aug 2026 02:23PM UTC coverage: 94.52% (-0.001%) from 94.521%
30822499532

push

github

PascalRepond
fix(api): unregister the Flask-Security views from the API

The Flask-Security blueprint was registered on both applications
(ACCOUNTS_REGISTER_BLUEPRINT) so that `url_for_security` could build the reset
password links sent by email. Its views render SONAR templates, which are only
registered on the UI application, so requesting them through `/api` raised a
`TemplateNotFound` error (500), e.g. on `/api/login/`. The links themselves had
to be patched in the email templates, as they carried the `/api` prefix of the
request they were built in.

* Removes `ACCOUNTS_REGISTER_BLUEPRINT` to restore the invenio defaults: the
  views are registered on the UI application only, and the API application
  keeps the blueprints needed to render the Flask-Security emails.
* Builds the reset password link with `default_reset_password_link_func`, which
  points to the UI application through `ACCOUNTS_REST_RESET_PASSWORD_ENDPOINT`,
  whichever application generates it.
* Removes the `/api` substitution from the email templates.
* Logs out through the REST endpoint in the API tests, as the Flask-Security
  views are no longer available there.

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

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

7313 of 7737 relevant lines covered (94.52%)

0.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30822499532.1 03 Aug 2026 02:35PM UTC 283
94.52
GitHub Action Run
Source Files on build 30822499532
  • Tree
  • List 283
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30822499532
  • 20ff05da on github
  • Prev Build on staging (#30818505205)
  • Next Build on staging (#30891859930)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc