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

kobotoolbox / kpi / 16807153660 / 1
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 07 Aug 2025 03:04PM UTC
Files 642
Run time 39s
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

07 Aug 2025 02:19PM UTC coverage: 80.976% (-0.002%) from 80.978%
16807153660.1

push

github

web-flow
feat(projectOwnership): log errors in transferring attachments DEV-842 (#6060)

### 💭 Notes
Right now we are swallowing errors when trying to move attachments. The
jobs occasionally fail and the lack of logging makes it difficult to
diagnose, so this logs the error before returning False.

### 👀 Preview steps
Make sure you are using s3 storage

1. â„šī¸ have at least 2 accounts and a project with an image question
2. Add a few submissions with attachments to the project
3. Transfer the project to another user
4. Before accepting the transfer, update `kpi.fields.file.py:20-23` with
```
        from django.apps import apps
        Attachment = apps.get_model(model_name='Attachment', app_label='logger')
        if isinstance(self.instance, Attachment):
            name = 'bad name'
        else:
            name = self.name
        copy_source = {
            'Bucket': self.storage.bucket.name,
            'Key': name,
        }
```
Make sure to restart the worker to pick up the changes
5. As the other user, accept the transfer invitation
6. 🔴 [on main] Notice there is only an `AsyncTaskException` in the
worker logs
7. đŸŸĸ [on PR] Notice there is both an `AsyncTaskException` and a more
detailed `ClientError` in the logs

6180 of 9770 branches covered (63.25%)

23356 of 28843 relevant lines covered (80.98%)

0.81 hits per line

Source Files on job 16807153660.1
  • Tree
  • List 642
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 16807153660
  • 3ca781c4 on github
  • Prev Job for on release/2.025.29 (#16780507404.1)
  • Next Job for on release/2.025.29 (#16889169611.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