Enhance weekly hours constraints and update documentation - #203
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new configurable weekly worked-hours cap to the solver, improves documentation, and adds robust validation and testing for this new feature. The default weekly cap is now set to 36 hours, and the constraint now properly counts all configured worked vacations, including night shifts. The change is reflected across the backend, configuration files, documentation, and tests.
Solver constraint and configuration improvements:
solver.max_weekly_hoursas a configurable weekly worked-hours cap per agent (default 36h), enforced in the solver and counted for all configured worked vacations, including night shifts. The constraint now uses this value instead of a hardcoded limit and is documented in the code and config files. [1] [2] [3] [4] [5] [6] [7] [8] [9]Documentation and changelog updates:
CHANGELOG.mdand documentation files to describe the new weekly hours cap and clarify related configuration options. [1] [2] [3]Validation and schema enhancements:
max_weekly_hourssetting, requiring it to be a positive number, and updated example configs accordingly. [1] [2]Testing improvements:
Version bump:
0.9.3in both backend and frontend to reflect these changes. [1] [2]