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

kobotoolbox / kpi / 15308977247
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1257-remove-v1-forms-endpoint
DEFAULT BRANCH: master
Ran 28 May 2025 08:12PM UTC
Jobs 2
Files 653
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

28 May 2025 07:34PM UTC coverage: 81.072%. Remained the same
15308977247

push

github

web-flow
feat(projectHistoryLogs): add owner to import and export logs DEV-216 (#5710)

### đŸ“Ŗ Summary
Add project owner to the project history logs for importing new forms
and using the old export endpoint.

### Notes
This PR also ends up adding the project owner to name change logs that
are created as the result of replacing the form. It seemed silly to
leave it out when we'll be updating the rest of the name change logs
soon anyway. It means there might be a small inconsistency in whether or
not update-name logs have the project-owner in the metadata for a short
time on systems running main, or if a release is cut between this PR and
the next, but that seems a very small risk.


### 👀 Preview steps
Note: due to an implementation quirk, it is REALLY hard to test the v1
endpoint locally. You have to enter the data as form data because JSON
data doesn't make it into request.POST, which is what the code relies
on. For some reason, the browser-rendered API page doesn't allow you to
enter form data, so you have to enter it manually as text. For this
reason, and the fact that it's a deprecated endpoint, I'm choosing to
leave it out of the preview plan and just rely on the unit/integration
tests.


1. â„šī¸ have account and a project
2. Go to My Project > Form and upload a new form (for example
[SimpleForm-copy.xlsx](https://github.com/user-attachments/files/19914780/SimpleForm-copy.xlsx)
3. Go to `api/v2/assets/*uid*/history`
4. đŸŸĸ There should be a new project history log with
`action=replace-form.` The project owner should be in the metadata.

6265 of 9927 branches covered (63.11%)

1 of 1 new or added line in 1 file covered. (100.0%)

27 existing lines in 2 files now uncovered.

23896 of 29475 relevant lines covered (81.07%)

1.6 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
3
90.52
-2.59% kpi/views/environment.py
24
75.0
-24.0% kpi/utils/usage_calculator.py
Jobs
ID Job ID Ran Files Coverage
1 15308977247.1 28 May 2025 08:12PM UTC 653
78.97
2 15308977247.2 28 May 2025 08:14PM UTC 653
81.05
Source Files on build 15308977247
  • Tree
  • List 653
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 9b91651b on github
  • Prev Build on main (#15303188704)
  • Next Build on main (#15320536731)
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

© 2025 Coveralls, Inc