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

GrottoCenter / grottocenter-api / 25119995935
86%
develop: 87%

Build:
Build:
LAST BUILD BRANCH: feat/admin-security-hardening
DEFAULT BRANCH: develop
Ran 29 Apr 2026 04:11PM UTC
Jobs 1
Files 374
Run time 1min
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

29 Apr 2026 04:06PM UTC coverage: 86.315% (+0.004%) from 86.311%
25119995935

Pull #1542

github

ClemRz
fix(organization): coerce empty-string coordinates to null before DB update

Empty latitude/longitude strings from the frontend caused a PostgreSQL
22P02 error (invalid input syntax for type numeric) on PUT
/api/v1/organizations/:id.

Add coerceToNumeric utility (mirrors coerceToInt) that converts empty
and whitespace-only strings to null. Apply it in
GrottoService.getConvertedDataFromClientRequest, GrottoService.createGrotto,
CaveService.getConvertedDataFromClient, and the cave update controller.

Remove the ad-hoc delete-on-empty-string hack from createGrotto.
Pull Request #1542: fix(organization): coerce empty-string coordinates to null

2877 of 3474 branches covered (82.82%)

Branch coverage included in aggregate %.

12 of 14 new or added lines in 4 files covered. (85.71%)

7 existing lines in 3 files now uncovered.

5972 of 6778 relevant lines covered (88.11%)

95.22 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
89.09
-3.22% api/controllers/v1/cave/update.js

Coverage Regressions

Lines Coverage ∆ File
4
94.66
0.29% api/services/EntranceService.js
2
93.81
-3.09% api/services/RecentChangeService.js
1
91.49
8.63% api/controllers/v1/massif/create.js
Jobs
ID Job ID Ran Files Coverage
1 25119995935.1 29 Apr 2026 04:11PM UTC 374
86.31
GitHub Action Run
Source Files on build 25119995935
  • Tree
  • List 374
  • Changed 15
  • Source Changed 13
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25119995935
  • Pull Request #1542
  • PR Base - develop (#25118073857)
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