Skip to content

feat(lineage): add Body Changes view mode to filter config-only changes#1268

Draft
even-wei wants to merge 6 commits intomainfrom
feature/drc-3047-body-changes-mode
Draft

feat(lineage): add Body Changes view mode to filter config-only changes#1268
even-wei wants to merge 6 commits intomainfrom
feature/drc-3047-body-changes-mode

Conversation

@even-wei
Copy link
Copy Markdown
Contributor

@even-wei even-wei commented Apr 1, 2026

PR checklist

  • Ensure you have added or ran the appropriate tests for your PR.
  • DCO signed

What type of PR is this?

Feature

What this PR does / why we need it:

Adds a new "Body Changes" mode to the lineage view Mode dropdown. This mode uses state:modified.body, state:modified.macros, and state:modified.contract selectors to filter out config-only YAML changes (tags, descriptions, deprecation dates, warehouse, materialization, etc.) while keeping data-impacting changes visible.

This reduces noise for users whose PRs touch YAML config without changing SQL logic — a pain point raised by customers (see Slack thread in #customer-super).

Which issue(s) this PR fixes:

Resolves DRC-3047

Special notes for your reviewer:

  • The existing "Changed Models" (1+state:modified+) and "All" modes remain unchanged
  • No defaults are changed — changed_models is still the default for UI and MCP
  • The recce summary command is not changed in this PR; it already excludes config-only changes via checksum comparison. A follow-up issue can add full selector parity if needed
  • The MCP impact_analysis tool already uses this same selector pattern (state:modified.body+ state:modified.macros+ state:modified.contract+)
  • Pre-existing selector test failures (DuckDB config issue) are unrelated

Does this PR introduce a user-facing change?:

Yes — new "Body Changes" option in the lineage view Mode dropdown that filters to only SQL body, macro, and contract changes.

🤖 Generated with Claude Code

@even-wei even-wei self-assigned this Apr 1, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
recce/adapter/base.py 45.58% <ø> (ø)
recce/adapter/dbt_adapter/__init__.py 78.82% <100.00%> (+0.03%) ⬆️
recce/mcp_server.py 87.15% <ø> (ø)
recce/server.py 63.69% <100.00%> (ø)
recce/tasks/core.py 79.72% <ø> (ø)
recce/tasks/lineage.py 100.00% <100.00%> (ø)
recce/tasks/rowcount.py 90.04% <100.00%> (ø)
recce/tasks/schema.py 46.51% <100.00%> (ø)
tests/adapter/dbt_adapter/test_selector.py 100.00% <100.00%> (ø)
tests/tasks/test_lineage.py 100.00% <ø> (ø)
... and 2 more

... and 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

even-wei and others added 2 commits April 1, 2026 12:12
Add a new "Body Changes" mode to the lineage view Mode dropdown that uses
state:modified.body + state:modified.macros + state:modified.contract
selectors. This filters out config-only YAML changes (tags, descriptions,
deprecation dates, etc.) while keeping data-impacting changes visible.

The existing "Changed Models" and "All" modes remain unchanged.

Resolves DRC-3047

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: even-wei <evenwei@infuseai.io>
- Add missing body_changes to LineageView.tsx and LineageDiffView.tsx types
- Handle body_changes in Cloud LineageView node filtering (was falling through to "all")
- Update stale comments in run.ts, LineageViewTopBar docstring, and 3 test files
- Add Body Changes radio to dropdown assertion in existing test
- Add interaction test for switching to body_changes mode

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: even-wei <evenwei@infuseai.io>
@even-wei even-wei force-pushed the feature/drc-3047-body-changes-mode branch from 062059a to 9fbdd18 Compare April 1, 2026 04:12
even-wei and others added 4 commits April 1, 2026 12:33
Cover the body_changes branch in select_nodes to fix patch coverage.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: even-wei <evenwei@infuseai.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants