Skip to content

Rename AlignmentStatistics variables to align* convention - #513

Merged
dav-sonn merged 1 commit into
developfrom
MV-update-varnames-in-AlignmentStatistics
Aug 28, 2026
Merged

Rename AlignmentStatistics variables to align* convention#513
dav-sonn merged 1 commit into
developfrom
MV-update-varnames-in-AlignmentStatistics

Conversation

@Mariia-Var

Copy link
Copy Markdown
Collaborator

Apply the Alignment module naming convention to all 30 variables in
AlignmentStatistics: fields, accessors and @column names now carry the
align prefix (e.g. shareCohabitingSim -> alignPartnerSimShare).

CSV columns are sorted alphabetically by field name, so the headers in
AlignmentStatistics.csv are both renamed and reordered; the expected
integration-test file is updated to match, with values unchanged.

  Apply the Alignment module naming convention to all 30 variables in
  AlignmentStatistics: fields, accessors and @column names now carry the
  align prefix (e.g. shareCohabitingSim -> alignPartnerSimShare).

  CSV columns are sorted alphabetically by field name, so the headers in
  AlignmentStatistics.csv are both renamed and reordered; the expected
  integration-test file is updated to match, with values unchanged.
Copilot AI lite review requested due to automatic review settings August 28, 2026 11:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR standardizes AlignmentStatistics naming to the Alignment module’s align* convention by renaming all relevant fields/getters/setters and aligning the JPA @Column names accordingly, so downstream exports (notably AlignmentStatistics.csv) reflect the updated naming scheme.

Changes:

  • Renamed AlignmentStatistics variables (fields + accessors) to align* names (e.g., partnership/fertility/in-school/util adjustment/employment share measures).
  • Updated JPA @Column names to match the new align_* naming convention.
  • Updated the expected AlignmentStatistics.csv headers (renamed + reordered) to match the new exported column names.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/main/java/simpaths/data/statistics/AlignmentStatistics.java Renames alignment statistics fields/accessors and updates @Column names; updates update() to use the new setters.
src/test/java/simpaths/integrationtest/expected/AlignmentStatistics.csv Updates expected CSV header names/order to match the renamed AlignmentStatistics fields.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@dav-sonn
dav-sonn merged commit b61e8f9 into develop Aug 28, 2026
7 checks passed
@Mariia-Var
Mariia-Var deleted the MV-update-varnames-in-AlignmentStatistics branch August 28, 2026 15:20
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.

3 participants