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

kobotoolbox / kpi / 12893603836
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: refactor-subsequences-2025
DEFAULT BRANCH: master
Ran 21 Jan 2025 07:14PM UTC
Jobs 1
Files 623
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

21 Jan 2025 06:37PM UTC coverage: 80.527% (+0.01%) from 80.515%
12893603836

push

github

web-flow
fix(auditLogs): do not try to create logs after 404s (#5431)

### đŸ“Ŗ Summary
Return correct error message when page isn't found.


### 📖 Description
404s were returning as 500s because of a bug in the audit log
middleware. This fixes that.


### 💭 Notes
If a request 404s, `request.resolver_match` will be None. This was
causing a 500 error in the middleware when non-GET requests were made to
missing pages because it tries to look at
`request.resolver_match.url_name`.


### 👀 Preview steps

Bug template:
1. â„šī¸ have an account and a project
2. From the terminal, run `curl -X POST kf.kobo.local:8080/api/v2/fake/`
3. 🔴 [on main] The response will be a 500 with the error `NoneType has
no attribute 'url_name'`
4. đŸŸĸ [on PR] The response will be a 404

5850 of 9358 branches covered (62.51%)

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

22327 of 27726 relevant lines covered (80.53%)

0.81 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12893603836.1 21 Jan 2025 07:14PM UTC 623
80.53
Source Files on build 12893603836
  • Tree
  • List 623
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • c933d131 on github
  • Prev Build on main (#12893591375)
  • Next Build on main (#12894445242)
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