Wikia/app — pull request #223 by garthwebb (2012-12-06 01:03:44+00:00)
Title: Fix non-functional AB Test admin interface

This commit addresses several issues:

* Sorting in the sendRequest method was causing the data sent to PHP to be mangled
* Inserting new experiments failed due to circular foriegn key constraints. Added option to disable key checks while inserting the version object
* ID was loaded from request parameters but is null when a new experiment is added. It was never updated when a new experiment was created and saved. Later this ID is used to retrieve this experiment which would fail. The ID is now updated after a new experiment is created
* The $groups[$normalizedName] array is used inconsistantly. A 'name' field is read from it for error reporting but never written. Elsewhere a numeric array is written to it rather than named keys. Updated to be consistent.
* New experiment is loaded after saving to get all fields, but experiences race condition with master/slave replication. Fixed to load from master in this case
* Added some translation documentation.