Skip to content

Guestintakeissue#400

ego Agct requested to merge guestintakeissue#400 into main

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).

Branch Name

(Guestintakeissue#400)

Related Issues

(Closes #400 (closed),#398 (closed))

Description

(Adds methods for the local database for adding and checking registration and movement between firstform fragment and selection fragment while registering if the user already exists in the local database. This merge request also adds to local database if not connected to remote.)

Steps to Test

  1. Step 1 Click Guest forms -> Guest Registration (Local Database)
  2. Step 2 Register while not connected to remote database and open up appinspector -> GuestRegistry.db ->NESTGuestRegity(datatable)
  3. Step 3 With this you can check if the registration data was added to the local database
  4. Step 4 Try to register again with either the same phone number or nccid(Step1 and 2)
  5. Step 5 See if you are moved to the selection fragment to sign in

Developer Notes

  • I think my laptop just runs slow at times because I tested it before and it was quick but just in case please make sure that the movement between the firstform to selection fragment is at an acceptable time.
  • I messed around with the if statement in the firstformfragment (line 235) and what I got from that is the isConnected() method takes a long time at least when you are not connected to the remote database.
  • I changed the order of the if statements condition to check if the user data is already registered in the local which substantially decreased the time between moving from the firstformfragment to the selectionfragment.
Edited by ego Agct

Merge request reports