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 penalties logging #55

Merged
merged 6 commits into from
Mar 20, 2024
Merged

Conversation

mackdk
Copy link
Contributor

@mackdk mackdk commented Feb 26, 2024

This PR fixes an issue with the logging of penalties associated with 1-2 subscriptions. This logging is enabled by default for the OptaPlanner class and it involves recomputing the scores. Currently however, this calculation is not performed in the same way as during the actual OptaPlanner execution, thus might lead to a failure under certain scenarios.

This change address the issue and fixes the way the score director is initialized, to make sure is consistent with the one used during the main computation. Moreover, a minor refactoring has been implemented to clean up the code.

Copy link

sonarcloud bot commented Feb 26, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@mackdk mackdk merged commit 1402d67 into uyuni-project:master Mar 20, 2024
2 checks passed
@mackdk mackdk deleted the fix-penalties-logging branch March 20, 2024 14:24
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.

1 participant