Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fix) O3-2666: Order getting removed after clicking on Back to order basket #1549

Conversation

usamaidrsk
Copy link
Member

@usamaidrsk usamaidrsk commented Dec 19, 2023

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes a conventional commit label. See existing PR titles for inspiration.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

  • Fix Order getting removed after clicking on Back to order basket

Screenshots

Related Issue

O3-2666

Other

@usamaidrsk usamaidrsk changed the title (Fix) 03-2666: Order getting removed after clicking on Back to order basket (Fix) 03-2666: Order getting removed after clicking on Back to order basket Dec 19, 2023
@vasharma05 vasharma05 changed the title (Fix) 03-2666: Order getting removed after clicking on Back to order basket (fix) 03-2666: Order getting removed after clicking on Back to order basket Dec 19, 2023
@vasharma05 vasharma05 changed the title (fix) 03-2666: Order getting removed after clicking on Back to order basket (fix) O3-2666: Order getting removed after clicking on Back to order basket Dec 19, 2023
@brandones
Copy link
Contributor

Hi Usama! Thanks for the PR. A note on how we handle PRs.

image

The checkboxes are there both to remind the submitter to do stuff and to communicate with others. You should not check them if they are not relevant. The one about conforming to the styleguide informs the reviewer that you have done some design implementation that references some specific designs. That isn't relevant to this ticket, so don't check the box. The one about tests requires some careful thought; the question is whether tests would fail if you didn't make the change you made. Tests were passing before (with the bad behavior), and you have only removed tests; therefore it is impossible that if your change was somehow undone that tests would fail. Therefore your change is not tested for, and you shouldn't check the box. It's not strictly a requirement, but if it's not too hard to write a test that protects us against this bug, it would be great to have.

@usamaidrsk
Copy link
Member Author

Hi Usama! Thanks for the PR. A note on how we handle PRs.

image

The checkboxes are there both to remind the submitter to do stuff and to communicate with others. You should not check them if they are not relevant. The one about conforming to the styleguide informs the reviewer that you have done some design implementation that references some specific designs. That isn't relevant to this ticket, so don't check the box. The one about tests requires some careful thought; the question is whether tests would fail if you didn't make the change you made. Tests were passing before (with the bad behavior), and you have only removed tests; therefore it is impossible that if your change was somehow undone that tests would fail. Therefore your change is not tested for, and you shouldn't check the box. It's not strictly a requirement, but if it's not too hard to write a test that protects us against this bug, it would be great to have.

Thanks @brandones, It's a good guide, and I will endeavor to follow along. Also with the tests I am to add the tests as to the changes I made.

@usamaidrsk usamaidrsk force-pushed the fix-removing-order-from-basket-on-back-action branch from 2fe5a55 to c8565c6 Compare January 2, 2024 07:58
Copy link
Contributor

@brandones brandones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @usamaidrsk & @vasharma05

@brandones brandones merged commit 0d26db0 into openmrs:main Jan 2, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants