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

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

Build:
Build:
LAST BUILD BRANCH: feature/fix-sort-relevance
DEFAULT BRANCH: develop
Ran 26 May 2026 10:14PM UTC
Jobs 1
Files 388
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

26 May 2026 10:12PM UTC coverage: 87.074% (+0.02%) from 87.055%
26478140181

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

3278 of 3910 branches covered (83.84%)

Branch coverage included in aggregate %.

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

6611 of 7447 relevant lines covered (88.77%)

56.35 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
92.7
-0.08% api/services/MassifService.js
Jobs
ID Job ID Ran Files Coverage
1 26478140181.1 26 May 2026 10:14PM UTC 388
87.07
GitHub Action Run
Source Files on build 26478140181
  • Tree
  • List 388
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #26478140181
  • 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