Page MenuHomePhabricator

Persist a/b test data in database
Closed, ResolvedPublic3 Estimated Story Points

Description

In order to have this feature ready for use before the campaign starts, we have been storing the a/b test tracking data in files. This was only a workaround, persisting the data in the database is still needed.

Acceptance Criteria

  • The data collected during an a/b test of the donation application is stored in the database.
  • Data that was previously collected in files is migrated to the database.
  • The export instructions for getting to the data are updated
  • The documentation about logging bucket data in the source code of wmde/FundraisingFrontend is updated.

Possible Solution

  • Add a migration that introduces a new database table bucket_log:
    • external_id
    • external_id_type
    • campaign_name
    • bucket_name
  • Implement new BucketLogger that writes to the database.
  • If possible, use Doctrina DBAL instad of ORM, thios avoids the overhead of ORM.
  • Use jq to create a CSV file from the existing data and move it into the database table.

Notes

  • Data is currently stored in the file shared/buckets.log on the web server.

Event Timeline

kai.nissen triaged this task as Medium priority.Aug 20 2018, 2:10 PM
kai.nissen created this task.
kai.nissen set the point value for this task to 8.
kai.nissen changed the point value for this task from 8 to 3.Aug 14 2020, 10:25 AM

Some work in the bounded context left