Skip to content

Fix: #6955 Fixed Personnel Cleanup to be More Reliable#6980

Merged
IllianiBird merged 6 commits into
MegaMek:masterfrom
IllianiBird:personnelCleanupFix
May 19, 2025
Merged

Fix: #6955 Fixed Personnel Cleanup to be More Reliable#6980
IllianiBird merged 6 commits into
MegaMek:masterfrom
IllianiBird:personnelCleanupFix

Conversation

@IllianiBird

@IllianiBird IllianiBird commented May 13, 2025

Copy link
Copy Markdown
Collaborator

Fix #6955

We were checking for death and resignation dates, not statuses, causing the system to treat anyone who left the unit as if they had retired.

As this concerns the permanent removal of personnel from a campaign I'm marking this as draft to be merged into 50.07 and not 50.06. I've also added unit tests, which really should have been added when this was first developed, but at that time I didn't know how to write tests.

@IllianiBird IllianiBird self-assigned this May 13, 2025
@IllianiBird IllianiBird requested a review from a team as a code owner May 13, 2025 19:49
@IllianiBird IllianiBird added Personnel Personnel-related Issues Tests Issues or Pull Requests related to the project tests labels May 13, 2025
@IllianiBird IllianiBird marked this pull request as draft May 13, 2025 19:49
@IllianiBird IllianiBird added For New Dev Cycle Improvement to Existing Feature Used with the RFE tag to indicate an improvement to an existing feature labels May 13, 2025
@codecov

codecov Bot commented May 13, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 71.42857% with 12 lines in your changes missing coverage. Please review.

Project coverage is 12.06%. Comparing base (49d3af0) to head (a3b9ae2).
Report is 29 commits behind head on master.

Files with missing lines Patch % Lines
MekHQ/src/mekhq/campaign/Campaign.java 0.00% 12 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6980      +/-   ##
============================================
+ Coverage     12.03%   12.06%   +0.03%     
- Complexity     6889     6914      +25     
============================================
  Files          1103     1104       +1     
  Lines        142284   142299      +15     
  Branches      21991    21990       -1     
============================================
+ Hits          17121    17168      +47     
+ Misses       123328   123295      -33     
- Partials       1835     1836       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@IllianiBird IllianiBird marked this pull request as ready for review May 19, 2025 23:10
@IllianiBird IllianiBird merged commit e30c856 into MegaMek:master May 19, 2025
6 checks passed
@IllianiBird IllianiBird deleted the personnelCleanupFix branch June 7, 2025 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Improvement to Existing Feature Used with the RFE tag to indicate an improvement to an existing feature Personnel Personnel-related Issues Tests Issues or Pull Requests related to the project tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Issue]Departed people not cleaning up.

1 participant