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.
The following need tested:
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???
We want to be sure it is you, please confirm you are not a robot.
added Squad::Blue Type::QA scoped labels
changed weight to 6
changed time estimate to 1d
changed title from Test User State Notifications in Review Sites to Test User State Functionality in Review Sites
added Status::InProgress scoped label
added Sprint::09/11 - Nuanced Numbat scoped label
mentioned in commit e4159346
mentioned in commit 1bc69e5d
mentioned in commit 4cdd24ee
mentioned in commit 46251ea2
mentioned in commit 01222a57
mentioned in commit 362df68b
mentioned in commit 9825278b
mentioned in commit 41149a48
mentioned in commit 46a3081d
mentioned in commit 00ffa02e
mentioned in commit ed9109ca
mentioned in commit 168ca91b
mentioned in commit b6aab277
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
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] =>
)
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] =>
)
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] =>
)
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] =>
)
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] =>
)
mentioned in merge request !285
added Status::Review scoped label and automatically removed Status::InProgress label
Upload and view the latest designs for this issue. Consistent and easy to find, so everyone is up to date.