MakerLabsVan / makerlabs-acm

MakerLabs Access Control Management (ACM) System
https://makerlabsvan.github.io/makerlabs-acm/index.html
MIT License
1 stars 0 forks source link

Re-assigning Previously Assigned Tag Does Not Update Website Immediately #6

Open paulreimer opened 5 years ago

paulreimer commented 5 years ago

The following steps produce an unexpected issue where the website does not seem to register Front Desk sign-ins, when the following events have occurred:

  1. Existing tag, already assigned to maker.
  2. De-commission the tag (via search/edit only, OR via scanning this tag and then waiting at least 2 mins)
  3. Re-assign the same tag to a different maker
  4. Search for "Front Desk" (latest tag shown -- it should still show the previous maker that had that tag)
  5. Scan the re-assigned tag

Expected: The new user details should show up as the latest "Front Desk" sign-in Actual: The website does not update to show the new user details -- no change/old user details still shown.

Scanning any other tag, or searching for any other user, and then scanning the re-assigned tag, will produce the expected behaviour.

paulreimer commented 5 years ago

Cannot reproduce. Investigated the code path, there isn't anything being cached to prevent this scenario.

One thing to note, there is a 2 min delay (hard-coded, but could be changed to any number) on re-assigning member tags (if they are fresh tags, there is no delay). This delay applies to the recent "Tag ID" dropdown/select (the number could be entered manually in the text entry), and prevents the same tag from being assigned multiple times.