Skip to content

🚀 feat(estimate): Improve contract duration calculation debug mode#1949

Merged
mkmccarty merged 4 commits intomainfrom
mm-branch-1
Dec 16, 2025
Merged

🚀 feat(estimate): Improve contract duration calculation debug mode#1949
mkmccarty merged 4 commits intomainfrom
mm-branch-1

Conversation

@mkmccarty
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings December 16, 2025 04:16
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 enhances the contract duration calculation functionality by adding a debug mode parameter that enables detailed logging of calculation steps. The primary purpose is to improve debugging capabilities for contract duration estimates.

Key changes:

  • Added a debug boolean parameter to getContractDurationEstimate function to control logging
  • Refactored the calculation logic to separate modifier components (modHab, modELR, modShip) and collectible values (colHab, colELR, colShip) for clearer calculations
  • Uncommented and updated debug logging statements to log intermediate calculation values when debug mode is enabled

Reviewed changes

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

File Description
src/boost/estimate_time.go Added debug parameter to function signature, separated modifier calculations, added colHab tracking, and enabled conditional debug logging
src/boost/boost_import.go Updated function calls to pass the new debug parameter (set to false by default) with commented-out debug activation code

Comment thread src/boost/estimate_time.go Outdated
Comment thread src/boost/estimate_time.go
Comment thread src/boost/estimate_time.go
Comment thread src/boost/estimate_time.go Outdated
Comment thread src/boost/estimate_time.go Outdated
mkmccarty and others added 3 commits December 15, 2025 20:20
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mkmccarty mkmccarty merged commit ce63628 into main Dec 16, 2025
12 checks passed
@mkmccarty mkmccarty deleted the mm-branch-1 branch December 16, 2025 04:22
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.

2 participants