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

kobotoolbox / kpi / 12141132782
80%
master: 76%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 03 Dec 2024 02:31PM UTC
Jobs 1
Files 609
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 Dec 2024 01:54PM UTC coverage: 80.299% (+0.004%) from 80.295%
12141132782

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%)

9 of 10 new or added lines in 3 files covered. (90.0%)

21838 of 27196 relevant lines covered (80.3%)

0.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12141132782.1 03 Dec 2024 02:31PM UTC 0
80.3
Source Files on build 12141132782
Detailed source file information is not available for this build.
  • Back to Repo
  • 7acd5aac on github
  • Prev Build on main (#12130330644)
  • Next Build on main (#12141486365)
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