Skip to content

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