Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Use Case 1 : New buckets and logics for Bucket

...

Use the same API vehicle/assign to depart with is_scheduled: false.

New webhook Three new events are to be added trip_vehicle_departed in FLM_TRIP_V2, FLM_TRIP . New trip event needs to be created. in After commit of event webhook needs to be triggered. Create a new file for the event trip-vehicle-departed-event.js.

Send a new flag createDepartEvent to assignOrScheduleTripToWorkerAndVehicle . We will send this flag only if is_scheduled is false. Now use the same in assignTripToWorkerAndVehicle to trigger tripEvents.TripVehicleDepart Event.

Depart is same as assign check if some event is already triggered for it. why new event is required when we already had worker assigned for trip, vehicle assigned fo trip.?

UI actions and depart same or diff as notification also therein the market place and a webhook is to be triggered for the same.

trip_assign_to_vehicle

trip_schedule_worker
trip_schedule_vehicle

Depart is same as assign in our case.

Single time depart is allowed. → BE will already give the error

...