[FE] Proof of Delivery Manage Action page loads all Orderables for empty PoD

Description

At the Orders -> Manage Proof of Delivery -> View Proof of Delivery page, there is something wrong with orderable loading.

For empty (no line items) PoD it will load all orderables.

For non-empty PoD, it will download only orderables referenced by PoD.

The difference is roughly 10seconds for empty and under 1second for non-empty PoD.

Environment

None

Checklists

Activity

Show:

Maciej Grochalski February 26, 2025 at 11:06 AM

I confirm - no call for orderables nor lots were made.

Dominik Noga February 26, 2025 at 6:09 AM

could you please verify this ticket?
Reproduction:

  1. Log in on UAT as the administrator (with cleared cache)

  2. Go to orders → proof of delivery

  3. Select the following filter values

    1. Requesting Facility: Comfort Health Clinic

    2. Program: Family planning

  4. Now search for pod’s, and open the one on the top. With network tab opened.

  5. This one does not have any line Items, so it should not make the request for orderables and lots

  6. Next find the pod with some line items and check will the request for orderables and lots(if needed) will be made.

Oliver Lewandowski February 25, 2025 at 12:04 PM

Merged

Unresolved
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Original estimate

Time tracking

1d 3h 30m logged

Components

Fix versions

Affects versions

Priority

Time Assistant

Created January 23, 2025 at 4:20 PM
Updated April 1, 2025 at 2:53 PM