-
Notifications
You must be signed in to change notification settings - Fork 21
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
Move consistency checkers to a class (2) #192
Move consistency checkers to a class (2) #192
Conversation
Needs :
|
@fonsecadeline is it me or a test that needs to be introduced in PR #193 stayed on the PR #192 side after the split? |
I don't remember but I think I saw modified tests and thought that this PR adds tests by mistake (instead of just refacto) but now I checked again, I don't see any modified tests. Maybe I check the PR during rebase or something. |
For my part I thought I had added some tests, just because max_split tests where failing but in fact it is just that refactoring implies checks that we did not check before : https://gitlab.com/mapotempo/optimizer-api/-/issues/767 If I sum up, we did not use to check that services/shipments' visits_number was == 1 if no configuration was provided. Now, when no configuration is provided we assume no schedule is provided (which is correct) and reject if services.visits_number > 1. This PR is pending because we need to know what to do about those failing tests, but it will be needed for muti-tour. |
Thanks for the sum up. I forgot that this was that PR ! To not to break mt/dev, we can skip the offending tests, we already have a ticket that mentions these tests, we want to treat this ticket as soon as possible so that way we wouldn't creak out CI for everyone. Do we know why the "move" of checkers leads to broken tests in this PR? I am asking because we add the check |
You can see more details on the GitLab ticket but it is because before refacto we did not reach this check if we had no configuration in VRP (when coming from max_split there is apparently no configuration so it was okay). But now no configuration implies no schedule so the check fails). |
e69dffd
to
d763bc0
Compare
Thanks for the explanation @fonsecadeline Sorry by the way, I didn't know that it was already explained in the ticket :( Next time you can just copy/paste the ticket link saying that it is explained -> HERE 😄 It is hard to know what's discussed in the PR, what's discussed in the ticket |
OK ! Yes, it got a little bit messy :) |
|
||
# TODO : this should be replaced next line when max_split does not use visits_number > 1 without schedule anymore | ||
# next if schedule && schedule[:range_indices] || mission[:visits_number].to_i <= 1 | ||
next if configuration.nil? || schedule && schedule[:range_indices] || mission[:visits_number].to_i <= 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d763bc0
to
8583ded
Compare
8583ded
to
18be9f6
Compare
18be9f6
to
05405d8
Compare
This PR replaces #181