Closed Bug 1595058 Opened 6 years ago Closed 6 years ago

An "Unknown ping type" error is displayed instead of the "impression" and "click" events for the "Pre-Trailhead Triplets" cards

Categories

(Firefox :: Messaging System, defect, P1)

defect

Tracking

()

VERIFIED FIXED
Firefox 72
Iteration:
72.2 - Nov 4 - 17
Tracking Status
firefox-esr68 --- unaffected
firefox70 --- unaffected
firefox71 --- unaffected
firefox72 --- verified

People

(Reporter: mcoman, Assigned: nanj)

References

(Regression)

Details

(Keywords: regression)

Attachments

(3 files)

Attached image rec of the issue.gif

[Affected versions]:

  • Firefox Nightly 72.0a1 - Build ID: 20191107215315

[Affected Platforms]:

  • All Windows
  • All Mac
  • All Linux

[Steps to reproduce]:

  1. Create a new Firefox profile, but DO NOT open it.
  2. Navigate to the local Profiles folder (eg. C:\Users\user\AppData\Roaming\Mozilla\Firefox\Profiles) and open the newly created profile folder.
  3. Open times.json in a text editor and change the created date to "1559530800000".
  4. Save the file and open the browser with the newly created profile.
  5. Without opening new tabs or windows install the latest version of the "remote-settings-devtools" from here.
  6. Click the "Remote Settings Devtools" toolbar button and select the "Stage" environment.
  7. Click the "Force sync" button on the right of the "main/whats-new-panel" option. (you might need to Clear Local Data first)
  8. Restart the browser and navigate to the "about:config" page
  9. Set the "browser.ping-centre.log" pref's value to "true" and open the "Browser Console".
  10. Open a new tab and observe the pings displayed in the "Browser Console".

[Expected result]:

  • The "impression" telemetry ping for the "PRETRAILHEAD" Triplets is displayed.

[Actual result]:

  • An "Unknown ping type for ASRouter telemetry" error is displayed instead.

[Notes]:

  • This issue is also reproducible if the button from any of the "Pre-Trailhead Triplets" cards is clicked.
  • This issue is not reproducible if the cards are dismissed. In this case the following ping is displayed in the "Browser Console":
    "TELEMETRY PING (STRUCTURED INGESTION): {"locale":"en-US","version":"72.0a1","release_channel":"nightly","message_id":"PRETRAILHEAD_CARD_1,PRETRAILHEAD_CARD_2,PRETRAILHEAD_CARD_3","source":"onboarding-cards","event":"DISMISS","id":"onboarding-cards","addon_version":"20191107215315","client_id":"0e490dee-09d6-6d4b-b165-c73e26a1c5a0","shield_id":"activity-stream-extended-triplets-v2-1581912:control;"}".
  • Attached a screen recording of the issue.

@Ed, could you please take a look over this issue?

Flags: needinfo?(edilee)

Bug 1585147 landed in bug 1594541 export "at the same time" and only affects nightly 72. It added this check to only allow a specific list of actions/pings it seems ?

https://github.com/mozilla/activity-stream/commit/147fd74cecd71ed2f7f148475b356604786cd0a7#diff-94703ac9d8be70bee8f84ca6c6ff1956R703-R705

The fix for nightly would be to add whats-new-panel_user_event to the switch/case ?

Depends on: 1585147, 1594125
Flags: needinfo?(najiang)
Flags: needinfo?(edilee)
Flags: needinfo?(andrei.br92)

There was a small window where a nightly build was built with pretrailhead but without the export:

https://archive.mozilla.org/pub/firefox/nightly/2019/11/2019-11-07-09-49-05-mozilla-central/

Could you test with that build to see if telemetry works?

Flags: needinfo?(mcoman)

I have retested this issue using the Nightly build from above and I can confirm that the telemetry pings for the "impression" and "click" events are successfully displayed in the "Browser Console".

Flags: needinfo?(mcoman)
Regressed by: 1585147
Assignee: nobody → najiang
Iteration: --- → 72.2 - Nov 4 - 17
Flags: needinfo?(najiang)
Flags: needinfo?(andrei.br92)
Priority: -- → P1

We'll likely need a fix for this for 70 uplift as well once the work in bug 1594125 gets uplifted.

The regressing bug 1585147 is only on nightly and won't be uplifted to 70 release

The pre-trailhead triplets, added in bug 1594125 through the remote whats-new-panel provider, serve as another onboarding like messages for AS Router.

Pushed by elee@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/452480b6db9c add a new ping type for pre-trailhead r=Mardak
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 72
Flags: needinfo?(mcoman)
Flags: needinfo?(cmuresan)
Flags: needinfo?(acupsa)

I have verified that this issue is no longer reproducible with the latest Firefox Nightly (72.0a1 Build ID - 20191114055112) installed, on Windows 10 x64, Arch Linux and Mac 10.15.1. Now, the telemetry pings are successfully displayed in the "Browser Console".

Status: RESOLVED → VERIFIED
Flags: needinfo?(mcoman)
Flags: needinfo?(cmuresan)
Flags: needinfo?(acupsa)
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: