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

ingitdb / ingitdb-cli / 25784834508
96%

Build:
DEFAULT BRANCH: main
Ran 13 May 2026 07:27AM UTC
Jobs 1
Files 102
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

13 May 2026 07:26AM UTC coverage: 80.489% (-0.09%) from 80.578%
25784834508

push

github

inGitDB Dev
fix(cli/drop): detect ambiguous view names across collections

Resolves the duplicate-view-name ambiguity flagged in the cli/drop
final code review. Previously, `drop view <name>` returned after the
first collection match — if two collections both contained a view with
the same name, only one was dropped silently and the other was left
intact (a non-deterministic surprise).

The new behavior scans ALL collections, collects every match, and:
- 0 matches: error (or silent success with --if-exists)
- 1 match: drop it (unchanged from before)
- 2+ matches: error naming every conflicting parent collection,
  recommending --in=<collection> to disambiguate. NO view is dropped —
  preserving atomicity under ambiguous input.

Adds a new --in=<collection> flag on `drop view` that scopes the
search to a single collection's $views directory. Unknown collection
names supplied via --in are rejected with a clear diagnostic.

Refactors the view-removal logic out of the RunE into a small
removeViewFiles(viewPath, colDir) helper for clarity.

Three new tests cover the ambiguity error path, the --in
disambiguation happy path, and the --in unknown-collection error.

Spec: cli/drop#req:drop-view-removes-schema-and-materialized-files
(no spec change required — this is a correctness fix the existing REQ
implicitly demands)

49 of 57 new or added lines in 1 file covered. (85.96%)

1 existing line in 1 file now uncovered.

7211 of 8959 relevant lines covered (80.49%)

0.95 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
84.5
3.25% cmd/ingitdb/commands/drop.go

Coverage Regressions

Lines Coverage ∆ File
1
84.5
3.25% cmd/ingitdb/commands/drop.go
Jobs
ID Job ID Ran Files Coverage
1 25784834508.1 13 May 2026 07:27AM UTC 102
80.49
GitHub Action Run
Source Files on build 25784834508
  • Tree
  • List 102
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7794ede5 on github
  • Prev Build on main (#25783933264)
  • Next Build on main (#25789120714)
  • 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