cachethq / core

🚦 The core of Cachet, the open-source status page system.
https://cachethq.io
MIT License
101 stars 20 forks source link

Application ID #41

Closed jbrooksuk closed 3 months ago

jbrooksuk commented 9 months ago

We need a way to generate and store a unique ID that will be used by the Beacon. This is provides us with anonymous telemetry.

This should live in the Cachet class as a applicationId() method. In 2.x, we sha1 a random generated string, https://github.com/cachethq/cachet/blob/2.4/app/Integrations/Core/Beacon.php#L87-L91. We could do the same again, then store in the DB.

jbrooksuk commented 3 months ago

Done in https://github.com/cachethq/core/blob/main/database/migrations/2024_01_22_205110_create_default_settings.php#L14