0/3 threads resolved
changed milestone to %sprint: Jolly Jellyfish
added MR::Awaiting Review Priority::2 - Normal Product::Wallet Squad::Blue Type::Feature scoped labels
added 6 commits
- 01b11f8d - (fix) Rewards\Contributions: Fix typo in word contribution - #587
- c036456b - (fix) Spec bootstrap should load configs (prevents errors connecting to Redis and MQ in dev) - #587
- d0425dd2 - (chore) Add missing help descriptions to rewards cli controller - #587
- 444c6081 - (feat) Add missing type hints in Contributions Manager - #588
- f150613d - (feat) Add action types help text and dry run warning to rewards cli - #587
- 18084897 - (feat) Apply the user state reward multiplier to contribution scores - #587
Toggle commit listadded 2 commits
- c11424f2 - (fix) Record null value for old contributions score by omitting from INSERT query - #587
- d7f0d443 - (feat) Add current reward factor to contributions api - #661 (closed)
added 1 commit
unmarked as a Work In Progress
- Developer
NOTE: Requires schema changes to
minds.contributions
:ALTER TABLE minds.contributions ADD score_decimal decimal;
DROP MATERIALIZED VIEW minds.contributions_by_timestamp; CREATE MATERIALIZED VIEW minds.contributions_by_timestamp AS SELECT timestamp, user_guid, metric, amount, score, score_decimal FROM minds.contributions WHERE user_guid IS NOT NULL AND timestamp IS NOT NULL AND metric IS NOT NULL AND amount IS NOT NULL PRIMARY KEY (timestamp, user_guid, metric) WITH CLUSTERING ORDER BY (user_guid ASC, metric ASC);
1 <?php 2 3 namespace Minds\Core\Analytics\UserStates; 4 5 class RewardFactor 6 { 7 static $values = [ 8 UserState::STATE_CASUAL => 1.5, 9 UserState::STATE_COLD => 0.5, 10 UserState::STATE_CORE => 0.5, 11 UserState::STATE_CURIOUS => 1, 12 UserState::STATE_NEW => 2, 13 UserState::STATE_RESURRECTED => 1.5, 14 UserState::STATE_UNKNOWN => 1 - Owner
Some new multipliers to use
UserState::STATE_CASUAL => 1.10, // 10% credit UserState::STATE_COLD => 0.5, // 50% of normal UserState::STATE_CORE => 1.25, // 25% credit UserState::STATE_CURIOUS => 1, // normal UserState::STATE_NEW => 1.25, // 25% credit UserState::STATE_RESURRECTED => 1.25, // 25% credit UserState::STATE_UNKNOWN => 1
- Last updated by Guy Thouret
18 * @method int getReferenceDateMs() 19 * @ignore UserActivityBuckets setDaysActiveBuckets(array $daysActiveBuckets) 20 * @method array getDaysActiveBuckets() 21 * @method UserActivityBuckets setNumberOfDays(int $numberOfDays) 22 * @method int getNumberOfDays() 23 * @method UserActivityBuckets setMostRecentDaysCount(int $mostRecentDaysCount) 24 * @method int getMostRecentDaysCount() 25 * @method UserActivityBuckets setOldestDaysCount(int $oldestDaysCount) 26 * @method int getOldestDaysCount() 27 * @method UserActivityBuckets setActivityPercentage(int $activityPercentage) 28 */ 11 29 class UserActivityBuckets 12 30 { 13 31 use MagicAttributes; 14 32 15 const STATE_CASUAL = 'casual'; - Owner
Are these constants not used?
- Developer
Only within this file and in the existing user state event handler. All instances were updated to reference the new location of the constants.
- Last updated by Guy Thouret
93 93 $notification 94 94 ]); 95 95 96 }); 96 }); - Owner
any reason for this change?
- Developer
Looks rogue, not sure where that came from.