Page MenuHomePhabricator

[Flow202][keyserver][skip-ci] [23/x] Address type errors in addSessionChangeInfoToResult
ClosedPublic

Authored by ashoat on Nov 13 2023, 3:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 7, 12:54 AM
Unknown Object (File)
Sun, Apr 21, 11:34 PM
Unknown Object (File)
Tue, Apr 16, 10:56 AM
Unknown Object (File)
Tue, Apr 16, 3:20 AM
Unknown Object (File)
Mon, Apr 15, 12:12 AM
Unknown Object (File)
Sun, Apr 14, 8:00 AM
Unknown Object (File)
Sat, Apr 13, 11:57 PM
Unknown Object (File)
Apr 12 2024, 8:38 PM
Subscribers

Details

Summary

The new version of Flow forced me to type the local variable userInfos here, which revealed some errors.

From investigation I found that userInfos is definitely an array when set (here, here, and here).

This issue was never surfaced because it looks like if Object.values is passed an array, it just returns that same array.

NOTE: CI will fail on this diff. I considered the possibility of fixing Flow errors BEFORE upgrading Flow, but it wasn't possible... in some cases, the fixes to support the new version of Flow caused errors in the old version. I could have hidden these type errors with $FlowFixMe lines and then later revert those, but that seemed like too much busy work.

Depends on D9871

Test Plan

Confirm the Flow errors go away

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Nov 13 2023, 3:44 PM
Harbormaster failed remote builds in B24089: Diff 33188!
This revision is now accepted and ready to land.Nov 14 2023, 7:35 AM
ashoat retitled this revision from [Flow202][keyserver] [23/x] Address type errors in addSessionChangeInfoToResult to [Flow202][keyserver][skip-ci] [23/x] Address type errors in addSessionChangeInfoToResult.Nov 19 2023, 5:10 PM