fleet/website/api/models
Eric ac8150a319
Website: Create Platform model and use platform record to track mergefreeze status. (#13681)
Closes: #11755

Changes:
- Created a new model: `Platform` that has a single attribute:
`currentUnfrozenGitHubPrNumbers`
- Updated bootstrap.js to throw an error if more than one platform
record exists, and to create a platform record when the server is lifted
with the `--drop` flag.
- Updated the receive-from-github webhook to use a Platform record to
track the PRs that are currently unfrozen in the fleetdm/fleet repo.

Before this Pr is merged, we will need to:
- [x] Migrate the Fleet website's database to add the new database
table.
- [x] Create a single platform record.
2023-09-05 16:31:40 -05:00
..
CertificateSigningRequest.js Update CertificateSigningRequest model (#9585) 2023-01-31 13:47:57 -06:00
HistoricalUsageSnapshot.js Add more usage stats to Sails app (#8230) 2022-10-14 13:54:23 -05:00
NewsletterSubscription.js Website: Add Newsletter banner and NewsletterSubscription model (#7370) 2022-09-02 17:38:34 -05:00
Platform.js Website: Create Platform model and use platform record to track mergefreeze status. (#13681) 2023-09-05 16:31:40 -05:00
Quote.js Add customer portal and license dispenser to fleetdm.com (#3546) 2022-01-04 20:02:42 -06:00
Subscription.js Add customer portal and license dispenser to fleetdm.com (#3546) 2022-01-04 20:02:42 -06:00
User.js Website: add Fleet Sandbox waitlist (#13028) 2023-07-28 18:56:54 -05:00
VantaConnection.js Website: Add Vanta integration (#9072) 2022-12-21 23:39:39 -06:00