Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #6545: Prevented Self-Crewed Unit Crew from Going on Maternity Leave Mid-Refit, Mid-Repair, or Mid-Mothballing #6582

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

IllianiCBT
Copy link
Collaborator

@IllianiCBT IllianiCBT commented Apr 7, 2025

  • Replaced isActive check with the new isBusy method in maternity leave eligibility logic.
  • Added isBusy method in Person class to determine personnel activity based on status, unit assignments, and tasks.
    • Includes checks for self-crewed units, technicians, unit deployments, and various task states (mothballing, refitting, repairing).

Fix #6545

…it, Mid-Repair, or Mid-Mothballing

- Replaced `isActive` check with the new `isBusy` method in maternity leave eligibility logic.
- Added `isBusy` method in `Person` class to determine personnel activity based on status, unit assignments, and tasks.
  - Includes checks for self-crewed units, technicians, unit deployments, and various task states (mothballing, refitting, repairing).
@IllianiCBT IllianiCBT added Bug Parts/Repair/Refit Personnel Personnel-related Issues Severity: Medium Issues described as medium severity as per the new issue form labels Apr 7, 2025
@IllianiCBT IllianiCBT self-assigned this Apr 7, 2025
Copy link

codecov bot commented Apr 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 11.43%. Comparing base (f44952c) to head (142a3d2).
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #6582   +/-   ##
=========================================
  Coverage     11.43%   11.43%           
- Complexity     6451     6454    +3     
=========================================
  Files          1087     1087           
  Lines        139447   139475   +28     
  Branches      21560    21575   +15     
=========================================
+ Hits          15944    15952    +8     
- Misses       121908   121927   +19     
- Partials       1595     1596    +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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Parts/Repair/Refit Personnel Personnel-related Issues Severity: Medium Issues described as medium severity as per the new issue form
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFE] prevent personnel from leaving during Large Vessel refits
1 participant