Page MenuHomePhabricator

[web] Flip the switch to strip member permissions from `web`
ClosedPublic

Authored by atul on Oct 1 2024, 10:59 AM.
Tags
None
Referenced Files
F3352715: D13561.diff
Sat, Nov 23, 7:03 AM
F3351928: D13561.id44982.diff
Sat, Nov 23, 4:04 AM
Unknown Object (File)
Wed, Nov 20, 5:43 PM
Unknown Object (File)
Wed, Nov 20, 9:47 AM
Unknown Object (File)
Wed, Nov 20, 9:47 AM
Unknown Object (File)
Wed, Nov 20, 9:47 AM
Unknown Object (File)
Wed, Nov 20, 9:47 AM
Unknown Object (File)
Wed, Nov 20, 9:47 AM
Subscribers

Details

Summary

This diff increments Redux version and changes web codeVersion check for keyserver hasMinCodeVersion check to NEXT_CODE_VERSION.

Test Plan

Will go through Test Plan a couple times in my environment.

  1. Patch in this diff
  2. Rebase and "stop on" (edit) "DUMMY` commit
  3. Run yarn dev everywhere and observe the ThreadInfos via Redux DevTools. Observe that there are member permissions for thin threads.
  4. git rebase --continue
  5. Observe the logs in browser dev tools and confirm that migration ran successfully
  6. Observe that thin threads no longer have member permissions via Redux DevTools.

Before (thin, with member permissions):

Screenshot 2024-10-08 at 4.24.03 PM.png (2×2 px, 581 KB)

Before (thick, with member permissions):

Screenshot 2024-10-08 at 4.24.24 PM.png (2×2 px, 598 KB)


After (thin, WITHOUT member permissions):

Screenshot 2024-10-08 at 4.25.16 PM.png (2×2 px, 648 KB)

After (thick, still WITH member permissions):

Screenshot 2024-10-08 at 4.25.38 PM.png (2×2 px, 639 KB)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

web/redux/persist-constants.js
6 ↗(On Diff #44790)

Is this the correct place to increment things?

Is there anywhere else I need to change a value to be kept in sync with this one (eg on native?)

From a quick search it seems like this storeVersion constant is only accessed in web?

atul requested review of this revision.Oct 1 2024, 11:16 AM
ashoat added inline comments.
web/redux/persist-constants.js
6 ↗(On Diff #44790)

I think we're trying to keep these versions in sync, so it would be great if you could bump native/redux/persist.js too

You may or may not need to add a no-op migration to native, eg.

[84]: (state: AppState) => ({
  state,
  ops: [],
}),

Probably fine to omit, but please test!

This revision is now accepted and ready to land.Oct 1 2024, 11:21 AM

bumped native persist version and added no-op migration

exclude native placeholder migration

This revision was landed with ongoing or failed builds.Oct 8 2024, 2:05 PM
This revision was automatically updated to reflect the committed changes.