@bistenes Do you have any estimation Or design plan for this rewrite. I could also help something, i have skills on reactjs and redux, but not an expert.
I also tested master branch and not seen like issue fixed. 1.1 is working version for drug order. 1.2 is not working.
@mogoodrich I am using core 2.10 and order entry-1.2. You could refer the screenshots for the same. Let me also try to take some logs and put it here. Unable enter units which is not populating anything.
@mogoodrich The last build i took from master and tried with core 2.10 backend. The dropdown like Units are not populating which is working order entry-1.1.
@mogoodrich@bistenes@ruhanga I tested 1.2.1. The edit and delete buttons are not working. I remember edit and delete options works for lab orders on version 1.1.0. I raised this defect for just adding edit/ delete button for drug orders.
I checked out 1.1.0 (and cherry-picked 55d0b37 onto it, otherwise it wouldnât build). It appears that at that point one couldnât even add a new drug order.
hello @prapakaran,
my return button is throwing the same error as mention earlier with the latest order entry 1.2.1
@bistenes is this one of the things you intended to fix
@bistenes Please find my comments for both version.
1.1.0 - For lab order, delete button is working. For Drug order, edit/delete button are not working. I am able to add new drug order using core 2.10 version.
1.2.1- For lab order, delete button is not working. For drug order, edit/delete button are not working.
@spkabugo1 Can you please try the backend build. 2.10< it was fixed recently and not available on 2.10. Please find latest openmrs core build and use it. It is working. @ruhanga May i know when will be the next core version-2.11 get released.
@prapakaran I have just tried out the reference application version 2.11.0-SNAPSHOT, but still I get an HTTP Status 404 â Not Found error when you click on the Return button?
I am using orderentryui-1.2.0-SNAPSHOT and the latest release of the orderentry owa.
Thanks @prapakaran⊠I think Iâm seeing something close to what you are seeing, can you confirm if this is correct:
In 1.10, the links to Edit/Delete a Drug Order were not present (because of a bug)
We fixed this bug in 1.2.1, but then discovered that the links donât work! (because of another bug)
Obviously, we should fix the issue where the links donât work, but until we get to that we should at least change it back so that the links donât appear for Editing/Deleting drug orders.
For Lab Orders, deleting a lab order is working for me in 1.1.0 and 1.2.1. However, there is an exception⊠if you try to cancel a Drug Order and it fails, it breaks the entire page and you canât cancel a Lab Order until you reload the page.
I will prioritize removing the Edit/Cancel buttons for Drug Orders until we get that working, because it has definitely led to confusion!
@mogoodrich I am also in the same page. I raised the defect for adding drug order(edit/delete) and lab order(delete or cancel option). Is it possible to fix this issue? I am sure the feature need to be add to fulfill the requirements.
Hey @prapakaran. Weâre probably not going to be fixing that very soon, because itâs actually because of much deeper problems, as I mentioned earlier. A complete refactor of the data layer is needed.
Something that would be incredibly helpful that I think you or @ruhanga could do would be to create a suite of Cypress tests for the OE OWA.
Right now, the unit tests that exist are tightly coupled to the Redux store. This is a big problem because it means that we canât change the data layer without breaking the tests. We need integration tests: tests that mock only the network requests and test only the user interface.
We donât need many of these tests. They just need to check that the important pieces of functionality work.
Do you think either of you could make the time to do that? If so, I would be happy to provide guidance, clear specifications, and code review.