mirror of
https://github.com/fleetdm/fleet
synced 2026-05-05 06:18:25 +00:00
Closes: #12954 Changes: - Added an admin page that displays a table containing all of the users that are currently on the Fleet Sandbox waitlist where admins can approve waitlisted users. - Added a new email template that tells users that their Fleet Sandbox instance is ready. - Added a new action: `admin/provision-sandbox-instance-and-deliver-email.js`, an action that provisions a Fleet sandbox instance for a single user and sends them an email telling them that their Fleet Sandbox Instance is ready. - Added a script that provisions a Fleet Sandbox instance for the user who has been on the waitlist the longest and sends them an email telling them that their Sandbox instance is ready.
31 lines
440 B
JavaScript
Vendored
31 lines
440 B
JavaScript
Vendored
module.exports = {
|
|
|
|
|
|
friendlyName: 'View sandbox waitlist',
|
|
|
|
|
|
description: 'Display "Sandbox waitlist" page.',
|
|
|
|
|
|
exits: {
|
|
|
|
success: {
|
|
viewTemplatePath: 'pages/admin/sandbox-waitlist'
|
|
}
|
|
|
|
},
|
|
|
|
|
|
fn: async function () {
|
|
|
|
let usersCurrentlyOnWaitlist = await User.find({inSandboxWaitlist: true})
|
|
.sort('createdAt ASC');
|
|
|
|
return {
|
|
usersWaitingForSandboxInstance: usersCurrentlyOnWaitlist
|
|
};
|
|
|
|
}
|
|
|
|
|
|
};
|