[Sprint/InterestingIguana](feat): Offchain boost rate limiting #475
Closes #475
May need to distribute off-chain tokens for staging, using the php-cli. php cli.php rewards issue --username=nemofin --amount=10000
- Developer
Need to do some testing, and run this by somebody. Not 100% sure I've properly filtered down the transactions as the number coming out is not quite what I'd expect (though is close). Could be related to ES running under low disk constraints.
- Resolved by Ben Hayward
- Resolved by Ben Hayward
added MR::Requires Changes scoped label
added 2 commits
added 1 commit
- 21f43ead - Updated, added in reduce for counting impressions and extra test
unmarked as a Work In Progress
changed the description
resolved all discussions
resolved all discussions
added MR::Awaiting Review scoped label and automatically removed MR::Requires Changes label
mentioned in issue #591
mentioned in issue #592
approved this merge request
approved this merge request
- Developer
@eiennohi @brianhatchet did you test with tokens? I was trying to get into this with kubectl to issue some to people. (this may have to wait till monday but if you haven't already got some, send me your usernames on staging)
added Squad::Green scoped label
- Developer
295 'status' => 'error', 296 'message' => "There's already an ongoing boost for this entity" 297 ]); 298 } 299 293 if ($manager->checkExisting($boost)) { 294 return Factory::response([ 295 'status' => 'error', 296 'message' => "There's already an ongoing boost for this entity" 297 ]); 298 } 299 300 if ($manager->boostLimitReached($boost)) { 301 return Factory::response([ 302 'status' => 'error', 303 'message' => "This boost would exceeded the maximum of 10 offchain tokens per day." - Developer
Make this configurable on settings.php