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

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

Build:
Build:
LAST BUILD BRANCH: feat/1887-audit
DEFAULT BRANCH: develop
Ran 19 Aug 2026 06:20PM 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

19 Aug 2026 06:18PM UTC coverage: 87.19% (-0.2%) from 87.345%
32286584132

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

5182 of 6236 branches covered (83.1%)

Branch coverage included in aggregate %.

17 of 33 new or added lines in 4 files covered. (51.52%)

18 existing lines in 3 files now uncovered.

9540 of 10649 relevant lines covered (89.59%)

141.6 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
63.64
-12.08% api/controllers/v1/document/update.js
7
78.95
-21.05% api/controllers/v1/document/update-with-new-entities.js
1
87.58
-0.04% api/services/DocumentService.js

Coverage Regressions

Lines Coverage ∆ File
8
81.37
0.0% api/controllers/v1/document/multiple-validate.js
8
63.64
-12.08% api/controllers/v1/document/update.js
2
78.95
-21.05% api/controllers/v1/document/update-with-new-entities.js
Jobs
ID Job ID Ran Files Coverage
1 32286584132.1 19 Aug 2026 06:20PM UTC 501
87.19
GitHub Action Run
Source Files on build 32286584132
  • Tree
  • List 501
  • Changed 5
  • Source Changed 4
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #32286584132
  • 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