Skip to content

Commit ba3e22d

Browse files
SamChou19815facebook-github-bot
authored andcommitted
Pre-suppress errors in xplat ahead of 0.257.0 release
Reviewed By: panagosg7 Differential Revision: D67368232 fbshipit-source-id: 23111f62c5731b5a58e15ac8ef2dcd9ea8006573
1 parent 658d327 commit ba3e22d

7 files changed

+32
-0
lines changed

packages/react-relay/__tests__/RelayResolvers-withOutputType-test.js

+9
Original file line numberDiff line numberDiff line change
@@ -565,10 +565,12 @@ test('renders after GC', () => {
565565
'client:root': {
566566
__id: 'client:root',
567567
__typename: '__Root',
568+
// $FlowFixMe[invalid-computed-prop]
568569
[`${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}todos(first:10)`]: {
569570
__ref: `client:root:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}todos(first:10)`,
570571
},
571572
},
573+
// $FlowFixMe[invalid-computed-prop]
572574
[`client:root:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}todos(first:10)`]: {
573575
__id: `client:root:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}todos(first:10)`,
574576
__resolverError: null,
@@ -588,6 +590,7 @@ test('renders after GC', () => {
588590
__resolverValue: `client:TodoConnection:client:root:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}todos(first:10)`,
589591
__typename: '__RELAY_RESOLVER__',
590592
},
593+
// $FlowFixMe[invalid-computed-prop]
591594
[`client:TodoConnection:client:root:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}todos(first:10)`]:
592595
{
593596
__id: `client:TodoConnection:client:root:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}todos(first:10)`,
@@ -602,6 +605,7 @@ test('renders after GC', () => {
602605
__ref: `client:TodoConnection:client:root:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}todos(first:10):pageInfo`,
603606
},
604607
},
608+
// $FlowFixMe[invalid-computed-prop]
605609
[`client:TodoConnection:client:root:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}todos(first:10):edges:0`]:
606610
{
607611
__id: `client:TodoConnection:client:root:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}todos(first:10):edges:0`,
@@ -611,21 +615,26 @@ test('renders after GC', () => {
611615
__ref: `client:TodoConnection:client:root:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}todos(first:10):edges:0:node`,
612616
},
613617
},
618+
// $FlowFixMe[invalid-computed-prop]
614619
[`client:TodoConnection:client:root:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}todos(first:10):edges:0:node`]:
615620
{
616621
__id: `client:TodoConnection:client:root:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}todos(first:10):edges:0:node`,
617622
__typename: 'Todo',
623+
// $FlowFixMe[invalid-computed-prop]
618624
[`${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}complete`]: {
619625
__ref: `client:TodoConnection:client:root:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}todos(first:10):edges:0:node:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}complete`,
620626
},
627+
// $FlowFixMe[invalid-computed-prop]
621628
[`${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}self`]: {
622629
__ref: `client:TodoConnection:client:root:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}todos(first:10):edges:0:node:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}self`,
623630
},
631+
// $FlowFixMe[invalid-computed-prop]
624632
[`${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}text`]: {
625633
__ref: `client:TodoConnection:client:root:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}todos(first:10):edges:0:node:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}text`,
626634
},
627635
todo_id: 'todo-1',
628636
},
637+
// $FlowFixMe[invalid-computed-prop]
629638
[`client:TodoConnection:client:root:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}todos(first:10):pageInfo`]:
630639
{
631640
__id: `client:TodoConnection:client:root:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}todos(first:10):pageInfo`,

packages/relay-runtime/store/__tests__/DataChecker-test.js

+9
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ describe('check()', () => {
257257
id: '1',
258258
__typename: 'User',
259259
'profilePicture(size:32)': {__ref: 'client:1'},
260+
// $FlowFixMe[invalid-computed-prop]
260261
[handleKey]: {__ref: 'client:3'},
261262
},
262263
'client:1': {
@@ -348,6 +349,7 @@ describe('check()', () => {
348349
id: '1',
349350
__typename: 'User',
350351
'profilePicture(size:32)': {__ref: 'client:1'},
352+
// $FlowFixMe[invalid-computed-prop]
351353
[handleKey]: {__ref: 'client:3'},
352354
},
353355
'client:1': {
@@ -399,6 +401,7 @@ describe('check()', () => {
399401
id: '1',
400402
__typename: 'User',
401403
'profilePicture(size:32)': {__ref: 'client:1'},
404+
// $FlowFixMe[invalid-computed-prop]
402405
[handleKey]: {__ref: 'client:3'},
403406
},
404407
'client:1': {
@@ -517,6 +520,7 @@ describe('check()', () => {
517520
id: '1',
518521
__typename: 'User',
519522
'profilePicture(size:32)': {__ref: 'client:1'},
523+
// $FlowFixMe[invalid-computed-prop]
520524
[handleKey]: {__ref: 'client:3'},
521525
},
522526
'client:1': {
@@ -581,6 +585,7 @@ describe('check()', () => {
581585
__id: 'client:2',
582586
__typename: 'Photo',
583587
uri: 'https://...',
588+
// $FlowFixMe[invalid-computed-prop]
584589
[handleKey]: 'https://...',
585590
},
586591
};
@@ -2648,6 +2653,7 @@ describe('check()', () => {
26482653
name: 'Alice',
26492654
// no `id` value
26502655
},
2656+
// $FlowFixMe[invalid-computed-prop]
26512657
[typeID]: {
26522658
__id: typeID,
26532659
__typename: TYPE_SCHEMA_TYPE,
@@ -2703,6 +2709,7 @@ describe('check()', () => {
27032709
name: 'Alice',
27042710
id: '1',
27052711
},
2712+
// $FlowFixMe[invalid-computed-prop]
27062713
[typeID]: {
27072714
__id: typeID,
27082715
__typename: TYPE_SCHEMA_TYPE,
@@ -2759,6 +2766,7 @@ describe('check()', () => {
27592766
// no 'id' bc not a Node
27602767
name: 'Not a Node!',
27612768
},
2769+
// $FlowFixMe[invalid-computed-prop]
27622770
[typeID]: {
27632771
__id: typeID,
27642772
__typename: TYPE_SCHEMA_TYPE,
@@ -2862,6 +2870,7 @@ describe('check()', () => {
28622870
__typename: 'Text',
28632871
text: 'Hello, Antonio',
28642872
},
2873+
// $FlowFixMe[invalid-computed-prop]
28652874
[typeID]: {
28662875
__id: typeID,
28672876
__typename: TYPE_SCHEMA_TYPE,

packages/relay-runtime/store/__tests__/RelayModernStore-test.js

+1
Original file line numberDiff line numberDiff line change
@@ -2436,6 +2436,7 @@ function cloneEventWithSets(event: LogEvent) {
24362436
[ROOT_ID]: {
24372437
__id: ROOT_ID,
24382438
__typename: ROOT_TYPE,
2439+
// $FlowFixMe[invalid-computed-prop]
24392440
[`node(id:"${nodeID}")`]: {__ref: nodeID},
24402441
},
24412442
});

packages/relay-runtime/store/__tests__/RelayReferenceMarker-test.js

+4
Original file line numberDiff line numberDiff line change
@@ -841,10 +841,12 @@ describe('RelayReferenceMarker', () => {
841841
'client:root': {
842842
__id: 'client:root',
843843
__typename: '__Root',
844+
// $FlowFixMe[invalid-computed-prop]
844845
[`${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}counter_no_fragment`]: {
845846
__ref: `client:root:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}counter_no_fragment`,
846847
},
847848
},
849+
// $FlowFixMe[invalid-computed-prop]
848850
[`client:root:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}counter_no_fragment`]:
849851
{},
850852
};
@@ -889,6 +891,7 @@ describe('RelayReferenceMarker', () => {
889891
__id: 'client:root',
890892
__typename: 'Query',
891893
me: {__ref: '1'},
894+
// $FlowFixMe[invalid-computed-prop]
892895
[`${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}counter`]: {
893896
__ref: `client:root:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}counter`,
894897
},
@@ -897,6 +900,7 @@ describe('RelayReferenceMarker', () => {
897900
__id: '1',
898901
__typename: 'User',
899902
},
903+
// $FlowFixMe[invalid-computed-prop]
900904
[`client:root:${RELAY_READ_TIME_RESOLVER_KEY_PREFIX}counter`]: {},
901905
};
902906
const nodes = {

packages/relay-runtime/store/__tests__/RelayResponseNormalizer-test.js

+5
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,14 @@ describe('RelayResponseNormalizer', () => {
135135
__refs: [edgeID1, null, edgeID2],
136136
},
137137
},
138+
// $FlowFixMe[invalid-computed-prop]
138139
[edgeID1]: {
139140
__id: edgeID1,
140141
__typename: 'FriendsEdge',
141142
cursor: 'cursor:2',
142143
node: {__ref: '2'},
143144
},
145+
// $FlowFixMe[invalid-computed-prop]
144146
[edgeID2]: {
145147
__id: edgeID2,
146148
__typename: 'FriendsEdge',
@@ -4285,18 +4287,21 @@ describe('RelayResponseNormalizer', () => {
42854287
__refs: [edge0ID, edge1ID, edge2ID],
42864288
},
42874289
},
4290+
// $FlowFixMe[invalid-computed-prop]
42884291
[edge0ID]: {
42894292
__id: edge0ID,
42904293
__typename: 'FriendsEdge',
42914294
cursor: 'cursor:2',
42924295
node: {__ref: '2'},
42934296
},
4297+
// $FlowFixMe[invalid-computed-prop]
42944298
[edge1ID]: {
42954299
__id: edge1ID,
42964300
__typename: 'FriendsEdge',
42974301
cursor: 'cursor:3',
42984302
node: {__ref: '3'},
42994303
},
4304+
// $FlowFixMe[invalid-computed-prop]
43004305
[edge2ID]: {
43014306
__id: edge2ID,
43024307
__typename: 'FriendsEdge',

packages/relay-runtime/util/getPaginationVariables.js

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ function getPaginationVariables(
5656
...baseVariables,
5757
...extraVariables,
5858
[backwardMetadata.cursor]: cursor,
59+
// $FlowFixMe[incompatible-type]
5960
[backwardMetadata.count]: count,
6061
};
6162
if (forwardMetadata && forwardMetadata.cursor) {
@@ -92,6 +93,7 @@ function getPaginationVariables(
9293
...baseVariables,
9394
...extraVariables,
9495
[forwardMetadata.cursor]: cursor,
96+
// $FlowFixMe[incompatible-type]
9597
[forwardMetadata.count]: count,
9698
};
9799
if (backwardMetadata && backwardMetadata.cursor) {

packages/relay-test-utils/RelayMockPayloadGenerator.js

+2
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,9 @@ class RelayMockPayloadGenerator {
536536
mockData = {
537537
...mockData,
538538
[TYPENAME_KEY]: typeName,
539+
// $FlowFixMe[invalid-computed-prop]
539540
[getModuleOperationKey(documentName)]: operation.name,
541+
// $FlowFixMe[invalid-computed-prop]
540542
[getModuleComponentKey(documentName)]:
541543
defaultValues.__module_component,
542544
...this._traverseSelections(

0 commit comments

Comments
 (0)