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

ingitdb / dalgo2ingitdb4github / 28701443176
84%

Build:
DEFAULT BRANCH: main
Ran 04 Jul 2026 09:07AM UTC
Jobs 1
Files 10
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

04 Jul 2026 09:07AM UTC coverage: 99.484% (-0.4%) from 99.892%
28701443176

push

github

web-flow
fix: encode dal.Key parent chain into record path (per-parent scoping) (#2)

The adapter mapped a dal.Key to an in-repo record path using only the leaf
collection + record id, dropping the key's parent chain. Two keys sharing a
leaf but living under different parents — e.g. spaces/family/contacts/c1 and
spaces/work/contacts/c1 — resolved to the same path and clobbered each other
(no per-space scoping).

Add resolveScopedCollection, which walks key.Parent() and interleaves each
ancestor record id with its subcollection name into the DirPath, mirroring
Firestore-style nesting (spaces/<spaceID>/contacts/...). This matches the
Option A layout already shipped in github.com/ingitdb/dalgo2ingitdb v0.1.0, so
the write and read paths agree with the sibling adapters. Top-level (non-nested)
keys are unchanged: a plain flat def.Collections lookup.

Route both resolveCollection (Set/Insert/Delete, incl. the batching tx) and the
previously-inlined Get through the scoped resolver so reads and writes agree.

Regression tests: two keys with the same leaf id under different parents map to
DISTINCT paths, plus an end-to-end round-trip proving a record written under one
parent is not visible/overwritten under another.


Claude-Session: https://claude.ai/code/session_01FV3pbooAc9UPpNdiaJuKve

Co-authored-by: Alexander Trakhimenok <alex@Alexanders-MacBook-Pro.local>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

50 of 54 new or added lines in 2 files covered. (92.59%)

964 of 969 relevant lines covered (99.48%)

1.17 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
95.45
scoped_collection.go
2
98.06
-1.94% tx_readonly.go
Jobs
ID Job ID Ran Files Coverage
1 28701443176.1 04 Jul 2026 09:07AM UTC 10
99.48
GitHub Action Run
Source Files on build 28701443176
  • Tree
  • List 10
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • eaa8d8a9 on github
  • Prev Build on main (#28577678526)
  • Next Build on main (#29040262842)
  • Delete
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