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

Issue 307 #357

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Issue 307 #357

wants to merge 1 commit into from

Conversation

mjanes
Copy link
Contributor

@mjanes mjanes commented Jun 28, 2019

Issues: Closes #307
Scope: Create (or Update) Patient dialog
Requested reviewers: @zestyping

User-visible changes

#307

Do not close patient_dialog_fragment on hitting "Ok". Wait until ItemCreateEvent or ItemUpdatedEvent to dismiss dialog.

Also, disable the Ok button while request is in flight. Re-enable if submission failed.

This means that if a duplicate id is entered by mistake, the user can edit their information and re-submit, instead of having to re-enter everything.

Verification performed

Created new user with duplicate id, and verified dialog was not closed, and that I was able to edit the information and re-submit.

Created new patient without duplicate id. Verified patient was created successfully.

Guidance for reviewers

Would like a second set of eyes to check the event bus wiring. I am concerned about the potential for leaks here.

Guidance for testers

Add and edit patients. Confirm that entering invalid information rejected by the server does not dismiss dialog, but shows error toast, and allows user to re-enter patient data. Confirm that entering correct data is still accepted by server, and dismisses dialog. Confirm that you can't hit "ok" multiple times in quick succession to send multiple requests.

projectbuendia#307

Do not close patient_dialog_fragment on hitting "Ok". Wait until ItemCreateEvent<Patient> or ItemUpdatedEvent<Patient> to dismiss dialog.

Also, disable the Ok button while request is in flight. Re-enable if submission failed.

Would like a second set of eyes to check the event bus wiring. I am concerned about the potential for leaks here.
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.

Add New Patient -> Don't reset patient form if there's an error
1 participant