From 0a054e6b541fd5ab470bf025665f5f7d2acedaa0 Mon Sep 17 00:00:00 2001 From: Vivek Joshi <37882929+vivekjoshi556@users.noreply.github.com> Date: Mon, 27 May 2024 20:03:11 +0530 Subject: [PATCH 1/5] fix: Parse Server option `extendSessionOnUse` not working for session lengths < 24 hours (#9113) --- spec/Auth.spec.js | 21 +++++++++++++++++++++ src/Auth.js | 17 +++++++++++++---- src/Options/Definitions.js | 3 ++- src/Options/docs.js | 2 +- src/Options/index.js | 2 +- 5 files changed, 38 insertions(+), 7 deletions(-) diff --git a/spec/Auth.spec.js b/spec/Auth.spec.js index 632623a8..9f10cf78 100644 --- a/spec/Auth.spec.js +++ b/spec/Auth.spec.js @@ -260,3 +260,24 @@ describe('Auth', () => { }); }); }); + +describe('extendSessionOnUse', () => { + it(`shouldUpdateSessionExpiry()`, async () => { + const { shouldUpdateSessionExpiry } = require('../lib/Auth'); + let update = new Date(Date.now() - 86410 * 1000); + + const res = shouldUpdateSessionExpiry( + { sessionLength: 86460 }, + { updatedAt: update } + ); + + update = new Date(Date.now() - 43210 * 1000); + const res2 = shouldUpdateSessionExpiry( + { sessionLength: 86460 }, + { updatedAt: update } + ); + + expect(res).toBe(true); + expect(res2).toBe(false); + }); +}); diff --git a/src/Auth.js b/src/Auth.js index f21ba96c..c5351fe9 100644 --- a/src/Auth.js +++ b/src/Auth.js @@ -67,6 +67,17 @@ function nobody(config) { return new Auth({ config, isMaster: false }); } +/** + * Checks whether session should be updated based on last update time & session length. + */ +function shouldUpdateSessionExpiry(config, session) { + const resetAfter = config.sessionLength / 2; + const lastUpdated = new Date(session?.updatedAt); + const skipRange = new Date(); + skipRange.setTime(skipRange.getTime() - resetAfter * 1000); + return lastUpdated <= skipRange; +} + const throttle = {}; const renewSessionIfNeeded = async ({ config, session, sessionToken }) => { if (!config?.extendSessionOnUse) { @@ -88,10 +99,7 @@ const renewSessionIfNeeded = async ({ config, session, sessionToken }) => { const { results } = await query.execute(); session = results[0]; } - const lastUpdated = new Date(session?.updatedAt); - const yesterday = new Date(); - yesterday.setDate(yesterday.getDate() - 1); - if (lastUpdated > yesterday || !session) { + if (!shouldUpdateSessionExpiry(config, session) || !session) { return; } const expiresAt = config.generateSessionExpiresAt(); @@ -579,6 +587,7 @@ module.exports = { maintenance, nobody, readOnly, + shouldUpdateSessionExpiry, getAuthForSessionToken, getAuthForLegacySessionToken, findUsersWithAuthData, diff --git a/src/Options/Definitions.js b/src/Options/Definitions.js index 27baac22..1fd028a8 100644 --- a/src/Options/Definitions.js +++ b/src/Options/Definitions.js @@ -259,7 +259,8 @@ module.exports.ParseServerOptions = { }, extendSessionOnUse: { env: 'PARSE_SERVER_EXTEND_SESSION_ON_USE', - help: 'Whether Parse Server should automatically extend a valid session by the sessionLength', + help: + "Whether Parse Server should automatically extend a valid session by the sessionLength. In order to reduce the number of session updates in the database, a session will only be extended when a request is received after at least half of the current session's lifetime has passed.", action: parsers.booleanParser, default: false, }, diff --git a/src/Options/docs.js b/src/Options/docs.js index 219fc2e5..d9d4a4ad 100644 --- a/src/Options/docs.js +++ b/src/Options/docs.js @@ -47,7 +47,7 @@ * @property {String} encryptionKey Key for encrypting your files * @property {Boolean} enforcePrivateUsers Set to true if new users should be created without public read and write access. * @property {Boolean} expireInactiveSessions Sets whether we should expire the inactive sessions, defaults to true. If false, all new sessions are created with no expiration date. - * @property {Boolean} extendSessionOnUse Whether Parse Server should automatically extend a valid session by the sessionLength + * @property {Boolean} extendSessionOnUse Whether Parse Server should automatically extend a valid session by the sessionLength. In order to reduce the number of session updates in the database, a session will only be extended when a request is received after at least half of the current session's lifetime has passed. * @property {String} fileKey Key for your files * @property {Adapter} filesAdapter Adapter module for the files sub-system * @property {FileUploadOptions} fileUpload Options for file uploads diff --git a/src/Options/index.js b/src/Options/index.js index 067ac15f..f7263e87 100644 --- a/src/Options/index.js +++ b/src/Options/index.js @@ -228,7 +228,7 @@ export interface ParseServerOptions { /* Session duration, in seconds, defaults to 1 year :DEFAULT: 31536000 */ sessionLength: ?number; - /* Whether Parse Server should automatically extend a valid session by the sessionLength + /* Whether Parse Server should automatically extend a valid session by the sessionLength. In order to reduce the number of session updates in the database, a session will only be extended when a request is received after at least half of the current session's lifetime has passed. :DEFAULT: false */ extendSessionOnUse: ?boolean; /* Default value for limit option on queries, defaults to `100`. From 61653a3983e29eb372f2ef4409f0ebf875322b20 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Mon, 27 May 2024 14:34:08 +0000 Subject: [PATCH 2/5] chore(release): 7.1.0-alpha.9 [skip ci] # [7.1.0-alpha.9](https://github.com/parse-community/parse-server/compare/7.1.0-alpha.8...7.1.0-alpha.9) (2024-05-27) ### Bug Fixes * Parse Server option `extendSessionOnUse` not working for session lengths < 24 hours ([#9113](https://github.com/parse-community/parse-server/issues/9113)) ([0a054e6](https://github.com/parse-community/parse-server/commit/0a054e6b541fd5ab470bf025665f5f7d2acedaa0)) --- changelogs/CHANGELOG_alpha.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/changelogs/CHANGELOG_alpha.md b/changelogs/CHANGELOG_alpha.md index cdb7c7fd..ce048dbf 100644 --- a/changelogs/CHANGELOG_alpha.md +++ b/changelogs/CHANGELOG_alpha.md @@ -1,3 +1,10 @@ +# [7.1.0-alpha.9](https://github.com/parse-community/parse-server/compare/7.1.0-alpha.8...7.1.0-alpha.9) (2024-05-27) + + +### Bug Fixes + +* Parse Server option `extendSessionOnUse` not working for session lengths < 24 hours ([#9113](https://github.com/parse-community/parse-server/issues/9113)) ([0a054e6](https://github.com/parse-community/parse-server/commit/0a054e6b541fd5ab470bf025665f5f7d2acedaa0)) + # [7.1.0-alpha.8](https://github.com/parse-community/parse-server/compare/7.1.0-alpha.7...7.1.0-alpha.8) (2024-05-16) diff --git a/package-lock.json b/package-lock.json index 4d129960..eb372fe4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "parse-server", - "version": "7.1.0-alpha.8", + "version": "7.1.0-alpha.9", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "parse-server", - "version": "7.1.0-alpha.8", + "version": "7.1.0-alpha.9", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { diff --git a/package.json b/package.json index c321b1bd..2f9f3c24 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "parse-server", - "version": "7.1.0-alpha.8", + "version": "7.1.0-alpha.9", "description": "An express module providing a Parse-compatible API server", "main": "lib/index.js", "repository": { From 61841859cc02709bf7942827a80f875c579090b3 Mon Sep 17 00:00:00 2001 From: Corey Date: Thu, 30 May 2024 08:40:10 -0700 Subject: [PATCH 3/5] ci: Fix docker image fails build (#9141) --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 413a9bd2..c6826d64 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,11 @@ ############################################################ FROM node:lts-alpine AS build -RUN apk --no-cache add git +RUN apk --no-cache add \ + build-base \ + git \ + python3 + WORKDIR /tmp # Copy package.json first to benefit from layer caching From 18f2002b84b5b0738bc58cbeb2fb467c3d04f260 Mon Sep 17 00:00:00 2001 From: Corey Date: Thu, 30 May 2024 08:50:06 -0700 Subject: [PATCH 4/5] refactor: Upgrade pg-promise from 11.5.5 to 11.7.8 (#9102) --- package-lock.json | 123 ++++++++++++++++++---------------------------- package.json | 2 +- 2 files changed, 49 insertions(+), 76 deletions(-) diff --git a/package-lock.json b/package-lock.json index eb372fe4..d4bd2418 100644 --- a/package-lock.json +++ b/package-lock.json @@ -43,7 +43,7 @@ "parse": "5.0.0", "path-to-regexp": "6.2.1", "pg-monitor": "2.0.0", - "pg-promise": "11.5.5", + "pg-promise": "11.7.8", "pluralize": "8.0.0", "rate-limit-redis": "4.2.0", "redis": "4.6.13", @@ -5348,14 +5348,6 @@ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", "dev": true }, - "node_modules/buffer-writer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/buffer-writer/-/buffer-writer-2.0.0.tgz", - "integrity": "sha512-a7ZpuTZU1TRtnwyCNW3I5dc0wWNC3VR9S++Ewyk2HHZdrO3CQJqSpd+95Us590V6AL7JqUAH2IwZ/398PmNFgw==", - "engines": { - "node": ">=4" - } - }, "node_modules/busboy": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", @@ -15691,11 +15683,6 @@ "node": ">=8" } }, - "node_modules/packet-reader": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/packet-reader/-/packet-reader-1.0.0.tgz", - "integrity": "sha512-HAKu/fG3HpHFO0AA8WE8q2g+gBJaZ9MG7fcKk+IJPLTGAD6Psw4443l+9DGRbOIh3/aXr7Phy0TjilYivJo5XQ==" - }, "node_modules/pad": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/pad/-/pad-3.2.0.tgz", @@ -15849,15 +15836,13 @@ "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==" }, "node_modules/pg": { - "version": "8.11.3", - "resolved": "https://registry.npmjs.org/pg/-/pg-8.11.3.tgz", - "integrity": "sha512-+9iuvG8QfaaUrrph+kpF24cXkH1YOOUeArRNYIxq1viYHZagBxrTno7cecY1Fa44tJeZvaoG+Djpkc3JwehN5g==", + "version": "8.11.5", + "resolved": "https://registry.npmjs.org/pg/-/pg-8.11.5.tgz", + "integrity": "sha512-jqgNHSKL5cbDjFlHyYsCXmQDrfIX/3RsNwYqpd4N0Kt8niLuNoRNH+aazv6cOd43gPh9Y4DjQCtb+X0MH0Hvnw==", "dependencies": { - "buffer-writer": "2.0.0", - "packet-reader": "1.0.0", - "pg-connection-string": "^2.6.2", - "pg-pool": "^3.6.1", - "pg-protocol": "^1.6.0", + "pg-connection-string": "^2.6.4", + "pg-pool": "^3.6.2", + "pg-protocol": "^1.6.1", "pg-types": "^2.1.0", "pgpass": "1.x" }, @@ -15883,9 +15868,9 @@ "optional": true }, "node_modules/pg-connection-string": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.6.2.tgz", - "integrity": "sha512-ch6OwaeaPYcova4kKZ15sbJ2hKb/VP48ZD2gE7i1J+L4MspCtBMAx8nMgz7bksc7IojCIIWuEhHibSMFH8m8oA==" + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.6.4.tgz", + "integrity": "sha512-v+Z7W/0EO707aNMaAEfiGnGL9sxxumwLl2fJvCQtMn9Fxsg+lPpPkdcyBSv/KFgpGdYkMfn+EI1Or2EHjpgLCA==" }, "node_modules/pg-int8": { "version": "1.0.1", @@ -15896,11 +15881,11 @@ } }, "node_modules/pg-minify": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/pg-minify/-/pg-minify-1.6.3.tgz", - "integrity": "sha512-NoSsPqXxbkD8RIe+peQCqiea4QzXgosdTKY8p7PsbbGsh2F8TifDj/vJxfuR8qJwNYrijdSs7uf0tAe6WOyCsQ==", + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/pg-minify/-/pg-minify-1.6.4.tgz", + "integrity": "sha512-cf6hBt1YqzqPX0OznXKSv4U7e4o7eUU4zp2zQsbJ+4OCNNr7EnnAVWkIz4k0dv6UN4ouS1ZL4WlXxCrZHHl69g==", "engines": { - "node": ">=12.0.0" + "node": ">=14.0.0" } }, "node_modules/pg-monitor": { @@ -15956,21 +15941,21 @@ } }, "node_modules/pg-pool": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.6.1.tgz", - "integrity": "sha512-jizsIzhkIitxCGfPRzJn1ZdcosIt3pz9Sh3V01fm1vZnbnCMgmGl5wvGGdNN2EL9Rmb0EcFoCkixH4Pu+sP9Og==", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.6.2.tgz", + "integrity": "sha512-Htjbg8BlwXqSBQ9V8Vjtc+vzf/6fVUuak/3/XXKA9oxZprwW3IMDQTGHP+KDmVL7rtd+R1QjbnCFPuTHm3G4hg==", "peerDependencies": { "pg": ">=8.0" } }, "node_modules/pg-promise": { - "version": "11.5.5", - "resolved": "https://registry.npmjs.org/pg-promise/-/pg-promise-11.5.5.tgz", - "integrity": "sha512-DpJkDDH7rG0wUwFRRHimdV6DtG/UTK2SBEKC7KGFR6a5Zuqf9eGThR7dqIaHXnEBDZuWxUfWC5zMRqyk4EP7Lw==", + "version": "11.7.8", + "resolved": "https://registry.npmjs.org/pg-promise/-/pg-promise-11.7.8.tgz", + "integrity": "sha512-s5pcLp8QLIFNhnEsxaqBtDh7LsOG3hjJbVOVpYlWPqg/g1LIixGMtbNgbxW1HkTSY5rKT9tyE0J+dw2X7bD3rQ==", "dependencies": { "assert-options": "0.8.1", - "pg": "8.11.3", - "pg-minify": "1.6.3", + "pg": "8.11.5", + "pg-minify": "1.6.4", "spex": "3.3.0" }, "engines": { @@ -15978,9 +15963,9 @@ } }, "node_modules/pg-protocol": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.6.0.tgz", - "integrity": "sha512-M+PDm637OY5WM307051+bsDia5Xej6d9IR4GwJse1qA1DIhiKlksvrneZOYQq42OM+spubpcNYEo2FcKQrDk+Q==" + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.6.1.tgz", + "integrity": "sha512-jPIlvgoD63hrEuihvIg+tJhoGjUsLPn6poJY9N5CnlPd91c2T18T/9zBtLxZSb1EhYxBRoZJtzScCaWlYLtktg==" }, "node_modules/pg-types": { "version": "2.2.0", @@ -23905,11 +23890,6 @@ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", "dev": true }, - "buffer-writer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/buffer-writer/-/buffer-writer-2.0.0.tgz", - "integrity": "sha512-a7ZpuTZU1TRtnwyCNW3I5dc0wWNC3VR9S++Ewyk2HHZdrO3CQJqSpd+95Us590V6AL7JqUAH2IwZ/398PmNFgw==" - }, "busboy": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", @@ -31554,11 +31534,6 @@ "release-zalgo": "^1.0.0" } }, - "packet-reader": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/packet-reader/-/packet-reader-1.0.0.tgz", - "integrity": "sha512-HAKu/fG3HpHFO0AA8WE8q2g+gBJaZ9MG7fcKk+IJPLTGAD6Psw4443l+9DGRbOIh3/aXr7Phy0TjilYivJo5XQ==" - }, "pad": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/pad/-/pad-3.2.0.tgz", @@ -31677,16 +31652,14 @@ "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==" }, "pg": { - "version": "8.11.3", - "resolved": "https://registry.npmjs.org/pg/-/pg-8.11.3.tgz", - "integrity": "sha512-+9iuvG8QfaaUrrph+kpF24cXkH1YOOUeArRNYIxq1viYHZagBxrTno7cecY1Fa44tJeZvaoG+Djpkc3JwehN5g==", + "version": "8.11.5", + "resolved": "https://registry.npmjs.org/pg/-/pg-8.11.5.tgz", + "integrity": "sha512-jqgNHSKL5cbDjFlHyYsCXmQDrfIX/3RsNwYqpd4N0Kt8niLuNoRNH+aazv6cOd43gPh9Y4DjQCtb+X0MH0Hvnw==", "requires": { - "buffer-writer": "2.0.0", - "packet-reader": "1.0.0", "pg-cloudflare": "^1.1.1", - "pg-connection-string": "^2.6.2", - "pg-pool": "^3.6.1", - "pg-protocol": "^1.6.0", + "pg-connection-string": "^2.6.4", + "pg-pool": "^3.6.2", + "pg-protocol": "^1.6.1", "pg-types": "^2.1.0", "pgpass": "1.x" } @@ -31698,9 +31671,9 @@ "optional": true }, "pg-connection-string": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.6.2.tgz", - "integrity": "sha512-ch6OwaeaPYcova4kKZ15sbJ2hKb/VP48ZD2gE7i1J+L4MspCtBMAx8nMgz7bksc7IojCIIWuEhHibSMFH8m8oA==" + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.6.4.tgz", + "integrity": "sha512-v+Z7W/0EO707aNMaAEfiGnGL9sxxumwLl2fJvCQtMn9Fxsg+lPpPkdcyBSv/KFgpGdYkMfn+EI1Or2EHjpgLCA==" }, "pg-int8": { "version": "1.0.1", @@ -31708,9 +31681,9 @@ "integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==" }, "pg-minify": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/pg-minify/-/pg-minify-1.6.3.tgz", - "integrity": "sha512-NoSsPqXxbkD8RIe+peQCqiea4QzXgosdTKY8p7PsbbGsh2F8TifDj/vJxfuR8qJwNYrijdSs7uf0tAe6WOyCsQ==" + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/pg-minify/-/pg-minify-1.6.4.tgz", + "integrity": "sha512-cf6hBt1YqzqPX0OznXKSv4U7e4o7eUU4zp2zQsbJ+4OCNNr7EnnAVWkIz4k0dv6UN4ouS1ZL4WlXxCrZHHl69g==" }, "pg-monitor": { "version": "2.0.0", @@ -31761,26 +31734,26 @@ } }, "pg-pool": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.6.1.tgz", - "integrity": "sha512-jizsIzhkIitxCGfPRzJn1ZdcosIt3pz9Sh3V01fm1vZnbnCMgmGl5wvGGdNN2EL9Rmb0EcFoCkixH4Pu+sP9Og==", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.6.2.tgz", + "integrity": "sha512-Htjbg8BlwXqSBQ9V8Vjtc+vzf/6fVUuak/3/XXKA9oxZprwW3IMDQTGHP+KDmVL7rtd+R1QjbnCFPuTHm3G4hg==", "requires": {} }, "pg-promise": { - "version": "11.5.5", - "resolved": "https://registry.npmjs.org/pg-promise/-/pg-promise-11.5.5.tgz", - "integrity": "sha512-DpJkDDH7rG0wUwFRRHimdV6DtG/UTK2SBEKC7KGFR6a5Zuqf9eGThR7dqIaHXnEBDZuWxUfWC5zMRqyk4EP7Lw==", + "version": "11.7.8", + "resolved": "https://registry.npmjs.org/pg-promise/-/pg-promise-11.7.8.tgz", + "integrity": "sha512-s5pcLp8QLIFNhnEsxaqBtDh7LsOG3hjJbVOVpYlWPqg/g1LIixGMtbNgbxW1HkTSY5rKT9tyE0J+dw2X7bD3rQ==", "requires": { "assert-options": "0.8.1", - "pg": "8.11.3", - "pg-minify": "1.6.3", + "pg": "8.11.5", + "pg-minify": "1.6.4", "spex": "3.3.0" } }, "pg-protocol": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.6.0.tgz", - "integrity": "sha512-M+PDm637OY5WM307051+bsDia5Xej6d9IR4GwJse1qA1DIhiKlksvrneZOYQq42OM+spubpcNYEo2FcKQrDk+Q==" + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.6.1.tgz", + "integrity": "sha512-jPIlvgoD63hrEuihvIg+tJhoGjUsLPn6poJY9N5CnlPd91c2T18T/9zBtLxZSb1EhYxBRoZJtzScCaWlYLtktg==" }, "pg-types": { "version": "2.2.0", diff --git a/package.json b/package.json index 2f9f3c24..d793c1a1 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "parse": "5.0.0", "path-to-regexp": "6.2.1", "pg-monitor": "2.0.0", - "pg-promise": "11.5.5", + "pg-promise": "11.7.8", "pluralize": "8.0.0", "rate-limit-redis": "4.2.0", "redis": "4.6.13", From 716925ec53c8107ff5d66be4ee8e51fd6c590b42 Mon Sep 17 00:00:00 2001 From: Manuel <5673677+mtrezza@users.noreply.github.com> Date: Tue, 11 Jun 2024 12:19:54 +0200 Subject: [PATCH 5/5] ci: Disable ci fail on codecov upload fail (#9151) --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b8d64a6..2cacbf5e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -213,7 +213,8 @@ jobs: - name: Upload code coverage uses: codecov/codecov-action@v4 with: - fail_ci_if_error: true + # Set to `true` once codecov token bug is fixed; https://github.com/parse-community/parse-server/issues/9129 + fail_ci_if_error: false token: ${{ secrets.CODECOV_TOKEN }} check-postgres: strategy: