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

Simplify multi-pickup or multi-delivery shipments #261

Conversation

senhalil
Copy link
Contributor

@senhalil senhalil commented Aug 2, 2021

  • Adds a simplification routine to simplify complex shipments into a multiple simple shipments

  • Adds a deep_copy helper function that can be moved into base.rb (with some modification after testing)

  • Logs the simplification operations in a uniform way

  • Needs Improve base.rb & update active_hash #254 to be merged first

Closes optimizer-api/-/issues/785

Remove dead code
Fix y_ids= operators
Find raises if id does not exists
Add getter for has_many ids
Fix id getter of belongs_to
Functions keep the id(s) up-to-date
Generate only necessary id functions
Generate only correct ids functions
@senhalil senhalil force-pushed the feat/simplify_multi_pickup_or_multi_delivery_shipments branch from f73e4e2 to 6891323 Compare August 4, 2021 09:39
@senhalil senhalil force-pushed the feat/simplify_multi_pickup_or_multi_delivery_shipments branch from 6891323 to 7c429ce Compare August 4, 2021 12:47
lib/interpreters/periodic_visits.rb Show resolved Hide resolved
models/concerns/validate_data.rb Show resolved Hide resolved
lib/helper.rb Outdated Show resolved Hide resolved
wrappers/wrapper.rb Show resolved Hide resolved
test/wrapper_test.rb Outdated Show resolved Hide resolved
wrappers/wrapper.rb Show resolved Hide resolved
@senhalil senhalil force-pushed the feat/simplify_multi_pickup_or_multi_delivery_shipments branch 3 times, most recently from 52499ae to 3c6c1e8 Compare August 6, 2021 13:01
@senhalil senhalil force-pushed the feat/simplify_multi_pickup_or_multi_delivery_shipments branch from 3c6c1e8 to f580e5f Compare August 6, 2021 15:15
@senhalil senhalil force-pushed the feat/simplify_multi_pickup_or_multi_delivery_shipments branch from f580e5f to 0755733 Compare August 10, 2021 08:11
@fab-girard fab-girard merged commit cf716b0 into Mapotempo:dev Aug 10, 2021
@senhalil senhalil deleted the feat/simplify_multi_pickup_or_multi_delivery_shipments branch August 11, 2021 12:41
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.

3 participants