Created on 18 April 2019, over 5 years ago
Updated 12 September 2023, over 1 year ago

Is there a method for resetting a users Learning Path status; including all answers, group progress and subscriptions? The goal is to make it as if the user was never part of the Learning Path so they can start over fresh.

I see there is an existing module for Drupal 7 that added a "user reset" function, what is the process for Drupal 8. https://www.drupal.org/project/opigno_user_reset β†’

πŸ’¬ Support request
Status

Active

Version

1.5

Component

Feature

Created by

πŸ‡¨πŸ‡¦Canada LittleCoding Hamilton, ON

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States sascher

    We have run into this same problem on the project I am working on right now.

    The workaround we have is to delete the users records from the database with drush.

    If I had user with and ID of 666, then I would run these commands since there is no way yet to remove them thought the UI

    drush sql-query 'DELETE FROM opigno_learning_path_achievements WHERE uid= '666''
    drush sql-query 'DELETE FROM learning_path_result WHERE user_id= '666''
    drush sql-query 'DELETE FROM opigno_latest_group_activity WHERE uid= '666''
    drush sql-query 'DELETE FROM user_lp_status WHERE uid= '666''
    drush sql-query 'DELETE FROM user_module_status WHERE user_id= '666''
    drush sql-query 'DELETE FROM opigno_module_badges WHERE uid= '666''

Production build 0.71.5 2024