WIP: Firehose api
New firehose admin endpoints for getting an unsorted list of activites from minds_badger and an admin endpoint that takes an activity guid and will mark it as moderated.
New managers and repositories for talking to elastic search Redis lock system with some super basic hash keying. These records shouldn't get very big, so we might want to KISS for now. Else, there are distributed locking libraries we should look into
It stores a key in moderation:entity_id:user_id format where the entity is the activity being moderated and user is the admin who "checked it out". These are set to a TTL of 15 minutes for now. When we query elastic search, we look for the opposite set (any locks that DON'T belong to the user) and for any activity that has not already been moderated. Requires adding two new fields to badger (in postman)
changed milestone to %sprint: Dapper Dingo
added 7 commits
- 269df1ee...1eaf8c06 - 5 commits from branch
minds:epic/ReportingAndModeration
- 50fabf98 - Merge remote-tracking branch 'upstream/epic/ReportingAndModeration' into admin_firehose
- a1c2f3a6 - Fixing previous tests
- 269df1ee...1eaf8c06 - 5 commits from branch
added 1 commit
- 64942ca3 - Fixing unit tests by not overriding DI config in features. Thanks, Mark <3
added 37 commits
- 64942ca3...5f29f688 - 36 commits from branch
minds:epic/ReportingAndModeration
- feb5a3b0 - Merge remote-tracking branch 'upstream/epic/ReportingAndModeration' into admin_firehose
- 64942ca3...5f29f688 - 36 commits from branch
- Resolved by Mark Harding
added 1 commit
- efa38fcc - Updated tested to reflect the new elastic search query
added 3 commits
- efa38fcc...9dbd95e5 - 2 commits from branch
minds:epic/ReportingAndModeration
- 8a3c9f0a - Merge remote-tracking branch 'upstream/epic/ReportingAndModeration' into admin_firehose
- efa38fcc...9dbd95e5 - 2 commits from branch
added 1 commit
- 96127343 - MR fixes. Performant ES query. Mapping fixes. Moved reconstitution to the manager
unmarked as a Work In Progress
changed title from WIP firehose api to Firehose api
changed the description
added 16 commits
- c5cf7221...3927173f - 15 commits from branch
minds:epic/ReportingAndModeration
- 2dcea399 - Merge remote-tracking branch 'upstream/epic/ReportingAndModeration' into admin_firehose
- c5cf7221...3927173f - 15 commits from branch
added 51 commits
- 2dcea399...eadf4ebd - 50 commits from branch
minds:epic/ReportingAndModeration
- 74c34afb - Merge remote-tracking branch 'upstream/epic/ReportingAndModeration' into admin_firehose
- 2dcea399...eadf4ebd - 50 commits from branch
added 6 commits
- e3a25163...dd117ff0 - 5 commits from branch
minds:epic/ReportingAndModeration
- a3dcc56b - Merge remote-tracking branch 'upstream/epic/ReportingAndModeration' into admin_firehose
- e3a25163...dd117ff0 - 5 commits from branch
added 24 commits
- bd6e7d55 - (feat) add report reasons to config endpoint
- 25b05ce9 - (chore): ban spam domain
- d07486fc - (chore): ban spammy email
- b4a60db8 - (fix): Re-sync ES if expired boost was already completed (#448 (closed))
- e9491d70 - Merge branch 'hotfix/es-boosts-resync' into 'master'
- 56b60f52 - Merge branch 'sprint/ElevatedEagle.feat.report-reasons.added.minds-config.endpoint' into 'master'
- cb33fe87 - Merge branch 'epic/ReportingAndModeration'
- e0ced6e2 - (chore): content policy
- a593916e - (chore): if channel reported for spam then do immediate ban
- 1dc7c4b9 - [Sprint/FunnyFrog])(bug): Forcing NSFW reasons array into integers.
- fcfd028f - Merge branch 'fix-nsfw-remind-inheritance-bug' into 'master'
- 35a80e27 - (chore): change SEO to The Jury System
- ef9255df - (fix): remove revoked from stats
- 8634a913 - CORS enabled
- c710bdef - Merge branch 'checkout-oauth' into 'master'
- 8d0ccfc1 - Sprint/ElevatedEagle: Forced querystring params into lower case
- 8bd9d70c - Merge branch 'force-lower-case-search-query-and-hashtags' into 'master'
- 32b1f6ff - (chore): email on a friday
- cf10fc88 - (chore); email on a friday...
- e1ec640d - (fix): typos in email
- 0c777244 - (chore): loop email iterator if no entities returned
- 7546fd46 - (chore): dev code for promotions email
- 827ae8e9 - (chore): email promotions to use markdown and include template key in hash
- e605f46b - Merge remote-tracking branch 'upstream/master' into admin_firehose
Toggle commit listadded 8 commits
- f75596ab - (chore): ban more domains
- 01e1a432 - (chore): bring back channel level spam check for new channels
- 85de3a3c - (chore): add another blocked domain
- e40d62d3 - (chore): spam check comments
- 23f0c499 - (chore): Appeals loop and awaiting TTL (#463)
- 5b0ef158 - Merge branch 'hotfix/appeal-summons-tweaks-1' into 'master'
- 294a8bc2 - (feat): support onchain boost label
- f3d0b5ee - Merge remote-tracking branch 'upstream/master' into admin_firehose
Toggle commit listchanged target branch from
epic/ReportingAndModeration
tomaster
- Resolved by Brian Hatchet
- Resolved by Brian Hatchet
- Resolved by Brian Hatchet
- Resolved by Brian Hatchet
- Resolved by Mark Harding
- Resolved by Brian Hatchet
691 697 return $this->ownerObj; 692 698 } 693 699 700 public function setModeratorGuid($moderatorGuid) { - Owner
Can we get some phpdocs in ?
marked as a Work In Progress from brianhatchet/engine@3cecc956