From 3441d44922e9488a4954fbdd0f6f98038e7bc7c7 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Mon, 25 Nov 2024 07:33:43 -0500 Subject: [PATCH] Name names for reboots and expansions. Do not break the rules. --- api/controllers/glp/servers.js | 13 ++++++++++--- api/routes/paths/tab/round.js | 10 +++++----- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/api/controllers/glp/servers.js b/api/controllers/glp/servers.js index e377fdd..4d69c57 100644 --- a/api/controllers/glp/servers.js +++ b/api/controllers/glp/servers.js @@ -349,7 +349,11 @@ export const changeInstanceCount = { serialNumber++; } - const resultMessages = []; + const resultMessages = [ + `${req.session.name} ${req.session.email} has INCREASED the tabweb cloud server count by ${target}:\n`, + '\n', + ]; + const limit = serialNumber + target; while (serialNumber < limit) { @@ -466,7 +470,7 @@ export const changeInstanceCount = { } const resultMessages = [ - `${req.session.name} ${req.session.email} has initiated a cloud services change:\n`, + `${req.session.name} ${req.session.email} has DECREASED the tabweb cloud server count by ${target}:\n`, '\n', ]; @@ -553,7 +557,10 @@ export const rebootInstance = { }); } - const resultMessages = []; + const resultMessages = [ + `${req.session.name} ${req.session.email} has REBOOTED ${machine}:\n`, + '\n', + ]; try { diff --git a/api/routes/paths/tab/round.js b/api/routes/paths/tab/round.js index e24c050..af5b0f2 100644 --- a/api/routes/paths/tab/round.js +++ b/api/routes/paths/tab/round.js @@ -6,14 +6,14 @@ import { makeShareRooms } from '../../../controllers/tab/round/share.js'; import { mergeTimeslotRounds, unmergeTimeslotRounds } from '../../../controllers/tab/round/merge.js'; export default [ - { path : '/tab/{tournId}/round/{roundId}/sidecount' , module : sideCounts } , - { path : '/tab/{tournId}/round/{roundId}/status' , module : roundDecisionStatus } , - { path : '/tab/{tournId}/round/{roundId}/log' , module : roundChangeLog } , + { path : '/tab/{tournId}/round/{roundId}/attendance' , module : tournAttendance } , { path : '/tab/{tournId}/round/{roundId}/blast' , module : blastRoundPairing } , - { path : '/tab/{tournId}/round/{roundId}/message' , module : blastRoundMessage } , { path : '/tab/{tournId}/round/{roundId}/dashboard' , module : tournDashboard } , - { path : '/tab/{tournId}/round/{roundId}/attendance' , module : tournAttendance } , + { path : '/tab/{tournId}/round/{roundId}/log' , module : roundChangeLog } , { path : '/tab/{tournId}/round/{roundId}/makeShareRooms' , module : makeShareRooms } , { path : '/tab/{tournId}/round/{roundId}/merge' , module : mergeTimeslotRounds } , + { path : '/tab/{tournId}/round/{roundId}/message' , module : blastRoundMessage } , + { path : '/tab/{tournId}/round/{roundId}/sidecount' , module : sideCounts } , + { path : '/tab/{tournId}/round/{roundId}/status' , module : roundDecisionStatus } , { path : '/tab/{tournId}/round/{roundId}/unmerge' , module : unmergeTimeslotRounds } , ];