-
Notifications
You must be signed in to change notification settings - Fork 339
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
add 'description' to unassigned #403
Comments
What about simply using your internal values as job/pickup/delivery id? Then you'd get the values you're looking for directly under |
That was actually our first revision! :) However we found out that multiple jobs/shipments can have the same points -- and for VROOM all job/shipment IDs have to be unique. So we auto-generate them, and store our internal ID's in |
Actually no, currently you can have duplicate ids across task types ( I don't really get what's blocking you from using your own ids in |
ID uniqueness is the primary reason, according to the API.md docs, https://github.com/VROOM-Project/vroom/blob/master/docs/API.md
If as you say IDs can be repeating, then it's certainly not an issue! If there is such a guarantee for non-uniqueness then the docs should be updated too. Secondary reasons was future plans to store our own (stringified) JSON's for our own internal extra info, e.g.: |
The current behaviour is to not enforce any kind of uniqueness on job/pickup/delivery task I think the right thing to do at some point is to enforce uniqueness for
See similar discussion back in #243, it looks like a workaround where a cleaner client-side approach could be used. |
In our particular case input files are generated by front-end task and put in a queue. The backend once a while runs that queue, gets results, parses and processes them. It would be really convenient to have a reliable way to pass information some way (e.g. through 'description'). Otherwise we have to parse input files in the backend task just to get that information. We can live with that, but I don't understand the logic for not doing it: Why add back 'description' to 'steps', but not to 'vehicles' (start/end) or 'unassigned'? If the reason is more convenient plotting on the map for 'steps', then why not for 'vehicles' or 'unassigned' -- we want more convenient plotting there, too. |
Yeah, to some extent there is no foolproof logic behind this, because it's the result of successive subjective choices and a trade-off between convenience and not bloating the API. At this point we could come to a more consistent output by adding the I see the question of vehicle start and end differently as the |
I agree. Thanks for considering this feature. I'll try to work on it. |
First and foremost I'd like to thank you for all your work on vroom project!
Currently for
jobs
andshipments
solutions,steps
contains theirdescription
s -- this is very useful for programatically tracking their initial locations (e.g. we add our internal ID's there.)However if the solution is not found, they are added to
unassigned
array without their correspondingdescription
s. This makes it harder for us to figure out their initial locations (have to indirectly go through initial json input).I think it would be very useful if
unassigned
stops had their initialdescription
s. Also similarly forstart
andend
steps (would be great if those had their vehiclestartDescription
andendDescription
). Thanks!The text was updated successfully, but these errors were encountered: