#3478 closed defect (bug) (worksforme)
Cleaning up bloat in make/hosting post meta
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Component: | Make (Get Involved) / P2 | Keywords: | |
| Cc: |
Description
Due to a design decision that I've since come to regret, there's a ton of unnecessary bloat in make/hosting's post meta.
Specifically, each PHPUnit testing result post includes thousands of lines of data in the testsuites array key of the result meta key. In this particular example, all of the testsuites data is unnecessary to store. It's only necessary to store any testsuites data if one of the test suites actually failed.
This issue is fixed in the test runner but I'd like to clean up our existing data too (in part so I can WXR export and use the data locally).
Here's a script to perform said cleanup. I've tested it locally and achieved the results I expected.
Can I run this against the make/hosting site in my sandbox, or is there some other preferred way of performing this task?
:ship: Thanks @ocean90 for his help.