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

kobotoolbox / kpi / 11825154752
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: beccagraber/dev-1453-run-external-process
DEFAULT BRANCH: master
Ran 13 Nov 2024 08:55PM UTC
Jobs 1
Files 604
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

13 Nov 2024 08:19PM UTC coverage: 79.544% (+0.05%) from 79.495%
11825154752

push

github

web-flow
feat(projectHistoryLog): log exports TASK-944 (#5241)

### đŸ“Ŗ Summary
Record project history logs for when users export an asset.


### 👀 Preview steps

Bug template:
1. â„šī¸ Log in as a super user. Create and deploy a project
2. Add at least 1 submission to the project
3. Go to Data > Downloads and hit Export. Note: the export may get stuck
in processing. This is due to an unrelated bug
(https://www.notion.so/kobotoolbox/Exports-fail-with-ExportTask-matching-query-does-not-exist-1377e515f65480328422e0c8fcfed1c0)
but doesn't affect this work since we want to log every attempt to
export, not just successful ones
5. đŸŸĸ Go to `api/v2/audit-logs/?q=metadata__asset_uid:<asset_uid> AND
log_type='project-history'`
6. There should be a new PH log with action=`export` (usual metadata)


### 💭 Notes
Uses the AuditLoggedViewSet and `create_from_related_request` flows
(similar to asset files, paired data, etc.)

5504 of 8942 branches covered (61.55%)

29 of 32 new or added lines in 6 files covered. (90.63%)

21134 of 26569 relevant lines covered (79.54%)

0.8 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
81.96
0.51% kpi/models/import_export_task.py
Jobs
ID Job ID Ran Files Coverage
1 11825154752.1 13 Nov 2024 08:55PM UTC 604
79.54
Source Files on build 11825154752
  • Tree
  • List 604
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • c47f297c on github
  • Prev Build on main (#11822173366)
  • Next Build on main (#11840110021)
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