We want to freeze existing logic for use in migration and rawThreadInfoFromServerThreadInfo while making it clear that it shouldn't be used in the future.
Depends on D12597
Paths
| Differential D12733 Authored by atul on Jul 11 2024, 1:27 PM.
Details
Summary We want to freeze existing logic for use in migration and rawThreadInfoFromServerThreadInfo while making it clear that it shouldn't be used in the future. Depends on D12597 Test Plan Just a rename.
Diff Detail
Event TimelineHerald added a subscriber: tomek. · View Herald TranscriptJul 11 2024, 1:27 PM2024-07-11 13:27:27 (UTC-7) Harbormaster returned this revision to the author for changes because remote builds failed.Jul 11 2024, 1:40 PM2024-07-11 13:40:05 (UTC-7) Comment Actions Just two questions:
First: is rawThreadInfoFromServerThreadInfo just for the shimming logic that handles old clients? Second: it looks like there's a Flow error here that doesn't show up in the parent diff. Any context? This revision now requires changes to proceed.Jul 11 2024, 5:20 PM2024-07-11 17:20:56 (UTC-7) Comment Actions
Yes, so we can construct RawThreadInfo with member permissions for clients that still expect them. We will construct "new" RawThreadInfos by stripping out member permissions using same utility function that'll be used in client migrations.
Let me check Comment Actions
The one flow issue I'm seeing is the following: which is resolved in D12755 Comment Actions Actually I must've gotten confused about the CI. I'm actually not seeing any Flow issues, but there do appear to be ESLint issues. Can you get this green before you pass back to me? This revision now requires changes to proceed.Jul 17 2024, 12:03 PM2024-07-17 12:03:30 (UTC-7) atul added a parent revision: D12597: [lib] Fix construction of `ThinRawThreadInfo` in `createPendingThread`. Comment Actionsupdate to address ESLint and failing validator test. flow issue(s) still expected. Harbormaster failed remote builds in B30436: Diff 42412!Jul 17 2024, 2:30 PM2024-07-17 14:30:34 (UTC-7) This revision is now accepted and ready to land.Jul 18 2024, 10:18 AM2024-07-18 10:18:15 (UTC-7) This revision was landed with ongoing or failed builds.Jul 18 2024, 12:21 PM2024-07-18 12:21:07 (UTC-7) Closed by commit rCOMM2ab735a4abc7: [lib] Deprecate `minimallyEncodeRawThreadInfo` (authored by atul). · Explain Why This revision was automatically updated to reflect the committed changes. Harbormaster completed remote builds in B30480: Diff 42480.Jul 18 2024, 12:28 PM2024-07-18 12:28:40 (UTC-7)
Revision Contents
Diff 42481 lib/permissions/minimally-encoded-thread-permissions.test.js
lib/shared/redux/deprecated-update-roles-and-permissions.js
lib/shared/thread-utils.js
lib/types/minimally-encoded-thread-permissions-types.js
|