Graduate an approved artist from the waiting list to a full platform account. This marks the final step in the artist onboarding workflow. Call this after setting the entry status to "invited" and verifying the artist is ready for platform access. The waitlist entry status is automatically updated to "converted".
Arguments
- waitlist_id
Character string. UUID of the waiting list entry (format:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). Entry must have status "invited" before conversion (warning issued if not). Obtained fromget_pending_waitlist(status = "invited").- send_invite_email
Logical. Whether to send onboarding email via artsend package (default: TRUE). TBD: email integration pending - currently a placeholder parameter for future implementation.
- cn
DBI connection object or NULL. Database connection from
artcore::dbc("artsite"). If NULL (default), creates and closes connection automatically. Pass existing connection for batch conversions.
Value
Character string. UUID of the created user account (format:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). Currently returns a placeholder
UUID until user account system is implemented. This UUID is also stored
in the waitlist entry's converted_to_user_id field.
TBD
Full user account creation will be implemented when the user_accounts table and authentication system are complete. Currently generates a placeholder UUID and updates the waitlist status to "converted".
Examples
if (FALSE) { # \dontrun{
# First invite the artist
update_waitlist_status(waitlist_id, status = "invited")
# Then convert to user account
user_id <- convert_waitlist_to_user(
waitlist_id = waitlist_id,
send_invite_email = TRUE
)
print(user_id)
} # }
