Page MenuHomePhabricator

[lib] Omit `isDefault` field in `rawThreadInfoFromServerThreadInfo`
ClosedPublic

Authored by atul on Mar 6 2024, 2:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 8, 10:38 PM
Unknown Object (File)
Apr 7 2024, 8:15 PM
Unknown Object (File)
Apr 7 2024, 8:15 PM
Unknown Object (File)
Apr 7 2024, 8:15 PM
Unknown Object (File)
Apr 7 2024, 8:13 PM
Unknown Object (File)
Apr 7 2024, 8:13 PM
Unknown Object (File)
Apr 2 2024, 12:00 AM
Unknown Object (File)
Mar 31 2024, 10:25 AM
Subscribers

Details

Summary

We're updating the specialRole client migrations to include exclusion of isDefault field. This is corresponding keyserver change to match that.


Depends on D11254

Test Plan

Set the includeSpecialRoleFieldInRoles flag manually and observe that isDefault included before and excluded after.

Will attach screenshots.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul requested review of this revision.Mar 6 2024, 2:26 PM
tomek added inline comments.
lib/shared/thread-utils.js
904–907 ↗(On Diff #37901)

Not sure if it is worth using an util for it - in most of the places we're simply spreading the value

This revision is now accepted and ready to land.Mar 7 2024, 1:18 AM
lib/shared/thread-utils.js
904–907 ↗(On Diff #37901)

Considered destructuring to exclude isDefault but thought it got a little difficult to read with (([key, {isDefault, ...role}]) => .... Also felt that _omit made it more explicit.

This revision was landed with ongoing or failed builds.Mar 20 2024, 11:13 AM
This revision was automatically updated to reflect the committed changes.