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

GrottoCenter / grottocenter-api / 32745063391
87%
develop: 91%

Build:
Build:
LAST BUILD BRANCH: feat/1887-audit
DEFAULT BRANCH: develop
Ran 24 Aug 2026 03:30PM UTC
Jobs 1
Files 501
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

24 Aug 2026 03:26PM UTC coverage: 87.305% (-0.04%) from 87.345%
32745063391

Pull #1779

github

ClemRz
fix(document): address code review findings

- P1: add DocumentService.clearParentIfTypeDisallows() helper and call
  it in update-with-new-entities.js so both update paths enforce the
  same type-vs-parent policy (stale parent cleared on type change)
- P2: migration now uses DROP CONSTRAINT IF EXISTS + ADD NOT VALID +
  VALIDATE CONSTRAINT for idempotency and safe application over
  pre-existing corrupt rows
- P2: guard checkParentCycle() call sites with Number.isFinite() to
  prevent a NaN false-negative when ids are non-numeric
- P3: TYPES_REQUIRING_PARENT is now an alias of TYPES_ALLOWING_PARENT
  with a comment explaining the equivalence
- P3: rename misleading test title to reflect actual assertion
Pull Request #1779: fix(document): prevent cyclic parent relationships

5193 of 6240 branches covered (83.22%)

Branch coverage included in aggregate %.

33 of 40 new or added lines in 5 files covered. (82.5%)

2 existing lines in 1 file now uncovered.

9558 of 10656 relevant lines covered (89.7%)

142.35 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
71.25
-4.46% api/controllers/v1/document/update.js
2
89.55
-10.45% api/controllers/v1/document/update-with-new-entities.js
2
87.5
-0.12% api/services/DocumentService.js

Coverage Regressions

Lines Coverage ∆ File
2
81.9
0.52% api/controllers/v1/document/multiple-validate.js
Jobs
ID Job ID Ran Files Coverage
1 32745063391.1 24 Aug 2026 03:30PM UTC 501
87.3
GitHub Action Run
Source Files on build 32745063391
  • Tree
  • List 501
  • Changed 6
  • Source Changed 5
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #32745063391
  • Pull Request #1779
  • PR Base - develop (#32169663499)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc