Update example-github data (#445)

Generated via
```
$ src/v3/plugins/github/fetchGithubRepoTest.sh -u
```

Test plan: travis
This commit is contained in:
Dandelion Mané 2018-06-29 11:37:41 -07:00 committed by GitHub
parent baec3c15dd
commit 3bf496b06f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 219 additions and 90 deletions

View File

@ -23,7 +23,7 @@ Array [
"1", "1",
], ],
"dstIndex": 16, "dstIndex": 16,
"srcIndex": 28, "srcIndex": 29,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -37,10 +37,27 @@ Array [
"ISSUE", "ISSUE",
"sourcecred", "sourcecred",
"example-github", "example-github",
"2", "10",
], ],
"dstIndex": 17, "dstIndex": 17,
"srcIndex": 28, "srcIndex": 29,
},
Object {
"address": Array [
"sourcecred",
"github",
"AUTHORS",
"2",
"USERLIKE",
"decentralion",
"4",
"ISSUE",
"sourcecred",
"example-github",
"2",
],
"dstIndex": 18,
"srcIndex": 29,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -56,8 +73,8 @@ Array [
"example-github", "example-github",
"4", "4",
], ],
"dstIndex": 18, "dstIndex": 19,
"srcIndex": 28, "srcIndex": 29,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -73,8 +90,8 @@ Array [
"example-github", "example-github",
"6", "6",
], ],
"dstIndex": 19, "dstIndex": 20,
"srcIndex": 28, "srcIndex": 29,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -90,8 +107,8 @@ Array [
"example-github", "example-github",
"7", "7",
], ],
"dstIndex": 20, "dstIndex": 21,
"srcIndex": 28, "srcIndex": 29,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -107,8 +124,8 @@ Array [
"example-github", "example-github",
"8", "8",
], ],
"dstIndex": 21, "dstIndex": 22,
"srcIndex": 28, "srcIndex": 29,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -124,8 +141,8 @@ Array [
"example-github", "example-github",
"3", "3",
], ],
"dstIndex": 22, "dstIndex": 23,
"srcIndex": 28, "srcIndex": 29,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -141,8 +158,8 @@ Array [
"example-github", "example-github",
"5", "5",
], ],
"dstIndex": 23, "dstIndex": 24,
"srcIndex": 28, "srcIndex": 29,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -158,8 +175,8 @@ Array [
"example-github", "example-github",
"9", "9",
], ],
"dstIndex": 24, "dstIndex": 25,
"srcIndex": 28, "srcIndex": 29,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -178,7 +195,7 @@ Array [
"373768703", "373768703",
], ],
"dstIndex": 2, "dstIndex": 2,
"srcIndex": 28, "srcIndex": 29,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -197,7 +214,7 @@ Array [
"373768850", "373768850",
], ],
"dstIndex": 3, "dstIndex": 3,
"srcIndex": 28, "srcIndex": 29,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -216,7 +233,7 @@ Array [
"385576185", "385576185",
], ],
"dstIndex": 4, "dstIndex": 4,
"srcIndex": 28, "srcIndex": 29,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -235,7 +252,7 @@ Array [
"385576220", "385576220",
], ],
"dstIndex": 5, "dstIndex": 5,
"srcIndex": 28, "srcIndex": 29,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -254,7 +271,7 @@ Array [
"385576248", "385576248",
], ],
"dstIndex": 6, "dstIndex": 6,
"srcIndex": 28, "srcIndex": 29,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -273,7 +290,7 @@ Array [
"385576273", "385576273",
], ],
"dstIndex": 7, "dstIndex": 7,
"srcIndex": 28, "srcIndex": 29,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -292,7 +309,7 @@ Array [
"385576920", "385576920",
], ],
"dstIndex": 8, "dstIndex": 8,
"srcIndex": 28, "srcIndex": 29,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -311,7 +328,7 @@ Array [
"385576936", "385576936",
], ],
"dstIndex": 9, "dstIndex": 9,
"srcIndex": 28, "srcIndex": 29,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -330,7 +347,7 @@ Array [
"373768442", "373768442",
], ],
"dstIndex": 10, "dstIndex": 10,
"srcIndex": 28, "srcIndex": 29,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -349,7 +366,7 @@ Array [
"373768538", "373768538",
], ],
"dstIndex": 11, "dstIndex": 11,
"srcIndex": 28, "srcIndex": 29,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -368,7 +385,7 @@ Array [
"385223316", "385223316",
], ],
"dstIndex": 12, "dstIndex": 12,
"srcIndex": 28, "srcIndex": 29,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -387,7 +404,7 @@ Array [
"369162222", "369162222",
], ],
"dstIndex": 13, "dstIndex": 13,
"srcIndex": 28, "srcIndex": 29,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -404,8 +421,8 @@ Array [
"5", "5",
"100313899", "100313899",
], ],
"dstIndex": 26, "dstIndex": 27,
"srcIndex": 29, "srcIndex": 30,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -422,8 +439,8 @@ Array [
"5", "5",
"100314038", "100314038",
], ],
"dstIndex": 27, "dstIndex": 28,
"srcIndex": 29, "srcIndex": 30,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -442,7 +459,7 @@ Array [
"396430464", "396430464",
], ],
"dstIndex": 14, "dstIndex": 14,
"srcIndex": 29, "srcIndex": 30,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -462,7 +479,7 @@ Array [
"171460198", "171460198",
], ],
"dstIndex": 15, "dstIndex": 15,
"srcIndex": 29, "srcIndex": 30,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -475,9 +492,23 @@ Array [
"example-github", "example-github",
"1", "1",
], ],
"dstIndex": 25, "dstIndex": 26,
"srcIndex": 16, "srcIndex": 16,
}, },
Object {
"address": Array [
"sourcecred",
"github",
"HAS_PARENT",
"4",
"ISSUE",
"sourcecred",
"example-github",
"10",
],
"dstIndex": 26,
"srcIndex": 17,
},
Object { Object {
"address": Array [ "address": Array [
"sourcecred", "sourcecred",
@ -489,8 +520,8 @@ Array [
"example-github", "example-github",
"2", "2",
], ],
"dstIndex": 25, "dstIndex": 26,
"srcIndex": 17, "srcIndex": 18,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -503,8 +534,8 @@ Array [
"example-github", "example-github",
"4", "4",
], ],
"dstIndex": 25, "dstIndex": 26,
"srcIndex": 18, "srcIndex": 19,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -517,8 +548,8 @@ Array [
"example-github", "example-github",
"6", "6",
], ],
"dstIndex": 25, "dstIndex": 26,
"srcIndex": 19, "srcIndex": 20,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -531,8 +562,8 @@ Array [
"example-github", "example-github",
"7", "7",
], ],
"dstIndex": 25, "dstIndex": 26,
"srcIndex": 20, "srcIndex": 21,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -545,8 +576,8 @@ Array [
"example-github", "example-github",
"8", "8",
], ],
"dstIndex": 25, "dstIndex": 26,
"srcIndex": 21, "srcIndex": 22,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -559,8 +590,8 @@ Array [
"example-github", "example-github",
"3", "3",
], ],
"dstIndex": 25, "dstIndex": 26,
"srcIndex": 22, "srcIndex": 23,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -573,8 +604,8 @@ Array [
"example-github", "example-github",
"5", "5",
], ],
"dstIndex": 25, "dstIndex": 26,
"srcIndex": 23, "srcIndex": 24,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -587,8 +618,8 @@ Array [
"example-github", "example-github",
"9", "9",
], ],
"dstIndex": 25, "dstIndex": 26,
"srcIndex": 24, "srcIndex": 25,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -602,8 +633,8 @@ Array [
"5", "5",
"100313899", "100313899",
], ],
"dstIndex": 23, "dstIndex": 24,
"srcIndex": 26, "srcIndex": 27,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -617,8 +648,8 @@ Array [
"5", "5",
"100314038", "100314038",
], ],
"dstIndex": 23, "dstIndex": 24,
"srcIndex": 27, "srcIndex": 28,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -633,7 +664,7 @@ Array [
"2", "2",
"373768703", "373768703",
], ],
"dstIndex": 17, "dstIndex": 18,
"srcIndex": 2, "srcIndex": 2,
}, },
Object { Object {
@ -649,7 +680,7 @@ Array [
"2", "2",
"373768850", "373768850",
], ],
"dstIndex": 17, "dstIndex": 18,
"srcIndex": 3, "srcIndex": 3,
}, },
Object { Object {
@ -665,7 +696,7 @@ Array [
"2", "2",
"385576185", "385576185",
], ],
"dstIndex": 17, "dstIndex": 18,
"srcIndex": 4, "srcIndex": 4,
}, },
Object { Object {
@ -681,7 +712,7 @@ Array [
"2", "2",
"385576220", "385576220",
], ],
"dstIndex": 17, "dstIndex": 18,
"srcIndex": 5, "srcIndex": 5,
}, },
Object { Object {
@ -697,7 +728,7 @@ Array [
"2", "2",
"385576248", "385576248",
], ],
"dstIndex": 17, "dstIndex": 18,
"srcIndex": 6, "srcIndex": 6,
}, },
Object { Object {
@ -713,7 +744,7 @@ Array [
"2", "2",
"385576273", "385576273",
], ],
"dstIndex": 17, "dstIndex": 18,
"srcIndex": 7, "srcIndex": 7,
}, },
Object { Object {
@ -729,7 +760,7 @@ Array [
"2", "2",
"385576920", "385576920",
], ],
"dstIndex": 17, "dstIndex": 18,
"srcIndex": 8, "srcIndex": 8,
}, },
Object { Object {
@ -745,7 +776,7 @@ Array [
"2", "2",
"385576936", "385576936",
], ],
"dstIndex": 17, "dstIndex": 18,
"srcIndex": 9, "srcIndex": 9,
}, },
Object { Object {
@ -761,7 +792,7 @@ Array [
"6", "6",
"373768442", "373768442",
], ],
"dstIndex": 19, "dstIndex": 20,
"srcIndex": 10, "srcIndex": 10,
}, },
Object { Object {
@ -777,7 +808,7 @@ Array [
"6", "6",
"373768538", "373768538",
], ],
"dstIndex": 19, "dstIndex": 20,
"srcIndex": 11, "srcIndex": 11,
}, },
Object { Object {
@ -793,7 +824,7 @@ Array [
"6", "6",
"385223316", "385223316",
], ],
"dstIndex": 19, "dstIndex": 20,
"srcIndex": 12, "srcIndex": 12,
}, },
Object { Object {
@ -809,7 +840,7 @@ Array [
"3", "3",
"369162222", "369162222",
], ],
"dstIndex": 22, "dstIndex": 23,
"srcIndex": 13, "srcIndex": 13,
}, },
Object { Object {
@ -825,7 +856,7 @@ Array [
"5", "5",
"396430464", "396430464",
], ],
"dstIndex": 23, "dstIndex": 24,
"srcIndex": 14, "srcIndex": 14,
}, },
Object { Object {
@ -842,7 +873,7 @@ Array [
"100313899", "100313899",
"171460198", "171460198",
], ],
"dstIndex": 26, "dstIndex": 27,
"srcIndex": 15, "srcIndex": 15,
}, },
Object { Object {
@ -857,7 +888,7 @@ Array [
"3", "3",
], ],
"dstIndex": 0, "dstIndex": 0,
"srcIndex": 22, "srcIndex": 23,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -871,7 +902,62 @@ Array [
"5", "5",
], ],
"dstIndex": 1, "dstIndex": 1,
"srcIndex": 23, "srcIndex": 24,
},
Object {
"address": Array [
"sourcecred",
"github",
"REFERENCES",
"4",
"ISSUE",
"sourcecred",
"example-github",
"10",
"2",
"USERLIKE",
"wchargin",
],
"dstIndex": 30,
"srcIndex": 17,
},
Object {
"address": Array [
"sourcecred",
"github",
"REFERENCES",
"4",
"ISSUE",
"sourcecred",
"example-github",
"10",
"4",
"ISSUE",
"sourcecred",
"example-github",
"10",
],
"dstIndex": 17,
"srcIndex": 17,
},
Object {
"address": Array [
"sourcecred",
"github",
"REFERENCES",
"4",
"ISSUE",
"sourcecred",
"example-github",
"10",
"4",
"ISSUE",
"sourcecred",
"example-github",
"2",
],
"dstIndex": 18,
"srcIndex": 17,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -890,7 +976,7 @@ Array [
"1", "1",
], ],
"dstIndex": 16, "dstIndex": 16,
"srcIndex": 17, "srcIndex": 18,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -906,8 +992,8 @@ Array [
"USERLIKE", "USERLIKE",
"wchargin", "wchargin",
], ],
"dstIndex": 29, "dstIndex": 30,
"srcIndex": 23, "srcIndex": 24,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -923,8 +1009,8 @@ Array [
"USERLIKE", "USERLIKE",
"wchargin", "wchargin",
], ],
"dstIndex": 29, "dstIndex": 30,
"srcIndex": 24, "srcIndex": 25,
}, },
Object { Object {
"address": Array [ "address": Array [
@ -944,7 +1030,7 @@ Array [
"example-github", "example-github",
"6", "6",
], ],
"dstIndex": 19, "dstIndex": 20,
"srcIndex": 2, "srcIndex": 2,
}, },
Object { Object {
@ -988,7 +1074,7 @@ Array [
"example-github", "example-github",
"5", "5",
], ],
"dstIndex": 23, "dstIndex": 24,
"srcIndex": 4, "srcIndex": 4,
}, },
Object { Object {
@ -1010,7 +1096,7 @@ Array [
"5", "5",
"100313899", "100313899",
], ],
"dstIndex": 26, "dstIndex": 27,
"srcIndex": 5, "srcIndex": 5,
}, },
Object { Object {
@ -1053,7 +1139,7 @@ Array [
"USERLIKE", "USERLIKE",
"wchargin", "wchargin",
], ],
"dstIndex": 29, "dstIndex": 30,
"srcIndex": 7, "srcIndex": 7,
}, },
Object { Object {
@ -1095,7 +1181,7 @@ Array [
"example-github", "example-github",
"2", "2",
], ],
"dstIndex": 17, "dstIndex": 18,
"srcIndex": 8, "srcIndex": 8,
}, },
Object { Object {
@ -1116,7 +1202,7 @@ Array [
"example-github", "example-github",
"3", "3",
], ],
"dstIndex": 22, "dstIndex": 23,
"srcIndex": 8, "srcIndex": 8,
}, },
Object { Object {
@ -1138,7 +1224,7 @@ Array [
"5", "5",
"100313899", "100313899",
], ],
"dstIndex": 26, "dstIndex": 27,
"srcIndex": 8, "srcIndex": 8,
}, },
Object { Object {
@ -1183,7 +1269,7 @@ Array [
"example-github", "example-github",
"2", "2",
], ],
"dstIndex": 17, "dstIndex": 18,
"srcIndex": 12, "srcIndex": 12,
}, },
Object { Object {
@ -1204,7 +1290,7 @@ Array [
"example-github", "example-github",
"2", "2",
], ],
"dstIndex": 17, "dstIndex": 18,
"srcIndex": 13, "srcIndex": 13,
}, },
], ],
@ -1370,6 +1456,14 @@ Array [
"example-github", "example-github",
"1", "1",
], ],
Array [
"sourcecred",
"github",
"ISSUE",
"sourcecred",
"example-github",
"10",
],
Array [ Array [
"sourcecred", "sourcecred",
"github", "github",

View File

@ -30,7 +30,7 @@ Object {
exports[`plugins/github/graphView issues /#2 number of comments matches snapshot 1`] = `8`; exports[`plugins/github/graphView issues /#2 number of comments matches snapshot 1`] = `8`;
exports[`plugins/github/graphView issues number of issues matches snapshot 1`] = `6`; exports[`plugins/github/graphView issues number of issues matches snapshot 1`] = `7`;
exports[`plugins/github/graphView pulls /#5 /comment #1 matches snapshot 1`] = ` exports[`plugins/github/graphView pulls /#5 /comment #1 matches snapshot 1`] = `
Object { Object {

View File

@ -132,7 +132,7 @@ Array [
] ]
`; `;
exports[`plugins/github/relationalView RelationalView entity: issues has expected number of them 1`] = `6`; exports[`plugins/github/relationalView RelationalView entity: issues has expected number of them 1`] = `7`;
exports[`plugins/github/relationalView RelationalView entity: issues they have expected urls 1`] = ` exports[`plugins/github/relationalView RelationalView entity: issues they have expected urls 1`] = `
Array [ Array [
@ -142,6 +142,7 @@ Array [
"https://github.com/sourcecred/example-github/issues/6", "https://github.com/sourcecred/example-github/issues/6",
"https://github.com/sourcecred/example-github/issues/7", "https://github.com/sourcecred/example-github/issues/7",
"https://github.com/sourcecred/example-github/issues/8", "https://github.com/sourcecred/example-github/issues/8",
"https://github.com/sourcecred/example-github/issues/10",
] ]
`; `;
@ -187,7 +188,7 @@ exports[`plugins/github/relationalView Repo has owner 1`] = `"sourcecred"`;
exports[`plugins/github/relationalView Repo has url 1`] = `"https://github.com/sourcecred/example-github"`; exports[`plugins/github/relationalView Repo has url 1`] = `"https://github.com/sourcecred/example-github"`;
exports[`plugins/github/relationalView Repo issues has expected number of issues 1`] = `6`; exports[`plugins/github/relationalView Repo issues has expected number of issues 1`] = `7`;
exports[`plugins/github/relationalView Repo issues have expected urls 1`] = ` exports[`plugins/github/relationalView Repo issues have expected urls 1`] = `
Array [ Array [
@ -197,6 +198,7 @@ Array [
"https://github.com/sourcecred/example-github/issues/6", "https://github.com/sourcecred/example-github/issues/6",
"https://github.com/sourcecred/example-github/issues/7", "https://github.com/sourcecred/example-github/issues/7",
"https://github.com/sourcecred/example-github/issues/8", "https://github.com/sourcecred/example-github/issues/8",
"https://github.com/sourcecred/example-github/issues/10",
] ]
`; `;
@ -248,6 +250,18 @@ Array [
"from": "https://github.com/sourcecred/example-github/issues/2", "from": "https://github.com/sourcecred/example-github/issues/2",
"to": "https://github.com/sourcecred/example-github/issues/1", "to": "https://github.com/sourcecred/example-github/issues/1",
}, },
Object {
"from": "https://github.com/sourcecred/example-github/issues/10",
"to": "https://github.com/sourcecred/example-github/issues/10",
},
Object {
"from": "https://github.com/sourcecred/example-github/issues/10",
"to": "https://github.com/sourcecred/example-github/issues/2",
},
Object {
"from": "https://github.com/sourcecred/example-github/issues/10",
"to": "https://github.com/wchargin",
},
Object { Object {
"from": "https://github.com/sourcecred/example-github/pull/5", "from": "https://github.com/sourcecred/example-github/pull/5",
"to": "https://github.com/wchargin", "to": "https://github.com/wchargin",

View File

@ -249,10 +249,31 @@
"number": 8, "number": 8,
"title": "Issue with Unicode: ȴሲ𣐳楢👍 :heart: 𐤔𐤁𐤀𐤑𐤍𐤉𐤔𐤌𐤄𐤍𐤍 ❤️", "title": "Issue with Unicode: ȴሲ𣐳楢👍 :heart: 𐤔𐤁𐤀𐤑𐤍𐤉𐤔𐤌𐤄𐤍𐤍 ❤️",
"url": "https://github.com/sourcecred/example-github/issues/8" "url": "https://github.com/sourcecred/example-github/issues/8"
},
{
"author": {
"__typename": "User",
"id": "MDQ6VXNlcjE0MDAwMjM=",
"login": "decentralion",
"url": "https://github.com/decentralion"
},
"body": "This issue was paired with @wchargin \r\n\r\nIt also attempts to reference itself: #10\r\n\r\nIt also references something twice: #2 #2 ",
"comments": {
"nodes": [
],
"pageInfo": {
"endCursor": null,
"hasNextPage": false
}
},
"id": "MDU6SXNzdWUzMzcwOTU0NzM=",
"number": 10,
"title": "Paired with multireference",
"url": "https://github.com/sourcecred/example-github/issues/10"
} }
], ],
"pageInfo": { "pageInfo": {
"endCursor": "Y3Vyc29yOnYyOpHOEkw5lw==", "endCursor": "Y3Vyc29yOnYyOpHOFBerMQ==",
"hasNextPage": false "hasNextPage": false
} }
}, },