We have a number of recent-ish production errors all related to the ComputedUserImpactLookup class, and in particular its getPageViewData method.
- T399092: PHP Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
- T400574: PHP Warning: Undefined array key "mos:LABEL"
- T400706: PHP Warning: Trying to access array offset on value of type null (via ComputedUserImpactLookup)
While they don't seem to be directly related to our efforts in T341599: Impact Module: improvements for former newcomers/T398500: [timebox: 3 days] Impact module: Support larger wgGEUserImpactMaxEdits, we probably want to address them before scaling the feature further and potentially worsen existing issues.
Since it seems plausible that there is a common cause, this tasks exists to consolidate the exploration of all three.
Acceptance criteria:
- We know what's causing these errors
- We have identified next steps, or if they were simple to fix, we fixed them.
- If we haven't fixed them yet, we understand their potential impact on T341599
