ONDC-Official / v1.2.0-logs

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

ToneTag - logistics BAP - compliance check #200

Closed abhinavv245 closed 7 months ago

abhinavv245 commented 9 months ago

All Flows

search

/init

/confirm

/update

/on_status

/track

/on_track

/cancel

/on_cancel

Note :Please run the utility before submitting the logs and attach the log_report.json along

Change location and category/id in each flow, also one of the flows should capture P2H2P Flow

jagadeeswar577 commented 9 months ago

@abhinavv245

Our merchant's stores are located at Bengaluru and our flows (Retail and Logistic) are tested for the same location.

So the below feedback is looking not relevant in this case.

/init/0/context/city must be equal to constant (std:040)

And all the above feedbacks are looking like for logistic payloads , is that understanding correct?

Thanks

abhinavv245 commented 9 months ago

@jagadeeswar577 the mentioned city code in context should match the city for fulfillment start location which in this case is Telangana as per the start/location/area_code: "500024 (Telangana) provided in Flow 1(Delivery). Kindly reverify all the logs.

Yes, this issue board is specifically for logistics logs.

abhinavv245 commented 9 months ago

Flow 1

/init

/confirm

/update

RTO Flow

/on_status

Cancel Flow

/search

/confirm

@jagadeeswar577 All the previously identified issues should be rectified before resubmitting the logs along with log_report.json file generated from the log verification tool for each flow.

jagadeeswar577 commented 9 months ago

Screenshot 2023-12-18 at 3 34 40 PM

As you can see in the attached screenshot, we have run the utility tool against all 3 flows and it reported zero issue.

Even the only one that we see "Message Id cannot be same for different sets of APIs" is appearing even though we are using different Message ID per API combo.

Can you let us know from where the above mentioned new issues are raised?

Is it from the same tool? If yes, why we didn't see them in our local machine??

@abhinavv245

Thanks

abhinavv245 commented 9 months ago

Hi @jagadeeswar577 Did you use the updated version of the tool (updated on 11 Dec, 2023)

jagadeeswar577 commented 9 months ago

@abhinavv245

No, we downloaded that utility on 7th December.

If we need to use updated one, we will check the same.

jagadeeswar577 commented 9 months ago

@abhinavv245

I have the latest log-verification-utility running in my local machine now.

And when I run the Cancel flow logs against it like below

curl -X POST -d "logPath=/Users/jagadeeswardevalla/Downloads/Logistics/Flow-3-Cancel" http://localhost:5000/validate/logistics

{"logReport":{}}

I see no issues reported here.

But you have listed below issues. So how we can check and fix it if we don't see any issues here in local??

Screenshot 2023-12-18 at 5 01 07 PM

abhinavv245 commented 9 months ago

@jagadeeswar577 please make sure the correct path is given, when I am running the utility using the cURL or Postman, it is generating the complete log report.

abhinavv245 commented 9 months ago

Flow 1 (Order delivered)

/confirm

/update

/on_update

Flow 2 (RTO)

Flow 3 - (Cancel)

/on_cancel

/on_status

@jagadeeswar577

jagadeeswar577 commented 8 months ago

Hi @abhinavv245

For Flow 2 (RTO) ,

when customer wants to return the item(s) back to merchant due to some reason, we are creating a new service request to the logistic delivery to pick up from customer location(start) to the merchant location(end).

So why here on_cancel file comes ?

For Flow 3 - (Cancel),

We are cancelling the Logistic Service request as buyer cancel the order before the item is picked by logistic partner.

So why here RTO item will also be added once the order is cancelled and RTO is initiated comes?

abhinavv245 commented 8 months ago

@jagadeeswar577

Flow 2 RTO (return to origin) needs to be tested, it means the buyer refused to accept the order or was not available, so the LSP cancelled the order (on_cancel) and initiated the RTO (backward shipment is added). It seems you are confusing it with another use case (return) which will be a new order altogether.

Flow 3 (Cancel) - As per the logs submitted, order was picked up at "2023-12-19T11:10:00.073Z" and was cancelled at "2023-12-19T11:10:05.373Z" , so backward shipment will be added.

BLR-0118 commented 8 months ago

Flow 1 - Delivery

  1. /search:

    • suggest you use payment.type as "POST-FULFILLMENT" as this is what's enabled for now;
    • also applies to other APIs like /init;
  2. /init:

    • fulfillment.start.contact (for merchant / warehouse) & fulfillment.end.contact (for buyer) should show different contact nos & email IDs;
    • if payment.type is ON-ORDER, you also need payment.collected_by;
  3. /confirm:

    • pls remove bpp_terms, bap_terms as this isn't enabled yet;
    • PCC (fulfillment.start.instructions.code & short_desc) are required when order ready_to_ship is "yes";
    • DCC may be set only after order is picked up;
    • PCC & DCC can't be the same;
  4. /update:

    • linked order details may be sent only if there is a change in the weight / dim of the goods being shipped (from /confirm);
BLR-0118 commented 8 months ago

pls resubmit logs only for flow 1 @jagadeeswar577

jagadeeswar577 commented 7 months ago

@BLR-0118 We have been submitted the mentioned logs last month(https://github.com/jagadeeswar577/ToneTag/commit/a87869eec3415527be1d115a774367a7bd73de10) and the PR also has been merged.

Please can you let us know any updates here on the same ?

Thank you

BLR-0118 commented 7 months ago

@jagadeeswar577 - ready_to_ship is being sent in /confirm & again in /update; this is incorrect; clearing logs for v1.2.0 subject to the above being fixed;