Skip to content

feat(bundle): --exclude-labels for node-type filtering in bundle export (#1323) - #1692

Merged
Shashankss1205 merged 1 commit into
mainfrom
feat/1323-exclude-labels
Sep 2, 2026
Merged

Shashankss1205 merged 1 commit into
mainfrom
feat/1323-exclude-labels

Conversation

@Shashankss1205

Copy link
Copy Markdown
Collaborator

Implements the #1323 proposal: cgc bundle export project.cgc --repo . --exclude-labels DbTable,ExternalClass.

  • Excluded nodes are dropped at extraction; their export ids are recorded and every edge touching one is dropped too — a filtered bundle can never carry a dangling endpoint (the Bug: bundle import fails with "Create node n expects primary key name as input" - _PK_MAP missing DbTable/ExternalClass #1322-class import failures the issue worried about)
  • metadata.json records excluded_labels so consumers can tell what a bundle omits
  • Exposed on both cgc bundle export and the cgc export shortcut (the CLI parity meta-test enforces the forwarding)
  • Real-Kùzu test: build a graph with code + datasource metadata, export with exclusions, assert label absence, endpoint integrity, metadata, and a clean import into a fresh database

Unit suite 1459 green; CLI meta-tests green.

Fixes #1323

…exports (#1323)

Path-based ignores can never reach datasource-scanned nodes (DbTable comes
from MySQL introspection, not file discovery), so teams post-processed .cgc
ZIPs by hand. Export now takes a label exclusion list: excluded nodes are
skipped, their ids recorded, and every edge touching one is dropped too —
no dangling endpoints, verified by a real-Kùzu export→inspect→import
roundtrip. The exclusion is recorded in bundle metadata for transparency,
and both 'cgc bundle export' and the 'cgc export' shortcut expose
--exclude-labels.
@vercel

vercel Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
code-graph-context-pack Ready Ready Preview Sep 2, 2026 9:12pm UTC

@github-project-automation github-project-automation Bot moved this to Backlog tasks in CGC Progress Board Sep 2, 2026
@Shashankss1205
Shashankss1205 merged commit b87f0fd into main Sep 2, 2026
11 of 19 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog tasks to Done in CGC Progress Board Sep 2, 2026
@Shashankss1205
Shashankss1205 deleted the feat/1323-exclude-labels branch September 2, 2026 21:12
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Hi! 👋 Join our CodeGraphContext Discord channel to collaborate: https://discord.gg/dR4QY32uYQ

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🔍 PR Code Graph Analysis

feat(bundle): --exclude-labels for node-type filtering in bundle export (#1323) (#1692)

📊 Interactive Visualization

View the blast radius graph: PR Reviewer Dashboard

📦 Artifacts

The graph JSON has been uploaded as a build artifact: pr-code-graph-1692


Generated by CodeGraphContext using FalkorDB Lite

This branch was successfully deployed

1 active deployment
Preview — 76a680f4 Deployed Sep 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Feature: Support --exclude-labels for node type filtering in cgc bundle export

1 participant