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

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

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

18 Aug 2026 11:34PM UTC coverage: 87.299% (-0.05%) from 87.345%
32197814718

push

github

ClemRz
fix(document): prevent cyclic parent relationships

- Add CHECK constraint (id <> id_parent) to t_document to block
  self-references at the DB level; mirrored in test/customSQL.js
- Add DocumentService.checkParentCycle() using a cycle-safe CTE
  (PostgreSQL CYCLE clause) to detect indirect cycles before writes
- Fix getCollectionAncestors() with CYCLE clause so legacy/corrupt
  cyclic data can never hang the query (resolves org detail timeout)
- Add TYPES_ALLOWING_PARENT / TYPES_REQUIRING_PARENT constants and
  replace MANDATORY_PARENT_TYPES string array with constant IDs
- getConvertedDataFromClient() now explicitly sets parent to null
  when the resolved type does not allow a parent, preventing stale
  id_parent from surviving a type change (e.g. Issue → Collection)
- update.js: validate proposed parent for cycles before file upload
- update-with-new-entities.js: validate parent before transaction

Fixes #1778

5179 of 6222 branches covered (83.24%)

Branch coverage included in aggregate %.

12 of 19 new or added lines in 4 files covered. (63.16%)

9537 of 10635 relevant lines covered (89.68%)

140.99 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
70.0
-5.71% api/controllers/v1/document/update.js
3
87.3
-12.7% api/controllers/v1/document/update-with-new-entities.js
Jobs
ID Job ID Ran Files Coverage
1 32197814718.1 18 Aug 2026 11:37PM UTC 501
87.3
GitHub Action Run
Source Files on build 32197814718
  • 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 #32197814718
  • 269ff498 on github
  • Prev Build on develop (#32169663499)
  • Next Build on fix/document-cyclic-parent (#32198056261)
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