Skip to content

(1) Fixing issue of app crashing when editing database entries

A H requested to merge issue_223_database_update_crash into main

RELATED ISSUES

Closes #223 (closed)

DEPENDENTS

!227 (merged), !231 (merged)

BRANCH NAME

issue_223_database_update_crash

SUMMARY OF ISSUE/BUG

When the user scans an item and the item is already in the database, and the user hits 'Incorrect' and proceeds to edit all the data associated with that particular item, after hitting 'Accept', the app crashes.

DESCRIPTION OF UPDATE

Currently there is no code for the app to utilize when editing already existing database entries, so that code is what will be in this update.

STEPS TO TEST

  1. Go to the 'Check Expiration Date' feature within the app.
  2. Scan or enter a barcode for an item -> you will be taken to SelectItemFragment or ConfirmItemFragment
  3. Fill in the required information if in SelectItemFragment, or press confirm if in ConfirmItemFragment -> you will be taken to SelectPrintedExpirationDateFragment.
  4. Select a random date.
  5. Press 'Accept' - you will be taken to DisplayTrueExpirationFragment
  6. Exit out of app.
  7. Open app.
  8. Go to the 'Check Expiration Date' feature within the app.
  9. Scan or enter a barcode for the same item you scanned/input before -> you will be taken to ConfirmItemFragment
  10. Hit 'Incorrect' -> you will be taken to 'SelectItemFragment'
  11. Fill in the required information if in SelectItemFragment and click the 'Accept' button.

Confirm that upon moving hitting 'Accept', the app doesn't crash.

NOTES

N/A

LABELS

NEST component:check-expiration-date type::bug status::doing

Edited by Tyler Sizse

Merge request reports