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

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

Build:
Build:
LAST BUILD BRANCH: feat/1887-audit
DEFAULT BRANCH: develop
Ran 31 Jul 2026 07:51PM 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

31 Jul 2026 07:48PM UTC coverage: 87.3%. Remained the same
30660514148

Pull #1750

github

ClemRz
fix(document): replace m2m collections via replaceCollection on update and validate

- Use replaceCollection for authors, authorsGrotto, subjects, languages,
  massifs, isoRegions and countries in multiple-validate and
  update-with-new-entities instead of passing them to .set(), which
  Waterline silently ignores
- Wrap update-with-new-entities scalar update and replaceCollection calls
  in a single transaction to prevent partial writes
- Add parseIdList helper in DocumentService.getConvertedDataFromClient to
  distinguish undefined (untouched), '[]' sentinel (explicit clear) and
  array (replace) for multipart/form-data collection fields
- Fix getDocumentLanguages to return undefined instead of [] when neither
  language field is present, preventing silent language collection wipe
- Extract DOCUMENT_M2M_COLLECTIONS constant to config/constants/document.js
  as single source of truth for both controllers
- Add integration tests for collection replace, clear and untouched semantics
  with proper after() cleanup in multiple-validate and update-with-new-entities
- Document the '[]' sentinel protocol and the new-entities endpoint in
  swaggerV1.yaml
Pull Request #1750: fix(document): replace m2m collections via replaceCollection on update and validate

5150 of 6194 branches covered (83.14%)

Branch coverage included in aggregate %.

46 of 47 new or added lines in 4 files covered. (97.87%)

15 existing lines in 2 files now uncovered.

9519 of 10609 relevant lines covered (89.73%)

133.94 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
81.9
1.26% api/controllers/v1/document/multiple-validate.js

Coverage Regressions

Lines Coverage ∆ File
10
81.9
1.26% api/controllers/v1/document/multiple-validate.js
5
87.21
-0.88% api/services/DocumentService.js
Jobs
ID Job ID Ran Files Coverage
1 30660514148.1 31 Jul 2026 07:51PM UTC 501
87.3
GitHub Action Run
Source Files on build 30660514148
  • 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 #30660514148
  • Pull Request #1750
  • PR Base - develop (#30591462309)
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