Page MenuHomePhabricator

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

Authored by atul on Mar 6 2024, 2:11 PM.
Tags
None
Referenced Files
F3527829: D11261.id38232.diff
Tue, Dec 24, 6:54 AM
F3527828: D11261.id38231.diff
Tue, Dec 24, 6:54 AM
F3527827: D11261.id37901.diff
Tue, Dec 24, 6:54 AM
F3527822: D11261.id.diff
Tue, Dec 24, 6:54 AM
F3527821: D11261.diff
Tue, Dec 24, 6:54 AM
Unknown Object (File)
Mon, Dec 9, 10:35 PM
Unknown Object (File)
Sat, Nov 30, 2:24 PM
Unknown Object (File)
Thu, Nov 28, 4:51 PM
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.