[Internal] Re-init history ALL changes (#5682)

* Disable full change support

* Reset history

* Init history, version 2 with ALL changes.

* Take out changeCount field; extra trim

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
This commit is contained in:
Adam R 2021-02-24 10:06:56 +01:00 committed by GitHub
parent d733aaa71f
commit 4104360d9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 15197 additions and 348 deletions

View File

@ -1,5 +1,5 @@
{
"versionNum": 20,
"commit": "33f28616cb0962fd6a86109156a6ae71f5595aec",
"date": "2021-02-24T07:28:13.357Z"
"versionNum": 2,
"commit": "d733aaa71f68d29596bf2ded63699fddc50c2135",
"date": "2021-02-24T09:00:46.619Z"
}

View File

@ -1,18 +0,0 @@
{
"versionEnd": {
"versionNum": 10,
"commit": "1d22c34aeac82a50e5283e6f3306186375911a1a",
"date": "2021-02-22T16:27:06.531Z"
},
"versionStart": {
"versionNum": 9,
"commit": "6b628a09e56d56fe6307fdb24c4d13f7949bcf9c",
"date": "2021-02-22T16:26:05.757Z"
},
"fullChange": false,
"changeCount": 2,
"changes": [
"history/LATEST.json",
"history/versions/9.json"
]
}

View File

@ -1,17 +0,0 @@
{
"versionEnd": {
"versionNum": 11,
"commit": "e8d94d9e4b624d4c545222d950a9344cf76b5b59",
"date": "2021-02-22T16:28:09.941Z"
},
"versionStart": {
"versionNum": 10,
"commit": "1d22c34aeac82a50e5283e6f3306186375911a1a",
"date": "2021-02-22T16:27:06.531Z"
},
"fullChange": false,
"changeCount": 1,
"changes": [
"script/generic/history.ts"
]
}

View File

@ -1,17 +0,0 @@
{
"versionEnd": {
"versionNum": 12,
"commit": "7ec7df17f5fc916d2c3cb495feaab1faa0135364",
"date": "2021-02-22T16:33:10.507Z"
},
"versionStart": {
"versionNum": 11,
"commit": "e8d94d9e4b624d4c545222d950a9344cf76b5b59",
"date": "2021-02-22T16:28:09.941Z"
},
"fullChange": false,
"changeCount": 1,
"changes": [
".github/workflows/history.yml"
]
}

View File

@ -1,17 +0,0 @@
{
"versionEnd": {
"versionNum": 13,
"commit": "a7db1a3509762509b4b497af01646bfcb6d0462d",
"date": "2021-02-22T16:49:52.889Z"
},
"versionStart": {
"versionNum": 12,
"commit": "7ec7df17f5fc916d2c3cb495feaab1faa0135364",
"date": "2021-02-22T16:33:10.507Z"
},
"fullChange": false,
"changeCount": 1,
"changes": [
"script/generic/history.ts"
]
}

View File

@ -1,17 +0,0 @@
{
"versionEnd": {
"versionNum": 14,
"commit": "4155147cebde07f475676dfb640622f172ba8cef",
"date": "2021-02-23T07:21:33.537Z"
},
"versionStart": {
"versionNum": 13,
"commit": "a7db1a3509762509b4b497af01646bfcb6d0462d",
"date": "2021-02-22T16:49:52.889Z"
},
"fullChange": false,
"changeCount": 1,
"changes": [
"blockchains/binance/tokenlist.json"
]
}

View File

@ -1,18 +0,0 @@
{
"versionEnd": {
"versionNum": 15,
"commit": "61b9a6b85939ed32561add2df541eb0a9504cb7c",
"date": "2021-02-23T11:19:08.018Z"
},
"versionStart": {
"versionNum": 14,
"commit": "4155147cebde07f475676dfb640622f172ba8cef",
"date": "2021-02-23T07:21:33.537Z"
},
"fullChange": false,
"changeCount": 2,
"changes": [
"blockchains/smartchain/assets/0x547CBE0f0c25085e7015Aa6939b28402EB0CcDAC/info.json",
"blockchains/smartchain/assets/0x547CBE0f0c25085e7015Aa6939b28402EB0CcDAC/logo.png"
]
}

View File

@ -1,18 +0,0 @@
{
"versionEnd": {
"versionNum": 16,
"commit": "1bcd48c739687a9cb9db0597660cbbe37d757478",
"date": "2021-02-23T11:20:21.158Z"
},
"versionStart": {
"versionNum": 15,
"commit": "61b9a6b85939ed32561add2df541eb0a9504cb7c",
"date": "2021-02-23T11:19:08.018Z"
},
"fullChange": false,
"changeCount": 2,
"changes": [
"blockchains/smartchain/allowlist.json",
"blockchains/smartchain/assets/0x547CBE0f0c25085e7015Aa6939b28402EB0CcDAC/info.json"
]
}

View File

@ -1,18 +0,0 @@
{
"versionEnd": {
"versionNum": 17,
"commit": "50fa80a86e27ca7dbe09f925f3974a52b29243dc",
"date": "2021-02-23T12:37:07.674Z"
},
"versionStart": {
"versionNum": 16,
"commit": "1bcd48c739687a9cb9db0597660cbbe37d757478",
"date": "2021-02-23T11:20:21.158Z"
},
"fullChange": false,
"changeCount": 2,
"changes": [
"blockchains/ethereum/assets/0x340D2bdE5Eb28c1eed91B2f790723E3B160613B7/info.json",
"blockchains/ethereum/assets/0x340D2bdE5Eb28c1eed91B2f790723E3B160613B7/logo.png"
]
}

View File

@ -1,18 +0,0 @@
{
"versionEnd": {
"versionNum": 18,
"commit": "76692c5af7778eb6b95bf3759c1bb4766036045e",
"date": "2021-02-23T13:12:35.151Z"
},
"versionStart": {
"versionNum": 17,
"commit": "50fa80a86e27ca7dbe09f925f3974a52b29243dc",
"date": "2021-02-23T12:37:07.674Z"
},
"fullChange": false,
"changeCount": 2,
"changes": [
"blockchains/ethereum/assets/0xe53EC727dbDEB9E2d5456c3be40cFF031AB40A55/info.json",
"blockchains/ethereum/assets/0xe53EC727dbDEB9E2d5456c3be40cFF031AB40A55/logo.png"
]
}

View File

@ -1,18 +0,0 @@
{
"versionEnd": {
"versionNum": 19,
"commit": "8f75c5563cbe2ac5ba7fbca7208bd68e4811c789",
"date": "2021-02-23T13:14:00.940Z"
},
"versionStart": {
"versionNum": 18,
"commit": "76692c5af7778eb6b95bf3759c1bb4766036045e",
"date": "2021-02-23T13:12:35.151Z"
},
"fullChange": false,
"changeCount": 2,
"changes": [
"blockchains/ethereum/allowlist.json",
"blockchains/ethereum/assets/0xe53EC727dbDEB9E2d5456c3be40cFF031AB40A55/info.json"
]
}

File diff suppressed because it is too large Load Diff

View File

@ -1,17 +0,0 @@
{
"versionEnd": {
"versionNum": 20,
"commit": "33f28616cb0962fd6a86109156a6ae71f5595aec",
"date": "2021-02-24T07:28:13.357Z"
},
"versionStart": {
"versionNum": 19,
"commit": "8f75c5563cbe2ac5ba7fbca7208bd68e4811c789",
"date": "2021-02-23T13:14:00.940Z"
},
"fullChange": false,
"changeCount": 1,
"changes": [
"blockchains/binance/tokenlist.json"
]
}

View File

@ -1,21 +0,0 @@
{
"versionEnd": {
"versionNum": 3,
"commit": "5589bc161f0bea34e74c8715084c33d3883cf3f7",
"date": "2021-02-22T16:19:54.335Z"
},
"versionStart": {
"versionNum": 2,
"commit": "159cec70437445948d3081a0b1564b436bccb646",
"date": "2021-02-22T15:26:24.985Z"
},
"fullChange": false,
"changeCount": 5,
"changes": [
".github/workflows/history.yml",
"history/LATEST.json",
"history/versions/2.json",
"script/entrypoint/history.ts",
"script/generic/history.ts"
]
}

View File

@ -1,18 +0,0 @@
{
"versionEnd": {
"versionNum": 4,
"commit": "a08e2e6dcae02e00fdd5af2466afeac665ac75c3",
"date": "2021-02-22T16:21:04.532Z"
},
"versionStart": {
"versionNum": 3,
"commit": "5589bc161f0bea34e74c8715084c33d3883cf3f7",
"date": "2021-02-22T16:19:54.335Z"
},
"fullChange": false,
"changeCount": 2,
"changes": [
"history/LATEST.json",
"history/versions/3.json"
]
}

View File

@ -1,18 +0,0 @@
{
"versionEnd": {
"versionNum": 5,
"commit": "ab30cf9cb8eb9599e03fdc89d4837713da4398e2",
"date": "2021-02-22T16:22:08.443Z"
},
"versionStart": {
"versionNum": 4,
"commit": "a08e2e6dcae02e00fdd5af2466afeac665ac75c3",
"date": "2021-02-22T16:21:04.532Z"
},
"fullChange": false,
"changeCount": 2,
"changes": [
"history/LATEST.json",
"history/versions/4.json"
]
}

View File

@ -1,18 +0,0 @@
{
"versionEnd": {
"versionNum": 6,
"commit": "19b38c235912d6b45513a15d6cbadcee89ef3220",
"date": "2021-02-22T16:23:08.493Z"
},
"versionStart": {
"versionNum": 5,
"commit": "ab30cf9cb8eb9599e03fdc89d4837713da4398e2",
"date": "2021-02-22T16:22:08.443Z"
},
"fullChange": false,
"changeCount": 2,
"changes": [
"history/LATEST.json",
"history/versions/5.json"
]
}

View File

@ -1,18 +0,0 @@
{
"versionEnd": {
"versionNum": 7,
"commit": "7e1f0237a5075bed4a7b0cbbe704674a6bc6b7fd",
"date": "2021-02-22T16:24:06.519Z"
},
"versionStart": {
"versionNum": 6,
"commit": "19b38c235912d6b45513a15d6cbadcee89ef3220",
"date": "2021-02-22T16:23:08.493Z"
},
"fullChange": false,
"changeCount": 2,
"changes": [
"history/LATEST.json",
"history/versions/6.json"
]
}

View File

@ -1,18 +0,0 @@
{
"versionEnd": {
"versionNum": 8,
"commit": "e33acce1d7e07444655a46d1d457520ef0b50a51",
"date": "2021-02-22T16:25:02.672Z"
},
"versionStart": {
"versionNum": 7,
"commit": "7e1f0237a5075bed4a7b0cbbe704674a6bc6b7fd",
"date": "2021-02-22T16:24:06.519Z"
},
"fullChange": false,
"changeCount": 2,
"changes": [
"history/LATEST.json",
"history/versions/7.json"
]
}

View File

@ -1,18 +0,0 @@
{
"versionEnd": {
"versionNum": 9,
"commit": "6b628a09e56d56fe6307fdb24c4d13f7949bcf9c",
"date": "2021-02-22T16:26:05.757Z"
},
"versionStart": {
"versionNum": 8,
"commit": "e33acce1d7e07444655a46d1d457520ef0b50a51",
"date": "2021-02-22T16:25:02.672Z"
},
"fullChange": false,
"changeCount": 2,
"changes": [
"history/LATEST.json",
"history/versions/8.json"
]
}

View File

@ -16,7 +16,7 @@ const FilenameLatest = "history/LATEST.json";
const FilenameChangeTemplate = "history/versions/";
const IncludeHistoryPrefix1 = "blockchains/";
const IncludeHistoryPrefix2 = "dapps/";
const TooManyChangesLimit = 40;
//const TooManyChangesLimit = 40;
//const util = require('util');
const exec = util.promisify(child_process.exec);
@ -77,7 +77,7 @@ async function getChangedFiles(commitStart: string, commitEnd: string): Promise<
if (!bulk) {
return [];
}
const list: string[] = bulk.split("\n").filter(l => l);
const list: string[] = bulk.split("\n").map(l => l.trim()).filter(l => l);
return list;
}
@ -88,19 +88,19 @@ function filterChangedFiles(files: string[]): string[] {
}
function changeListToJson(versionStart: VersionInfo, versionEnd: VersionInfo, changes: string[]): unknown {
let fullChanges = false;
if (changes.length > TooManyChangesLimit) {
fullChanges = true;
}
//let fullChanges = false;
//if (changes.length > TooManyChangesLimit) {
// fullChanges = true;
//}
const obj: unknown = {
"versionEnd": versionEnd,
"versionStart": versionStart,
"fullChange": fullChanges,
"changeCount": changes.length,
//"fullChange": fullChanges,
//"changeCount": changes.length,
};
if (!fullChanges) {
//if (!fullChanges) {
obj["changes"] = changes;
}
//}
return obj;
}