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)
Tue, Dec 24, 6:54 AM
Unknown Object (File)
Tue, Dec 24, 6:54 AM
Unknown Object (File)
Tue, Dec 24, 6:54 AM
Unknown Object (File)
Tue, Dec 24, 6:54 AM
Unknown Object (File)
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
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

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

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

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.