Handling User barcode Check-In For Local Database
License and Copyright Notice
By submitting this issue or commenting on this issue, or contributing any content to this issue, you certify under the Developer Certificate of Origin that the content you post may be licensed under GPLv3 (for code) or CC-BY-SA 4.0 International (for non-code content).
Summary
When signing in, if the device is connected to the Local Database, a user who comes into the nest with a physical barcode should always be sent to the Questionnaire Fragment.
- If the user has a physical barcode present, they should use the Barcode Scanner.
- If the Barcode Scanner returns confirmation, they should be sent to the Questionnaire Fragment.
- If the Barcode Scanner's scan is successful but the barcode is invalid, we should assume the user is registered and they should still be sent to the Questionnaire Fragment. The data entered should sync after the device connects to the Remote Database.
- If the Barcode Scanner does not work, they should be sent to the Manual Fragment to sign in manually.
- If the user's barcode number is found with the Manual Fragment, they should be sent to the Questionnaire Fragment.
- If the user's barcode number is not found with the Manual Fragment, we should assume the user is registered and they should still be sent to the Questionnaire Fragment. The data entered should sync after the device connects to the Remote Database.
- If the user does not have a barcode present, they should use the Manual Fragment
- If the user's barcode number is found with the Manual Fragment, they should be sent to the Questionnaire Fragment.
- If the user's barcode number is not found with the Manual Fragment, we should assume the user is not registered and they should be sent to Registration
- If the user inputs a phone number, they should be sent to Registration, No search by phone number when connected to the Local Database is allowed.
Current Behavior
When a user has a physical barcode the cannot be scanned by the scanner, the user will become stuck on the scanner fragment. When they go to enter their barcode manually, if it's not found in the local database, the program assumes the user is not registered even though they have a barcode.
From Check-in, directly to Manual Fragment, to Questionnaire or Registration was addressed in merge !441 (merged)
From Check-In, to Barcode, to Questionnaire was addressed in merge !442 (merged).
The Questionnaire Fragment, for navigation after its use and for submitting data to the database, is being addressed in issue #448, issue #444, issue #439, and issue #419 (closed).
The navigation from Barcode to Manual Fragment is being addressed in issue #466.
Benefits (Why is it necessary?)
To further streamline the processing of people using the Nest when handling barcodes.
Relevant Screenshots
Relevant Logs