Guest visit crashes
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
***Don't forget to use the Git Workflow when ready to do work!***
When GUEST VISIT CHECKIN is clicked, app crashes.
Steps to reproduce
Click GUEST FORMS > GUEST VISIT CHECKIN
What is the current bug behavior?
The following exception is thrown:
- The statement that is throwing this exception is not really needed. I believe that the student was attempting to ensure that a record with the specified id was added to the database.
- It would be best to figure out how to properly retrieve the record with a known id from the database.
What is the expected correct behavior?
The user should be prompted to either scan for a bar code or enter their bar code. A secondary option for locating the guest is to ask for their phone number. If the user already exists in the database, their information should be retrieved and confirmed. Some thoughts for how this work might be split up:
- Currently there is no code to scan for a bar-code
- In lieu of scanning you could prompt for a bar-code or a phone number
- Since the registration part of the code is working, review this code to better understand how to access the remote database.
- GuestRegistryDriver.java and GuestRegistrySource.java are good places to start. Note: data is being written to the remote database; I don't know if any data is being retrieved from it...you should look for this.
- The remote database is NOT an SQLite database; it is a Relational Database Management System called MariaDB (so I've been told).
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code, as it's very hard to read otherwise.)
Possible fixes
The guest visit check-in is in the early stages of development. It looks like a partial redesign of the isRegistered method was attempted, but not completed. See GuestRegistrySource.java, then locate the isRegistered method. Read the Javadoc comment and then look at what is being returned (there are comments here as well).
Labels
(We have not finalized our list of labels, for now, include the labels you would like to include as a comment.