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

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

Build:
Build:
LAST BUILD BRANCH: fix/massif-polygon-validation
DEFAULT BRANCH: develop
Ran 23 May 2026 12:28AM 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:25AM UTC coverage: 87.065% (+0.01%) from 87.055%
26318357862

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

3277 of 3910 branches covered (83.81%)

Branch coverage included in aggregate %.

30 of 31 new or added lines in 3 files covered. (96.77%)

1 existing line in 1 file now uncovered.

6611 of 7447 relevant lines covered (88.77%)

56.18 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
92.7
-0.08% api/services/MassifService.js

Coverage Regressions

Lines Coverage ∆ File
1
92.7
-0.08% api/services/MassifService.js
Jobs
ID Job ID Ran Files Coverage
1 26318357862.1 23 May 2026 12:28AM UTC 388
87.07
GitHub Action Run
Source Files on build 26318357862
  • 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 #26318357862
  • 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