Closed Bug 1431469 Opened 6 years ago Closed 6 years ago

Expose last session end timestamp to snippets

Categories

(Firefox :: Messaging System, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 61
Iteration:
61.1 - Mar 26
Tracking Status
firefox59 --- wontfix
firefox60 --- wontfix
firefox61 --- fixed

People

(Reporter: jcollings, Assigned: rrosario)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

We would like to be able to target snippets to users based on their activity date of the last ping. 

We've started the investigation awhile ago in this bug:

https://bugzilla.mozilla.org/show_bug.cgi?id=1343510

and it seems that we're blocked by Bug 1054947.

Kate please let me know what else you need - hoping to get this in Q1. I've also cc'd Giorgos who may be able to fill you in.
Severity: normal → enhancement
Iteration: --- → 60.3 - Feb 26
Priority: -- → P2
Blocks: 1432662
Summary: Expose profile/session timestamps/times in UITour.getConfiguration for snippets → Expose last and current session timestamps to snippets
Does this sound reasonable for your needs?

- the time at which the current session started;
- the time at which the previous session ended;

Also, do we need to specifically target *browser* sessions or would about:home/about:newtab sessions be OK?

(An about:home/about:newtab session is defined as the time during which an individual tab/about:home page is open)
Flags: needinfo?(jcollings)
Hey Kate,

That works for us - we just needed a metric that was separate from profile age and would be able to give us a timely update on the most recent activity (whether that's starting a browser session or a tab session).
Flags: needinfo?(jcollings)
Iteration: 60.3 - Feb 26 → 60.4 - Mar 12
Priority: P2 → P1
Iteration: 60.4 - Mar 12 → 61.1 - Mar 26
Blocks: 1432588
Target Milestone: --- → Firefox 61
Target Milestone: Firefox 61 → ---
Iteration: 61.1 - Mar 26 → 61.2 - Apr 9
Assignee: khudson → rrosario
Iteration: 61.2 - Apr 9 → 61.1 - Mar 26
Commits pushed to master at https://github.com/mozilla/activity-stream

https://github.com/mozilla/activity-stream/commit/dc6c0574b36a93176f1ffa6592cb0d2cfd69547a
Fix Bug 1431469 - expose previous session end (UNINIT) to snippets

https://github.com/mozilla/activity-stream/commit/1bfa22719d1280af24e63ddd22f3f3ecc0d99d2e
Merge pull request #4048 from rlr/Bug1431469/snippets-session-data

Fix Bug 1431469 - expose previous session end (UNINIT) to snippets
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
We ended up only exposing the timestamp for the last time Activity Stream UNINIT'd which happens when the browser shuts down. It is exposed in snippets data as "previousSessionEnd".
Summary: Expose last and current session timestamps to snippets → Expose last session end timestamp to snippets
Blocks: 1448443
Component: Activity Streams: Newtab → Messaging System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: