Skip to content

fix: Add baseline subtraction for global config diffs#26

Merged
TsekNet merged 1 commit into
mainfrom
global-baseline
Mar 20, 2026
Merged

fix: Add baseline subtraction for global config diffs#26
TsekNet merged 1 commit into
mainfrom
global-baseline

Conversation

@TsekNet

@TsekNet TsekNet commented Mar 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • Applies baseline subtraction to global config diff block (policies, queries, config sections)
  • Adds subtractConfigChanges() for org_settings/agent_options/controls
  • Merges base branch's base.yml with env overlay for baseline global parsing
  • resolveBaselineDefault() now handles base+env merge for baseline

Problem

Baseline subtraction from #23 only covered per-team diffs. Global config changes from default.yml/base.yml still showed all pending undeployed changes.

Test plan

  • All existing tests pass (go test ./...)
  • Re-run CI on MRs touching global config to verify

Ref #25

Global config changes (default.yml/base.yml) were not subtracted,
causing MRs touching global config to show all pending undeployed
changes. Now applies subtractConfigChanges and subtractResourceDiff
to the global diff block.

Also merges base branch base.yml with env overlay for baseline
global parsing.

Ref #25
@TsekNet TsekNet merged commit 2219967 into main Mar 20, 2026
1 check passed
@TsekNet TsekNet deleted the global-baseline branch March 20, 2026 16:53
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.

1 participant