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 Mature Orders Algorithm #827

Merged
merged 4 commits into from
Nov 21, 2022
Merged

Fix Mature Orders Algorithm #827

merged 4 commits into from
Nov 21, 2022

Conversation

sunce86
Copy link
Contributor

@sunce86 sunce86 commented Nov 20, 2022

Fixes #826

By observing the logs multiple solvers submitted the same solution containing only one order, where Baseline solver solution was considered mature while others not (Baseline solver ended as the winner).

I found the case where existing algorithm is not working which is documented by the unit test mature_by_association_in_between

Test Plan

Unit test mature_by_association_in_between passing. Revert the fix and make sure the unit test fails in that case. -> s2 solution not being considered mature while the exact same s4 is considered mature.

@sunce86 sunce86 requested a review from a team as a code owner November 20, 2022 03:59
Copy link
Contributor

@nlordell nlordell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch! 🕵️

@sunce86 sunce86 merged commit 19f50bb into main Nov 21, 2022
@sunce86 sunce86 deleted the fix_matures branch November 21, 2022 16:08
@github-actions github-actions bot locked and limited conversation to collaborators Nov 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Non-mature Orders
3 participants