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

kobotoolbox / kpi / 18312716124
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: beccagraber/dev-1452-new_action
DEFAULT BRANCH: master
Ran 07 Oct 2025 01:06PM UTC
Jobs 2
Files 862
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

07 Oct 2025 12:31PM UTC coverage: 81.15%. Remained the same
18312716124

push

github

web-flow
fix(formBuilder): matrix not keeping order of rows DEV-804 (#6295)

### đŸ“Ŗ Summary

Fixes issue when Matrix wasn't respecting the order in which the rows or
the options of "Select one" or "Select many" responses were added.
Doesn't work retroactively on existing forms.

### 💭 Notes

This was hard to debug and figure out, so at some point I migrated file
to TypeScript to make things easier. It was easier indeed :) I haven't
found the real reason why this happens, seems to be some `immutable`
related thing. Inspired by some old discussion by Alex and Josh, I added
`order` property to the choices and am sorting things with it before
rendering. This means the fix unfortunately doesn't work for existing
forms.

Besides migrating to TS, I did few smaller refactors and fixed multiple
tiny issues. This definitely deserves even more love, but I had to draw
a line somewhere 💔

### 👀 Preview steps

1. â„šī¸ have an account and a project
2. Open project in Form Builder
3. Add matrix question
4. Create at least 7 rows (I recommend some easy to notice name "r1",
"r2", "r3", â€Ļ)
5. Set one column to "Select one" or "Select many" response type 
6. Add at least 7 choices to the column response (also easy to notice
name)
7. Save form and reload browser
8. 🔴 [on main] notice that the order of rows and choices is different
9. đŸŸĸ [on PR] notice that the order is intact

6963 of 10976 branches covered (63.44%)

26821 of 33051 relevant lines covered (81.15%)

1.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 18312716124.1 07 Oct 2025 01:06PM UTC 862
78.83
2 18312716124.2 07 Oct 2025 01:54PM UTC 862
81.13
Source Files on build 18312716124
  • Tree
  • List 862
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 4fc86d27 on github
  • Prev Build on main (#18300682217)
  • Next Build on main (#18313687323)
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