The offline functionality has a weird error condition where a Requisition that is visible in the grid while offline does not have the "Remove offline copy" button and does not have the checkmark in the "Offline" column. So is it really an offline requisition? Yes, it is, because when you click View and go into it, there is real data there.
Steps to Reproduce:
Log in as a user who has permissions to initiate a requisition (I used Administrator on test.openlmis.org when reporting this bug). Submit it, approve it, and you can even convert it to an order.
Work on a requisition totally online (do not go offline yet). Do not yet submit it.
Work on another requisition, and go offline this time after filling some of it out. (Turn off wi-fi or whatever to go offline).
While offline, navigate to Requisitions > View
Filter for the Facility and Program where your requisitions were from.
ERROR: You see your first requisition on this table, but "Remove offline copy" button is not there and "Offline" column is not checked. How is that possible if we are looking at this requisition grid while we are offline?
In my experience, you can click "View Requisition", which is weird because it said the requisition was not available offline.
SCREENSHOT ATTACHED. This was witnessed by Nick, Josh, Sam, Chongsun and Brandon.
Note: Even if you click Reload in your Chrome browser to clear the AngularJS logic and redraw the screen, it still shows this. Appears to be some kind of logic bug in the UI.
Environment
None
Attachments
1
zombie-offline-requisition.png
28 Mar, 2017
QAlity Plus - Test Management
Checklists
Activity
Show:
Lucyna Laska
April 6, 2017 at 7:53 AM
All good. I followed through the mentioned steps. First requisition on this table has "Remove Requisitions Offline" button and "Offline" column is checked.
Done
Pinned fields
Click on the next to a field label to start pinning.
The offline functionality has a weird error condition where a Requisition that is visible in the grid while offline does not have the "Remove offline copy" button and does not have the checkmark in the "Offline" column. So is it really an offline requisition? Yes, it is, because when you click View and go into it, there is real data there.
Steps to Reproduce:
Log in as a user who has permissions to initiate a requisition (I used Administrator on test.openlmis.org when reporting this bug). Submit it, approve it, and you can even convert it to an order.
Work on a requisition totally online (do not go offline yet). Do not yet submit it.
Work on another requisition, and go offline this time after filling some of it out. (Turn off wi-fi or whatever to go offline).
While offline, navigate to Requisitions > View
Filter for the Facility and Program where your requisitions were from.
ERROR: You see your first requisition on this table, but "Remove offline copy" button is not there and "Offline" column is not checked. How is that possible if we are looking at this requisition grid while we are offline?
In my experience, you can click "View Requisition", which is weird because it said the requisition was not available offline.
SCREENSHOT ATTACHED. This was witnessed by Nick, Josh, Sam, Chongsun and Brandon.
Note: Even if you click Reload in your Chrome browser to clear the AngularJS logic and redraw the screen, it still shows this. Appears to be some kind of logic bug in the UI.