Skip to content

refactor(config)!: rename MigrationResult added_count/sections_added to changed_count/sections_changed#3287

Merged
bug-ops merged 1 commit intomainfrom
rename-migrationresult-added
Apr 23, 2026
Merged

refactor(config)!: rename MigrationResult added_count/sections_added to changed_count/sections_changed#3287
bug-ops merged 1 commit intomainfrom
rename-migrationresult-added

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Apr 23, 2026

Summary

  • Renames MigrationResult::added_countchanged_count across 6 files
  • Renames MigrationResult::sections_addedsections_changed across 6 files
  • Updates doc comments to reflect that fields track both additions and removals
  • Adds [Unreleased] CHANGELOG entry

Motivation

After #3251, migrate_compression_predictor_config used added_count: 1 to report a removal, making the field name semantically inverted. The rename aligns the field names with their actual behavior (tracking any config change, not only additions).

Test plan

  • rg 'added_count|sections_added' --type rust → 0 hits
  • cargo +nightly fmt --check → pass
  • cargo clippy --workspace -- -D warnings → clean
  • cargo nextest run --workspace --lib --bins → 8222 passed, 0 failed

Closes #3282

@github-actions github-actions Bot added documentation Improvements or additions to documentation rust Rust code changes core zeph-core crate refactor Code refactoring without functional changes size/XL Extra large PR (500+ lines) labels Apr 23, 2026
…to changed_count/sections_changed

The fields were originally named for additions only, but after #3251 they
also track removals. Rename to reflect the actual semantics.

BREAKING CHANGE: MigrationResult::added_count renamed to changed_count;
MigrationResult::sections_added renamed to sections_changed.

Closes #3282
@bug-ops bug-ops force-pushed the rename-migrationresult-added branch from 370f25e to dde4d42 Compare April 23, 2026 22:17
@bug-ops bug-ops enabled auto-merge (squash) April 23, 2026 22:17
@bug-ops bug-ops merged commit 639fdd9 into main Apr 23, 2026
36 checks passed
@bug-ops bug-ops deleted the rename-migrationresult-added branch April 23, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core zeph-core crate documentation Improvements or additions to documentation refactor Code refactoring without functional changes rust Rust code changes size/XL Extra large PR (500+ lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: rename MigrationResult::added_count to changed_count

1 participant