Skip to content

Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
Minds Backend - Engine
Minds Backend - Engine
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
    • Insights
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
    • Locked Files
  • Issues 219
    • Issues 219
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 37
    • Merge Requests 37
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Security & Compliance
    • Security & Compliance
    • Dependency List
  • Packages
    • Packages
    • List
    • Container Registry
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Minds
  • Minds Backend - EngineMinds Backend - Engine
  • Issues
  • #841

Closed
Open
Opened 6 days ago by Guy Thouret@gthouret
  • Report abuse
  • New issue
Report abuse New issue

Test User State Functionality in Review Sites

The following need tested:

  • Analytics cli run daily records correct user states and sends notifications when user state changes
  • Analytics cli 'incremental' run tracks user state changes for the current day and sends notification if there is going to be a user state decline

The review site will need a number of users for this that can generate activities and be registered to receive token rewards (currently not working, assuming Twilio key is needed in config).

This will need to take place over a number of days unless there is an easy way of injecting fake user activity into the backend - Reliable way would be writing a cli to do this???

Please solve the reCAPTCHA

We want to be sure it is you, please confirm you are not a robot.

Edited 6 days ago by Guy Thouret

Related issues
0

    Related merge requests
    1
    • Opened 1 month ago
      Jul 26, 2019 12:31pm GMT+0000
      Reward Factors for User Activity
      Opened 1 month ago
      Jul 26, 2019 12:31pm GMT+0000
      !285
      (07/17) Jolly Jellyfish
      Milestone
      (07/17) Jolly Jellyfish
      Expired 1 month ago
      (July 31, 2019)
    • Discussion 27
    • Designs 0
    • Guy Thouret @gthouret added Squad::Blue Type::QA scoped labels 6 days ago

      added Squad::Blue Type::QA scoped labels

    • Guy Thouret @gthouret changed weight to 6 6 days ago

      changed weight to 6

    • Guy Thouret @gthouret changed time estimate to 1d 6 days ago

      changed time estimate to 1d

    • Guy Thouret @gthouret changed title from Test User State Notifications in Review Sites to Test User State Functionality in Review Sites 6 days ago

      changed title from Test User State Notifications in Review Sites to Test User State Functionality in Review Sites

    • Guy Thouret @gthouret added Status::InProgress scoped label 4 days ago

      added Status::InProgress scoped label

    • Mark Harding @markeharding added Sprint::09/11 - Nuanced Numbat scoped label 4 days ago

      added Sprint::09/11 - Nuanced Numbat scoped label

    • Guy Thouret @gthouret mentioned in commit e4159346 15 hours ago

      mentioned in commit e4159346

    • Guy Thouret @gthouret mentioned in commit 1bc69e5d 15 hours ago

      mentioned in commit 1bc69e5d

    • Guy Thouret @gthouret mentioned in commit 4cdd24ee 15 hours ago

      mentioned in commit 4cdd24ee

    • Guy Thouret @gthouret mentioned in commit 46251ea2 15 hours ago

      mentioned in commit 46251ea2

    • Guy Thouret @gthouret mentioned in commit 01222a57 15 hours ago

      mentioned in commit 01222a57

    • Guy Thouret @gthouret mentioned in commit 362df68b 15 hours ago

      mentioned in commit 362df68b

    • Guy Thouret @gthouret mentioned in commit 9825278b 15 hours ago

      mentioned in commit 9825278b

    • Guy Thouret @gthouret mentioned in commit 41149a48 15 hours ago

      mentioned in commit 41149a48

    • Guy Thouret @gthouret mentioned in commit 46a3081d 14 hours ago

      mentioned in commit 46a3081d

    • Guy Thouret @gthouret mentioned in commit 00ffa02e 14 hours ago

      mentioned in commit 00ffa02e

    • Guy Thouret @gthouret mentioned in commit ed9109ca 14 hours ago

      mentioned in commit ed9109ca

    • Guy Thouret @gthouret mentioned in commit 168ca91b 14 hours ago

      mentioned in commit 168ca91b

    • Guy Thouret @gthouret mentioned in commit b6aab277 5 hours ago

      mentioned in commit b6aab277

    • Guy Thouret
      Guy Thouret @gthouret · 1 hour ago
      Developer

      userstatetest1

      guid: "1021526227514560526"
      user_state: "unknown"
      user_state_today: "casual"
      user_state_today_updated_ms: 1569024000000
      user_state_updated_ms: 0
      username: "userstatetest1"

      Last Updated 21/9/19 (3 days ago)

      Today = (1569283200) 24/9/19

    • Guy Thouret
      Guy Thouret @gthouret · 57 minutes ago
      Developer

      COLD

      All active days removed

      php cli.php analytics addActivityDay --user_guid=1021526227514560526 --timestamp=1568678400 (day8)
      php cli.php analytics sync_activeUsers --from=1568678400 --to=1568678400
      php cli.php analytics sync_activeUsers --incremental --debug
      
      (
          [userGuid:Minds\Core\Analytics\UserStates\UserState:private] => 1021526227514560526
          [referenceDateMs:Minds\Core\Analytics\UserStates\UserState:private] => 1569283200000
          [state:Minds\Core\Analytics\UserStates\UserState:private] => cold
          [previousState:Minds\Core\Analytics\UserStates\UserState:private] =>
          [activityPercentage:Minds\Core\Analytics\UserStates\UserState:private] => 0.00
          [stateChange:Minds\Core\Analytics\UserStates\UserState:private] =>
      )
    • Guy Thouret
      Guy Thouret @gthouret · 57 minutes ago
      Developer

      CASUAL (2-5 Active days)

      php cli.php analytics addActivityDay --user_guid=1021526227514560526 --timestamp=1568851200 (day6)
      php cli.php analytics sync_activeUsers --incremental --debug
      (
          [userGuid:Minds\Core\Analytics\UserStates\UserState:private] => 1021526227514560526
          [referenceDateMs:Minds\Core\Analytics\UserStates\UserState:private] => 1569283200000
          [state:Minds\Core\Analytics\UserStates\UserState:private] => casual
          [previousState:Minds\Core\Analytics\UserStates\UserState:private] =>
          [activityPercentage:Minds\Core\Analytics\UserStates\UserState:private] => 0.29
          [stateChange:Minds\Core\Analytics\UserStates\UserState:private] =>
      )
      
      php cli.php analytics addActivityDay --user_guid=1021526227514560526 --timestamp=1568937600 (day5)
      php cli.php analytics addActivityDay --user_guid=1021526227514560526 --timestamp=1569024000 (day4)
      php cli.php analytics addActivityDay --user_guid=1021526227514560526 --timestamp=1569110400 (day3)
      php cli.php analytics sync_activeUsers --incremental --debug
      (
          [userGuid:Minds\Core\Analytics\UserStates\UserState:private] => 1021526227514560526
          [referenceDateMs:Minds\Core\Analytics\UserStates\UserState:private] => 1569283200000
          [state:Minds\Core\Analytics\UserStates\UserState:private] => casual
          [previousState:Minds\Core\Analytics\UserStates\UserState:private] =>
          [activityPercentage:Minds\Core\Analytics\UserStates\UserState:private] => 0.71
          [stateChange:Minds\Core\Analytics\UserStates\UserState:private] =>
      )
    • Guy Thouret
      Guy Thouret @gthouret · 56 minutes ago
      Developer

      CORE (6+ Active days)

      php cli.php analytics addActivityDay --user_guid=1021526227514560526 --timestamp=1569196800 (day2)
      php cli.php analytics sync_activeUsers --incremental --debug
      [24-Sep-2019 12:14:32 UTC] emitStateChanges:Minds\Core\Analytics\UserStates\UserState Object
      (
          [userGuid:Minds\Core\Analytics\UserStates\UserState:private] => 1021526227514560526
          [referenceDateMs:Minds\Core\Analytics\UserStates\UserState:private] => 1569283200000
          [state:Minds\Core\Analytics\UserStates\UserState:private] => core
          [previousState:Minds\Core\Analytics\UserStates\UserState:private] =>
          [activityPercentage:Minds\Core\Analytics\UserStates\UserState:private] => 1.00
          [stateChange:Minds\Core\Analytics\UserStates\UserState:private] =>
      )
    • Guy Thouret
      Guy Thouret @gthouret · 56 minutes ago
      Developer

      RESURRECTED

      No activities... and then activity today

      php cli.php analytics addActivityDay --user_guid=1021526227514560526 --timestamp=1569283200
      php cli.php analytics sync_activeUsers --incremental --debug
      (
          [userGuid:Minds\Core\Analytics\UserStates\UserState:private] => 1021526227514560526
          [referenceDateMs:Minds\Core\Analytics\UserStates\UserState:private] => 1569283200000
          [state:Minds\Core\Analytics\UserStates\UserState:private] => resurrected
          [previousState:Minds\Core\Analytics\UserStates\UserState:private] =>
          [activityPercentage:Minds\Core\Analytics\UserStates\UserState:private] => 0.14
          [stateChange:Minds\Core\Analytics\UserStates\UserState:private] =>
      )
      Edited by Guy Thouret 55 minutes ago
    • Guy Thouret
      Guy Thouret @gthouret · 55 minutes ago
      Developer

      CURIOUS

      No activities... then one random day

      php cli.php analytics addActivityDay --user_guid=1021526227514560526 --timestamp=1569024000
      php cli.php analytics sync_activeUsers --incremental --debug
      (
          [userGuid:Minds\Core\Analytics\UserStates\UserState:private] => 1021526227514560526
          [referenceDateMs:Minds\Core\Analytics\UserStates\UserState:private] => 1569283200000
          [state:Minds\Core\Analytics\UserStates\UserState:private] => curious
          [previousState:Minds\Core\Analytics\UserStates\UserState:private] =>
          [activityPercentage:Minds\Core\Analytics\UserStates\UserState:private] => 0.14
          [stateChange:Minds\Core\Analytics\UserStates\UserState:private] =>
      )
      Edited by Guy Thouret 55 minutes ago
    • Guy Thouret @gthouret mentioned in merge request !285 53 minutes ago

      mentioned in merge request !285

    • Guy Thouret @gthouret added Status::Review scoped label and automatically removed Status::InProgress label 11 minutes ago

      added Status::Review scoped label and automatically removed Status::InProgress label

    • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
    Please register or sign in to reply

    The one place for your designs

    Upload and view the latest designs for this issue. Consistent and easy to find, so everyone is up to date.

    Assignee
    Guy Thouret's avatar
    Guy Thouret @gthouret
    Assign to
    none
    Epic
    None
    None
    Milestone
    None
    Assign milestone
    -- / 1d
    Time tracking
    Estimated: 1d
    None
    Due date
    None
    4
    Labels
    Sprint::09/11 - Nuanced Numbat Squad::Blue Status::Review Type::QA
    Assign labels
    • View project labels
    6
    Weight
    6
    Confidentiality
    Not confidential
    Lock issue
    Unlocked
    1
    1 participant
    user avatar
    Guy Thouret
    Reference: minds/engine#841