Skip to content

New personnel list for Grounding Mesh Panel intake signoff #343

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion app/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ module.exports = {
lsu: 'LSU',
manchester: 'Manchester',
merlin: 'Merlin',
rokeby: 'Rokeby',
sheffield: 'Sheffield',
surf: 'SURF',
sussex: 'Sussex',
Expand Down Expand Up @@ -129,7 +130,15 @@ module.exports = {
sotirisVlachos: 'Sotiris Vlachos',
},

// Personnel who are authorised to sign-off on APA frame and grounding mesh intake (including both types of frame survey results)
// Personnel who are authorised to sign-off on Grounding Mesh Panel intake
dictionary_meshPanelIntakeSignoff: {
nicholasHays: 'Nicholas Hays',
grahamMitchell: 'Graham Mitchell',
danielSalisbury: 'Daniel Salisbury',
kimWilliams: 'Kim Williams',
},

// Personnel who are authorised to sign-off on APA frame intake (including both types of frame survey results)
dictionary_frameIntakeSignoff: {
gedBell: 'Ged Bell',
callumHolt: 'Callum Holt',
Expand Down
22 changes: 21 additions & 1 deletion app/routes/api/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,27 @@ router.get('/technicians.json', async function (req, res, next) {
});


/// List personnel who are authorised to sign-off on APA frame and grounding mesh intake (including both types of frame survey results)
/// List personnel who are authorised to sign-off on Grounding Mesh Panel intake
router.get('/meshPanelIntakeSignoff.json', async function (req, res, next) {
try {
let data = [];

for (const person in utils.dictionary_meshPanelIntakeSignoff) {
data.push({
api_name: person,
display_name: utils.dictionary_meshPanelIntakeSignoff[person],
});
}

return res.json(data);
} catch (err) {
logger.info({ route: req.route.path }, err.message);
res.status(500).json({ error: err.toString() });
}
});


/// List personnel who are authorised to sign-off on APA frame intake (including both types of frame survey results)
router.get('/frameIntakeSignoff.json', async function (req, res, next) {
try {
let data = [];
Expand Down