mirror of
https://github.com/status-im/sourcecred.git
synced 2025-01-14 06:35:18 +00:00
0254f54375
Updating github example data with support for 🚀 and 👀 reaction types. This follows #1068 and @decentralion updating the archived repo with the new reaction types. `src/plugins/github/fetchGithubRepoTest.sh -u` (as @decentralion suggested) updated `example-github.json` `yarn unit` caught two tests with failing snapshot tests (`createGraph.test` and `relationalView.test`), so I updated those with `yarn unit -u` `yarn test -full` caught a failing snapshot test at `sharness-full`, resolved by updating the snapshot in `view.json.gz` with `UPDATE_SNAPSHOT=1 yarn test --full`. Thanks to @wchargin for the [explanation] on how to resolve that issue. [explanation]: https://github.com/sourcecred/sourcecred/pull/1077#pullrequestreview-196805017 **Test Plan:** `yarn test --full` is passing. Additionally, the commands: ```sh filepath="./sharness/__snapshots__/example-github-load/data/sourcecred/example-github/github/view.json.gz" && [ -f "${filepath}" ] && # sanity check diff -u \ <(git show "HEAD:${filepath}" | gzip -d | jq .) \ <(gzip -dc "${filepath}" | jq .) \ ; ``` yields the following output: ``` --- /dev/fd/63 2019-01-27 08:34:15.020387301 -0500 +++ /dev/fd/62 2019-01-27 08:34:15.021095696 -0500 @@ -654,6 +654,22 @@ "subtype": "USER", "login": "decentralion" } + }, + { + "content": "ROCKET", + "user": { + "type": "USERLIKE", + "subtype": "USER", + "login": "decentralion" + } + }, + { + "content": "EYES", + "user": { + "type": "USERLIKE", + "subtype": "USER", + "login": "decentralion" + } } ] } ``` Again, thanks @wchargin's for providing those commands and accompanying explanation.