BulkUserUpdateVerificationData

public struct BulkUserUpdateVerificationData : Content

Used during bulk import of User information. Reports the result of merging the new User data into the database, or for the Verify operation, previews what that result will be.Purposefully does not report specific regCodes that are in conflict.

The idea behind this struct is to split out cases where we might get 1000+ errors under certain import conditions, so we don’t just return an array of Errors where there’s one important error buried in a thousand ‘duplicate name and regcode’ errors.

  • If TRUE, this structure is returned as the result of the ‘apply’ method, and the values in this struct reflect changes actually made to the db. If FALSE, this structure shows the result of the validation pass and no database changes were saved.

    Declaration

    Swift

    var changesApplied: Bool
  • Declaration

    Swift

    public struct BulkUserUpdateCounts : Content
  • Counts for User import.

    Declaration

    Swift

    var userCounts: BulkUserUpdateCounts
  • Counts for Performer import. Includes both official and shadow performers.

    Declaration

    Swift

    var performerCounts: BulkUserUpdateCounts
  • Cases where the server has a registered user with the same regcode as the update file, but the usernames differ. This may mean the user preregistered and then (somehow) registered on-boat with a different username before the bulk import happened.

    Declaration

    Swift

    var regCodeConflicts: [String]
  • Cases where a username already exists on the server, tied to a different regcode. This indicates someone else took the username on the server, and we can’t import this user from the preregistration file. These are actual merge conflicts where someone who expects to have an account on-boat on embark day won’t have one (but they can still create one with their regcode).

    Declaration

    Swift

    var usernameConflicts: [String]
  • Cases where the import threw an error.

    Declaration

    Swift

    var errorNotImported: [String]
  • Errors that occurred while processing non-critical user data. These errors did not prevent import, but some data tied to the user (like favorite events/songs/boardgames) may not have imported.

    Declaration

    Swift

    var otherErrors: [String]
  • Declaration

    Swift

    init(forVerification: Bool)