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

kobotoolbox / kpi / 30540539901
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-2567-dailycounter-fix
DEFAULT BRANCH: master
Ran 30 Jul 2026 12:00PM UTC
Jobs 10
Files 894
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

30 Jul 2026 11:56AM UTC coverage: 82.008% (-0.001%) from 82.009%
30540539901

push

github

web-flow
feat(projectHistoryLogs): log when users view data DEV-28 (#7339)

### đŸ“Ŗ Summary
Log when users view data for a project.


### 📖 Description
Create new project history logs whenever a user hits the
`/api/v2/assets/{uid}/data/` endpoint.


### 👷 Description for instance maintainers
This is likely to add a ton more audit logs. It shouldn't be enough to
affect performance but it's worth noting.


### 💭 Notes
As noted above, this will probably add a ton more audit logs. However,
logging hits to the endpoint was decided with product to be the best way
to log that 'X viewed Y data'. For now there's a manual exception in the
middleware to log a GET request if it's to the data endpoint
specifically. If eventually we end up logging more GET requests we may
consider a refactor (maybe a boolean field on AuditLoggedViewSet) but
for one endpoint it seems like overkill.


### 👀 Preview steps


1. â„šī¸ have an account and a project that has been deployed
2. Go to the project data table
3. Go to Settings > Activity
4. đŸŸĸ [on PR] There should be a new `{username} accessed survey data` log

9537 of 12859 branches covered (74.17%)

6 of 14 new or added lines in 3 files covered. (42.86%)

30909 of 37690 relevant lines covered (82.01%)

5.51 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
44.49
-0.56% kobo/apps/audit_log/models.py
Jobs
ID Job ID Ran Files Coverage
1 30540539901.1 30 Jul 2026 12:00PM UTC 890
49.38
2 30540539901.2 30 Jul 2026 12:01PM UTC 890
44.15
3 30540539901.3 30 Jul 2026 12:02PM UTC 890
52.75
4 30540539901.4 30 Jul 2026 12:02PM UTC 892
45.51
5 30540539901.5 30 Jul 2026 12:03PM UTC 892
54.01
6 30540539901.6 30 Jul 2026 12:05PM UTC 890
58.9
7 30540539901.7 30 Jul 2026 12:05PM UTC 892
50.71
8 30540539901.8 30 Jul 2026 12:06PM UTC 892
67.15
9 30540539901.9 30 Jul 2026 12:07PM UTC 892
60.05
10 30540539901.10 30 Jul 2026 12:08PM UTC 894
69.52
Source Files on build 30540539901
  • Tree
  • List 894
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • a236b68b on github
  • Prev Build on main (#30522189695)
  • Next Build on main (#30548509907)
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