Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3522270
D10115.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
9 KB
Referenced Files
None
Subscribers
None
D10115.diff
View Options
diff --git a/native/redux/update-roles-and-permissions-test-data.js b/native/redux/update-roles-and-permissions-test-data.js
--- a/native/redux/update-roles-and-permissions-test-data.js
+++ b/native/redux/update-roles-and-permissions-test-data.js
@@ -1,5 +1,6 @@
// @flow
+import { specialRoles } from 'lib/permissions/special-roles.js';
import type { ThreadStoreThreadInfos } from 'lib/types/thread-types.js';
const threadStoreThreads: ThreadStoreThreadInfos = {
@@ -285,6 +286,7 @@
'83795': {
id: '83795',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {
descendant_open_know_of: true,
@@ -297,6 +299,7 @@
'83796': {
id: '83796',
isDefault: false,
+ specialRole: specialRoles.ADMIN_ROLE,
name: 'Admins',
permissions: {
add_members: true,
@@ -621,6 +624,7 @@
'84597': {
id: '84597',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {
child_open_join_thread: true,
@@ -921,6 +925,7 @@
'84599': {
id: '84599',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {
child_open_join_thread: true,
@@ -1309,6 +1314,7 @@
'84628': {
id: '84628',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {
child_open_join_thread: true,
@@ -1784,6 +1790,7 @@
'84657': {
id: '84657',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {
add_members: true,
@@ -2179,6 +2186,7 @@
'86072': {
id: '86072',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {
child_open_join_thread: true,
@@ -2654,6 +2662,7 @@
'87790': {
id: '87790',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {
add_members: true,
@@ -3136,6 +3145,7 @@
'87818': {
id: '87818',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {
add_members: true,
@@ -3531,6 +3541,7 @@
'87838': {
id: '87838',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {
add_members: true,
@@ -3837,12 +3848,14 @@
'83795': {
id: '83795',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
'83796': {
id: '83796',
isDefault: false,
+ specialRole: specialRoles.ADMIN_ROLE,
name: 'Admins',
permissions: {},
},
@@ -4131,6 +4144,7 @@
'84597': {
id: '84597',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -4418,6 +4432,7 @@
'84599': {
id: '84599',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -4792,6 +4807,7 @@
'84628': {
id: '84628',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -5253,6 +5269,7 @@
'84657': {
id: '84657',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -5627,6 +5644,7 @@
'86072': {
id: '86072',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -6088,6 +6106,7 @@
'87790': {
id: '87790',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -6549,6 +6568,7 @@
'87818': {
id: '87818',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -6923,6 +6943,7 @@
'87838': {
id: '87838',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -7057,12 +7078,14 @@
'83795': {
id: '83795',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
'83796': {
id: '83796',
isDefault: false,
+ specialRole: specialRoles.ADMIN_ROLE,
name: 'Admins',
permissions: {},
},
@@ -7189,6 +7212,7 @@
'84597': {
id: '84597',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -7314,6 +7338,7 @@
'84599': {
id: '84599',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -7445,6 +7470,7 @@
'84628': {
id: '84628',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -7582,6 +7608,7 @@
'84657': {
id: '84657',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -7713,6 +7740,7 @@
'86072': {
id: '86072',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -7850,6 +7878,7 @@
'87790': {
id: '87790',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -7987,6 +8016,7 @@
'87818': {
id: '87818',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -8118,6 +8148,7 @@
'87838': {
id: '87838',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -8171,12 +8202,14 @@
'83795': {
id: '83795',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
'83796': {
id: '83796',
isDefault: false,
+ specialRole: specialRoles.ADMIN_ROLE,
name: 'Admins',
permissions: {},
},
@@ -8222,6 +8255,7 @@
'84597': {
id: '84597',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -8266,6 +8300,7 @@
'84599': {
id: '84599',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -8316,6 +8351,7 @@
'84628': {
id: '84628',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -8372,6 +8408,7 @@
'84657': {
id: '84657',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -8422,6 +8459,7 @@
'86072': {
id: '86072',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -8478,6 +8516,7 @@
'87790': {
id: '87790',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -8534,6 +8573,7 @@
'87818': {
id: '87818',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -8584,6 +8624,7 @@
'87838': {
id: '87838',
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
name: 'Members',
permissions: {},
},
@@ -9174,6 +9215,7 @@
voiced: true,
},
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
},
'256|84854': {
id: '256|84854',
@@ -9218,6 +9260,7 @@
leave_thread: true,
},
isDefault: false,
+ specialRole: specialRoles.ADMIN_ROLE,
},
},
currentUser: {
@@ -9537,6 +9580,7 @@
create_subthreads: true,
},
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
},
'256|85024': {
id: '256|85024',
@@ -9581,6 +9625,7 @@
leave_thread: true,
},
isDefault: false,
+ specialRole: specialRoles.ADMIN_ROLE,
},
'256|85027': {
id: '256|85027',
@@ -9599,6 +9644,7 @@
voiced: true,
},
isDefault: false,
+ specialRole: null,
},
},
currentUser: {
@@ -9919,6 +9965,7 @@
add_members: true,
},
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
},
},
currentUser: {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 24, 6:18 AM (20 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2698686
Default Alt Text
D10115.diff (9 KB)
Attached To
Mode
D10115: [native] Update update-roles-and-permissions-test-data.js to include specialRole field
Attached
Detach File
Event Timeline
Log In to Comment