URL Metric ETag should now be required since a transitional period has now elapsed #1819
Labels
[Plugin] Optimization Detective
Issues for the Optimization Detective plugin
[Type] Enhancement
A suggestion for improvement of an existing feature
Feature Description
For #1466 we introduced the
etag
property for the URL Metric (#1705, #1722). At the time, we made it optional so as to avoid invaliding all existing URL Metrics. See #1466 (comment). However, now that URL Metrics have been collected for a few months, we can safely now makeetag
a required property of the URL Metric.For example, this method can now return
non-empty-string
instead ofnon-empty-string|null
:performance/plugins/optimization-detective/class-od-url-metric.php
Lines 432 to 442 in d44b4c1
Similarly here:
performance/plugins/optimization-detective/class-od-url-metric.php
Line 42 in d44b4c1
And here:
performance/plugins/optimization-detective/class-od-url-metric.php
Lines 214 to 222 in d44b4c1
And this condition can be removed:
performance/plugins/optimization-detective/class-od-url-metric-group.php
Lines 289 to 292 in d44b4c1
There's probably a few other impacted bits of code.
The text was updated successfully, but these errors were encountered: