ONDC-Official / v1.2.0-logs

Retail and Logistics Logs for 1.2.0
9 stars 248 forks source link

QWQER - LSP - compliance check #1196

Open abhinavv245 opened 5 months ago

abhinavv245 commented 5 months ago

Delivered Flow

/on_search

/init

/on_init

/on_confirm

/on_status

RTO Flow

/on_cancel

@sajithjayaram

abhinavv245 commented 5 months ago

Delivered Flow

/on_confirm

Cancelled Flow

/on_cancel

TAT Breach Flow

/on_cancel

@sajithjayaram

iamsajith commented 5 months ago

We resolved the issue and submitted the changes as a new PR

@abhinavv245 @sandeepshahi

abhinavv245 commented 5 months ago

Delivered Flow

/on_status

Cancelled Flow

/on_cancel

/on_status

TAT breach

/on_cancel

@sajithjayaram

iamsajith commented 5 months ago

We fixed the issues highlighted and submitted the updated as new PR. We've verified using the utility you provided and didn't find any problems. If you come across any, could you tell us which utility you're using?

@abhinavv245 @sandeepshahi @RupalSingla

BLR-0118 commented 5 months ago

Group A

Flow 2:

  1. /on_update:

    • trying to correlate pickup & delivery slots, avg pickup time, TAT:
    • /on_update timestamp is 15:07:03, avg pickup time is 27 min but pickup slot is 15:07:03-15:36:03 (means min pickup time is 0, max is 29 min & avg for this sample is 15 min) - is this correct?
    • S2D is 29 min which means delivery slot should be 15:36:03-16:05:03 (correct);
  2. /on_track:

    • pls send the complete payload as per contract;

Group B

  1. TAT breach - on_cancel:

    • precancel_state.updated_at should be when fulfillment state was updated to "Pending", not the timestamp for on_cancel;
  2. RTO cancel - on_cancel:

    • same issue as for TAT breach;
    • suggest you not use slot itself for RTO fulfillment, instead of only range.start;
BLR-0118 commented 5 months ago

@iamsajith - pls fix the above & share only relevant logs when done;

BLR-0118 commented 4 months ago

Group A - flow 2

  1. /on_update:

    • order.state & fulfillment state not in sync (/on_status_agent_assigned has correct sync);
    • not clear what fulfillment.end.time.duration of PT6M means?
  2. /on_status*:

    • all /on_status have invalid key message.order_id;

Group B - TAT breach

  1. /cancel:
    • reason code 006 is not valid for LBNP (should be 007); in this case, LSP should NACK /cancel as per contract;
BLR-0118 commented 4 months ago

@iamsajith

sajithjayaram commented 4 months ago

issues mentioned above are fixed @BLR-0118 @abhinavv245 @sandeepshahi

sajithjayaram commented 4 months ago

updated logs are submitted as a new PR @BLR-0118 @abhinavv245 @sandeepshahi

BLR-0118 commented 4 months ago

Group A (flow 2) - ok; Group B (TAT breach) - ok;

BLR-0118 commented 4 months ago

Group B (Cancel - RTO) issues:

  1. /on_cancel:

    • start & end locations for fulfillment "2" required;
  2. /on_status (rto disposed):

    • fulfillment structure different from /on_cancel above;
    • order audit trail is created for every post-confirm event and the same returned in any post-confirm call (on_status, on_cancel, on_update);
BLR-0118 commented 4 months ago

@iamsajith - pls resubmit Group B (cancel - RTO) flow;

abhinavv245 commented 4 months ago

@iamsajith As per the discussion on call, elaborating on the points above.

/on_status

/on_cancel

iamsajith commented 4 months ago

issues highlighted above are fixed @BLR-0118 @abhinavv245 @sandeepshahi

BLR-0118 commented 4 months ago

Group B - Cancel (RTO-No)

  1. /on_confirm:

    • pickup timestamp provided, even though fulfillment state is Pending;
    • pickup & delivery timeslots don't align with average pickup time (25 min) & TAT (26 min): pickup timeslot is 11:29:36-11:54:36, assuming the worst case i.e. pickup happens at 11:54:36, delivery will happen between 11:54:36-11:55:36 (i.e. 0-1 min S2D TAT)?
  2. /track:

    • called with order id 927616 which gets changed to 369313 in /on_track?
  3. /on_cancel_rto_dispose:

    • /on_confirm shows fulfillment start/end address as 560001 (Vasant Nagar) / 560051 (Raj Bhavan Road) & this was changed to something else here?
    • for RTO fulfillment, since RTO happens after order is picked up, the correct start address should be somewhere between the start & end address above, right?
  4. not sure if correct order trail is being maintained e.g.

    • quote.ttl shows in /on_init & /on_status APIs, but not in /on_confirm;
    • fulfillment.tracking, for forward shipment, is true everywhere, but false in /on_cancel?
BLR-0118 commented 4 months ago

@sajithjayaram - pls fix above & resubmit;

iamsajith commented 4 months ago

Group B - Cancel (RTO-No) - Clarification

  1. /on_confirm:

The delivery time we have provided is the estimated time provided by Google and calculated using GPS locations. However, we are now planning to add buffer time specific to each region.

  1. /on_cancel_rto_dispose:

In the case of an RTO scenario, the delivery agent can cancel the order upon reaching the location. Only if the order remains undelivered, can the delivery agent cancel it, and at that point, the correct start address would be the buyer's location.

@BLR-0118 @abhinavv245

sajithjayaram commented 4 months ago

Below are the fixes we have made in this pull request

/on_confirm

/track

/on_cancel_rto_dispose

Order Trail Maintenance

@BLR-0118 @abhinavv245 @sandeepshahi

abhinavv245 commented 4 months ago

/on_cancel (RTO)

@sajithjayaram Kindly update here once fixed.

sajithjayaram commented 4 months ago

updated pull request is here

@BLR-0118 @abhinavv245 @sandeepshahi