From 6bcdd71bfa7118da8c0306622a01f3241b90c6be Mon Sep 17 00:00:00 2001 From: Jacob Bare Date: Tue, 5 May 2026 13:06:30 -0500 Subject: [PATCH 1/2] Log retrieve route request params to Redis for analytics --- api/src/routes/retrieve.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/routes/retrieve.js b/api/src/routes/retrieve.js index edb3a47..53bbb5a 100644 --- a/api/src/routes/retrieve.js +++ b/api/src/routes/retrieve.js @@ -37,6 +37,8 @@ export default () => asyncRoute(async (req, res) => { return set; }, new Set()); + await redis.incr(`most_popular_content:request-log:${tenant}:${realm}:${granularity}:${limit}`); + const now = new Date(); const start = dayjs(now).startOf('hour').subtract(1, granularity).toDate(); const end = dayjs(now).startOf('hour').toDate(); From 7df7c89b6a5fe23b20df96805ced7b6f91c3f708 Mon Sep 17 00:00:00 2001 From: Jacob Bare Date: Tue, 5 May 2026 13:09:44 -0500 Subject: [PATCH 2/2] Bump actions/checkout, setup-node, and cache to v4 in CI workflow --- .github/workflows/node-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml index e1fadf9..b863253 100644 --- a/.github/workflows/node-ci.yml +++ b/.github/workflows/node-ci.yml @@ -14,13 +14,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v4 with: node-version: 14.x - - uses: actions/cache@v2 + - uses: actions/cache@v4 id: yarn-cache with: path: '**/node_modules'