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

kobotoolbox / kpi / 12141132782 / 1
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: DEV-1771-memory-leak-issue-when-deleting-projects
DEFAULT BRANCH: master
Ran 03 Dec 2024 02:31PM UTC
Files 609
Run time 15s
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 Dec 2024 01:54PM UTC coverage: 80.299% (+0.004%) from 80.295%
12141132782.1

push

github

web-flow
feat(projectHistoryLogs): record logs for cloned permissions TASK-944 (#5302)

### đŸ“Ŗ Summary
Record logs when permissions are cloned from one project to another.


### 👀 Preview steps


Feature/no-change template:
1. â„šī¸ have an account and at least 2 projects
2. From a terminal, run
```
curl -X PATCH -H 'Authorization: Token <your token>' -H 'Content-type: application/json' localhost/api/v2/assets/<project_1_uid>/permission_assignments/clone/ -d '{"clone_from": "<project_2_uid>"}'
```
4. Go to
`localhost/api/v2/audit-logs/?](http://localhost/api/v2/audit-logs/?q=log_type:project-history
AND metadata__asset_uid:<project_1_uid>&format=json
5. đŸŸĸ There should be a new project history log that looks like
```
app_label:	"kpi",
model_name:	"asset",
user:	"http://localhost/api/v2/users/<user>/?format=json",
user_uid:	"<user_uid>",
username:	"<username>",
action:	"clone-permissions",
metadata: {	
    source:	"curl (Other)"
    asset_uid:	"<project_1_uid>"
    ip_address:	"172.18.0.1"
    cloned_from:	"<project_2_uid>"
    log_subtype:	"permission"
},
date_created:	"2024-12-02T15:21:20Z",
log_type:	"project-history",
```

### 💭 Notes
Uses the AuditLoggedModelViewSet base class

5724 of 9202 branches covered (62.2%)

21838 of 27196 relevant lines covered (80.3%)

0.8 hits per line

Source Files on job 12141132782.1
  • Tree
  • List 0
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 12141132782
  • 7acd5aac on github
  • Prev Job for on main (#12130330644.1)
  • Next Job for on main (#12141486365.1)
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