Page MenuHomePhabricator

[keyserver/lib] Populate special_role field when initial roles are created
ClosedPublic

Authored by rohan on Nov 24 2023, 9:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 12, 3:03 PM
Unknown Object (File)
Fri, Apr 11, 12:45 AM
Unknown Object (File)
Wed, Apr 9, 12:56 AM
Unknown Object (File)
Tue, Apr 8, 11:27 PM
Unknown Object (File)
Tue, Apr 8, 11:14 PM
Unknown Object (File)
Tue, Apr 8, 10:46 PM
Unknown Object (File)
Mon, Mar 31, 11:53 AM
Unknown Object (File)
Mon, Mar 31, 10:24 AM
Subscribers

Details

Summary

Now that we've createde a roles.special_role column in MariaDB and wrote a migration that populates it for existing threads, we should make sure new threads going forward populate this upon creation.

Depends on D9961

Part of ENG-5833

Test Plan

Create some new communities and make sure the special_role is populated for Members (no special role for Admins yet)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

keyserver/src/creators/role-creator.js
54 ↗(On Diff #33600)

Best to opt for ?? over || when possible

This revision is now accepted and ready to land.Nov 27 2023, 12:51 AM