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

kobotoolbox / kpi / 11709925213
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: beccagraber/dev-964-add-ph-logs
DEFAULT BRANCH: master
Ran 06 Nov 2024 07:18PM UTC
Jobs 1
Files 598
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

06 Nov 2024 06:45PM UTC coverage: 79.664% (-0.009%) from 79.673%
11709925213

push

github

web-flow
feat(organizations): Add `mongo_uuid` field to XForm model and populate it TASK-957 (#5196)

## Checklist

1. [x] If you've added code that should be tested, add tests
2. [ ] If you've changed APIs, update (or create!) the documentation
3. [x] Ensure the tests pass
4. [x] Run `./python-format.sh` to make sure that your code lints and
that you've followed [our coding
style](https://github.com/kobotoolbox/kpi/blob/main/CONTRIBUTING.md)
5. [x] Write a title and, if necessary, a description of your work
suitable for publishing in our [release
notes](https://community.kobotoolbox.org/tag/release-notes)
6. [ ] Mention any related issues in this repository (as #ISSUE) and in
other repositories (as kobotoolbox/other#ISSUE)
7. [ ] Open an issue in the
[docs](https://github.com/kobotoolbox/docs/issues/new) if there are
UI/UX changes
8. [ ] Create a testing plan for the reviewer and add it to the Testing
section

## Description

This PR introduces a new field, mongo_uuid, to the XForm model in
KoboToolbox. This unique identifier is designed to enhance the ownership
transfer process of XForms by ensuring that each form is linked to a
distinct UUID in MongoDB. The addition of mongo_uuid will streamline how
XForms are managed, especially during ownership transfers, by reducing
unnecessary updates to the MongoDB documents related to the XForm.

## Notes

- A new column (mongo_uuid) has been added to the XForm model, which
will serve as a unique identifier.
Ownership Transfer: The logic for transferring an XForm's ownership has
been updated to ensure that the mongo_uuid is populated if it is
currently null.
- All existing MongoDB documents that match the _userform_id will be
updated to include the new mongo_uuid value, ensuring consistency across
the database.
- The ParsedInstance.to_dict_for_mongo() method has been modified to
prioritize the mongo_uuid over _userform_id when exporting data. If
mongo_uuid is not null, _userform... (continued)

5434 of 8808 branches covered (61.69%)

9 of 9 new or added lines in 4 files covered. (100.0%)

6 existing lines in 3 files now uncovered.

20899 of 26234 relevant lines covered (79.66%)

0.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11709925213.1 06 Nov 2024 07:18PM UTC 0
79.66
Source Files on build 11709925213
Detailed source file information is not available for this build.
  • Back to Repo
  • e41ba34b on github
  • Prev Build on main (#11708798194)
  • Next Build on main (#11713010153)
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