Closed Bug 1800646 Opened 2 years ago Closed 2 years ago

glean-core's "metrics" ping scheduler never sends pings with reason "upgrade"

Categories

(Data Platform and Tools :: Glean: SDK, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: chutten, Assigned: chutten)

Details

Attachments

(1 file)

The core MPS very cleverly checks the stored value of the app build id that last sent a "metrics" ping of reason "upgrade" and, if it's different from the current app build id, sends a new ping and sets the value.

...only problem is the first case: the core MPS doesn't set a value to that internal storage if there isn't already one in there.

This bug's about making the core MPS properly send "metrics" pings with reason "upgrade". And also ensuring we (per docs) send a ping with reason "overdue" if in fact this is the first time we've ever started since being installed.

Might be worth filing a follow-up to update notable historic events with this after it gets in a release and is vendored.

Actually, upon further examination, on first run we should just treat it like subsequent runs: If we're overdue, send "overdue". If not, schedule a "today" ping. Let's just ensure that's covered by tests, shall we?

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: