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

GrottoCenter / grottocenter-api / 26317976349
87%
develop: 87%

Build:
Build:
LAST BUILD BRANCH: fix/massif-polygon-validation
DEFAULT BRANCH: develop
Ran 23 May 2026 12:12AM UTC
Jobs 1
Files 388
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

23 May 2026 12:10AM UTC coverage: 86.975% (-0.08%) from 87.055%
26317976349

Pull #1607

github

ClemRz
fix(massif): validate polygon geometry before area computation

Closes #1606. PostGIS ST_Area() on geography type throws an unhandled
XX000 error when a polygon has invalid winding order or other geometry
issues. This caused a 500 on massif creation with complex MultiPolygons.

- Add MassifService.validatePolygon() that checks ST_IsValid and catches
  XX000 errors from ST_Area, returning user-friendly error messages
- Map PostGIS/GEOS error keywords to actionable messages via a single
  POLYGON_ERROR_MESSAGES table
- Apply validation in both create and update controllers
- Add regression tests for invalid winding order and self-intersecting
  polygons on both POST and PUT endpoints
- Add unit tests for matchPolygonError mapping function
Pull Request #1607: fix(massif): validate polygon geometry before area computation

3273 of 3910 branches covered (83.71%)

Branch coverage included in aggregate %.

22 of 29 new or added lines in 3 files covered. (75.86%)

1 existing line in 1 file now uncovered.

6603 of 7445 relevant lines covered (88.69%)

56.26 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
82.96
-9.82% api/services/MassifService.js

Coverage Regressions

Lines Coverage ∆ File
1
82.96
-9.82% api/services/MassifService.js
Jobs
ID Job ID Ran Files Coverage
1 26317976349.1 23 May 2026 12:12AM UTC 388
86.97
GitHub Action Run
Source Files on build 26317976349
  • Tree
  • List 388
  • Changed 4
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #26317976349
  • Pull Request #1607
  • PR Base - develop (#26316304342)
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