From 2c1ccd05572212f98d7a9e0a11e5c4aabacd65eb Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Fri, 29 Jan 2021 23:17:43 +0100 Subject: [PATCH 1/4] prune state.json --- packages/health-check/src/run.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/health-check/src/run.js b/packages/health-check/src/run.js index fdabdea9..95a7b5a1 100644 --- a/packages/health-check/src/run.js +++ b/packages/health-check/src/run.js @@ -1,3 +1,5 @@ +const { getYesterdayISOString } = require("./utils"); + require("yargs/yargs")(process.argv.slice(2)).command( "$0 ", "Skynet portal health checks", @@ -31,7 +33,10 @@ require("yargs/yargs")(process.argv.slice(2)).command( checks: await Promise.all(checks.map((check) => new Promise(check))), }; - // read before writing to make sure no external changes are overwritten - db.read().get(type).push(entry).write(); + db.read() // read before writing to make sure no external changes are overwritten + .get(type) // get the list of records of given type + .push(entry) // insert new record + .remove(({ date }) => date < getYesterdayISOString()) // drop old records + .write(); } ).argv; From 75b2eeb9ae3099c54e7dd35d169fa50907c26ca1 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Fri, 29 Jan 2021 23:26:41 +0100 Subject: [PATCH 2/4] do not install authorized_keys by default --- setup-scripts/setup-server.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-scripts/setup-server.sh b/setup-scripts/setup-server.sh index bd5c8fbe..aaaa97f3 100755 --- a/setup-scripts/setup-server.sh +++ b/setup-scripts/setup-server.sh @@ -10,7 +10,7 @@ source /home/user/.bashrc # Add SSH keys and set SSH configs sudo cp /home/user/skynet-webportal/setup-scripts/support/ssh_config /etc/ssh/ssh_config mkdir -p /home/user/.ssh -cat /home/user/skynet-webportal/setup-scripts/support/authorized_keys >> /home/user/.ssh/authorized_keys +# cat /home/user/skynet-webportal/setup-scripts/support/authorized_keys >> /home/user/.ssh/authorized_keys # Install apt packages sudo apt-get update From abc777e3118739fae12e0baf45de0b2297c9b8f9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Feb 2021 10:14:34 +0000 Subject: [PATCH 3/4] Bump gatsby-plugin-matomo from 0.8.3 to 0.9.0 in /packages/webapp Bumps [gatsby-plugin-matomo](https://github.com/kremalicious/gatsby-plugin-matomo) from 0.8.3 to 0.9.0. - [Release notes](https://github.com/kremalicious/gatsby-plugin-matomo/releases) - [Changelog](https://github.com/kremalicious/gatsby-plugin-matomo/blob/main/CHANGELOG.md) - [Commits](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.8.3...v0.9.0) Signed-off-by: dependabot[bot] --- packages/webapp/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webapp/package.json b/packages/webapp/package.json index 419f4aab..9efb7cd0 100644 --- a/packages/webapp/package.json +++ b/packages/webapp/package.json @@ -11,7 +11,7 @@ "gatsby": "2.31.1", "gatsby-image": "2.10.0", "gatsby-plugin-manifest": "2.11.0", - "gatsby-plugin-matomo": "0.8.3", + "gatsby-plugin-matomo": "0.9.0", "gatsby-plugin-react-helmet": "3.9.0", "gatsby-plugin-remove-serviceworker": "1.0.0", "gatsby-plugin-robots-txt": "1.5.5", From 180e43772ed7bc69e3b8b3052ffe01449875847b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Feb 2021 10:20:45 +0000 Subject: [PATCH 4/4] Bump eslint from 7.18.0 to 7.19.0 in /packages/webapp Bumps [eslint](https://github.com/eslint/eslint) from 7.18.0 to 7.19.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.18.0...v7.19.0) Signed-off-by: dependabot[bot] --- packages/webapp/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webapp/package.json b/packages/webapp/package.json index 419f4aab..63dc3b30 100644 --- a/packages/webapp/package.json +++ b/packages/webapp/package.json @@ -36,7 +36,7 @@ "devDependencies": { "cypress": "6.3.0", "cypress-file-upload": "5.0.2", - "eslint": "7.18.0", + "eslint": "7.19.0", "eslint-config-prettier": "7.2.0", "eslint-plugin-cypress": "2.11.2", "eslint-plugin-react": "7.22.0",