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

kobotoolbox / kpi / 24519695490
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: beccagraber/dev-2180-fix-admin-add-user
DEFAULT BRANCH: master
Ran 16 Apr 2026 03:48PM UTC
Jobs 10
Files 911
Run time 3min
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

16 Apr 2026 03:43PM UTC coverage: 82.23% (+0.006%) from 82.224%
24519695490

push

github

web-flow
fix(map): allow multiple queries on map display DEV-1847 (#6924)

### đŸ“Ŗ Summary
Fixes a bug where the frontend was only displaying one page of results
(1000) regardless of the limit placed

### 💭 Notes
Created a functional component wrapper to avoid a full functional
component refactor of the `map/index.tsx` component. A bit of
refactoring was needed to allow this to function properly, 🤖 (and
trimmed by me) summary below:

Key Updates:
- New `FormMapWrapper` component wraps the existing `FormMap` with React
Query-based data fetching
- `FormMap` converted to presentational component receiving data via
props (`allData`, `isLoading`,`totalCount`) instead of fetching
internally
  - Query limit changes:
    - Slider now respects actual data bounds
  - Loading UX: Shows "Fetching points..." overlay during data loads
- Old `requestData()` → now `createDataQuery()` (sets query params,
doesn't fetch)
- Map rebuild logic split into `createDataQuery()` +
`rebuildMapLayers()`


### 👀 Preview steps
âš ī¸ **`mockobo` is a must for previewing these changes**

-- Setup --

1. â„šī¸ Have an account and a project
2. Create a form with a select one question, any other question, 2
geopoint quetions
3. Use `mockobo` to generate ~7000 submissions (not a hard number, just
enough so you can play around with the query slider)

-- On main --

1. Open the map
2. Click on the map settings icon
3. If your submission count is > 1000, you should see the query slider
4. Adjust the slider to any amount > 1000
5. 🔴 notice that the number of submission don't chance (it may be easier
to see the number by clicking on "Disaggregate by survey response" and
selecting a question)
6. Select the highest value on the slider (30,000) before moving to the
PR branch
7. Navigate off the map
8. Notice the `queryLimit` is set to `30000` in the `map_styles`
attribute in the asset json
9. Switch the branch to PR branch

-- On PR --
Below can also be described as "map works as expected", but I outlined
as muc... (continued)

7828 of 12040 branches covered (65.02%)

29773 of 36207 relevant lines covered (82.23%)

5.79 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
38.89
-0.93% kobo/apps/openrosa/apps/api/tools.py
Jobs
ID Job ID Ran Files Coverage
1 24519695490.1 16 Apr 2026 03:48PM UTC 907
52.74
2 24519695490.2 16 Apr 2026 03:48PM UTC 907
54.26
3 24519695490.3 16 Apr 2026 03:49PM UTC 909
53.95
4 24519695490.4 16 Apr 2026 03:50PM UTC 907
52.97
5 24519695490.5 16 Apr 2026 03:50PM UTC 909
55.5
6 24519695490.6 16 Apr 2026 03:50PM UTC 909
66.11
7 24519695490.7 16 Apr 2026 03:50PM UTC 907
60.41
8 24519695490.8 16 Apr 2026 03:51PM UTC 909
54.31
9 24519695490.9 16 Apr 2026 03:52PM UTC 911
68.34
10 24519695490.10 16 Apr 2026 03:52PM UTC 909
61.54
Source Files on build 24519695490
  • Tree
  • List 911
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 63b4ab0d on github
  • Prev Build on main (#24518258255)
  • Next Build on main (#24652432427)
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