Skip to content

Commit

Permalink
Name names for reboots and expansions. Do not break the rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
palmertab committed Nov 25, 2024
1 parent bc9e20c commit 3441d44
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
13 changes: 10 additions & 3 deletions api/controllers/glp/servers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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',
];

Expand Down Expand Up @@ -553,7 +557,10 @@ export const rebootInstance = {
});
}

const resultMessages = [];
const resultMessages = [
`${req.session.name} ${req.session.email} has REBOOTED ${machine}:\n`,
'\n',
];

try {

Expand Down
10 changes: 5 additions & 5 deletions api/routes/paths/tab/round.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 } ,
];

0 comments on commit 3441d44

Please sign in to comment.