[wp-meta] [Making WordPress.org] #3478: Cleaning up bloat in make/hosting post meta
Making WordPress.org
noreply at wordpress.org
Wed Feb 21 18:36:36 UTC 2018
#3478: Cleaning up bloat in make/hosting post meta
--------------------------------------+-----------------
Reporter: danielbachhuber | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Make (Get Involved) / P2 | Keywords:
--------------------------------------+-----------------
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
[https://gist.github.com/danielbachhuber/2718e5f53c219ce544ec7a9021202371
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 [https://github.com/WordPress/phpunit-test-
runner/commit/0c8da217b0fc84e27affaa620f0eeb1a4f3cd739 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).
[https://gist.github.com/danielbachhuber/4a2f635c777df9538e8e98ba485a3fa4
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?
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/3478>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list