Feat/captcha for votes spam minds#3119
Ticket(s) / Related Merge Requests
minds#3119
Summary of Changes
Added friendly captcha to engagement actions ( currently just thumbs up to posts ) to potentially identify inauthentic engagement.
Testing Considerations
- Make sure
minds-3119-captcha-for-engagement
feature is active for the Sandbox environment in Growthbook. - Login to any account and try to up vote any post.
Deployment Considerations
- Create new schema in snowplow
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for an event's friendly captcha proof-of-work context",
"self": {
"vendor": "com.minds",
"name": "proof_of_work_context",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"successful": {
"type": ["boolean"],
"description": "has the puzzle been resolved successfully"
}
},
"minProperties": 1,
"additionalProperties": true
}
- Amend ES metrics index mapping
curl -X PUT "localhost:9200/minds-metrics-*/_mapping?pretty" -H 'Content-Type: application/json' -d'
{
"properties": {
"proof_of_work": {
"type": "boolean"
}
}
}
'
** NOTE: Shouldn't deploy this change until the mobile app has functionality parity. **
Regression Scope
- Registration form
- Mobile app thumbs up actiions
Platform Affected (web, mobile, etc)
Frontend, Mobile app
Developer Testing Completed
Screenshots / Screen Recording
Does this impact
-
Localization -
Dark/light mode -
Guest mode
Definition of Done Checklist
-
The Acceptance Criteria has been met -
Code is tested: Testing includes unit/spec, E2E/automated and manual testing -
Merge requests description has been filled out
Edited by Fausto Arcidiacono