Skip to content

Unable to leave Email + RFID Null #4

@TangoYankee

Description

@TangoYankee

Description:

  • The user factory currently commits a value to every single field.
  • This means that many values get a value equal to a blank string, which is different from 'Null'.
  • Email and RFID must either be Null or a Unique value.
  • The factory forces Email and RFID to be not Null.
  • Attempting to enter no value means that it has a value of ''
  • This is inevitably not a unique value
  • The sql commit fails

Components Affected

  • users.py/user_input()
  • users.py/user_input()/user_data

Proposed Solution

  • check whether a non-blank value has been entered for RFID and Email
  • If a non-blank value is entered, re-assign value to None, the python indicator of Null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions