mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat(telemetry): carry app_version on instance_started (#681)
app_version was attached only to feedback events; every other allowlist stripped it, so the install base could not be segmented by release. One property on the once-per-boot census event covers it. Fixes #674.
This commit is contained in:
@@ -10,6 +10,7 @@ vi.mock("../../../apps/api/src/lib/deploy-mode.js", () => ({
|
||||
deployMode: mockDeployMode,
|
||||
}));
|
||||
|
||||
import { APP_VERSION } from "@snapotter/shared";
|
||||
import { gatherSystemProperties } from "../../../apps/api/src/lib/system-info.js";
|
||||
|
||||
describe("gatherSystemProperties", () => {
|
||||
@@ -47,6 +48,12 @@ describe("gatherSystemProperties", () => {
|
||||
expect(gatherSystemProperties().gpu_present).toBe(false);
|
||||
});
|
||||
|
||||
it("carries the app version so release adoption is measurable", () => {
|
||||
mockDeployMode.mockReturnValue("embedded");
|
||||
mockExistsSync.mockReturnValue(false);
|
||||
expect(gatherSystemProperties().app_version).toBe(APP_VERSION);
|
||||
});
|
||||
|
||||
it("passes through deploy mode and os platform", () => {
|
||||
mockDeployMode.mockReturnValue("embedded");
|
||||
mockExistsSync.mockReturnValue(false);
|
||||
|
||||
Reference in New Issue
Block a user