Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FXIOS-11121 #24248 [Sponsored tiles] Ensure we send to both places for telemetry #24257

Merged
merged 6 commits into from
Jan 21, 2025

Conversation

lmarceau
Copy link
Contributor

📜 Tickets

Jira ticket
Github issue

💡 Description

We should use both endpoints to send telemetry events whenever the Unified Ads api feature flag is turned ON. By maintaining the older Glean pings, we ensure the Looker dashboard continue to work while we migrate to used the Unified Ads api. Data will also be able to be matched between the old and the new APIs, ensuring we remain on par.

In other words, with this PR when the feature flag is ON we show the tiles by using the UnifiedAdsProvider, but impression and click telemetry are sent with both SponsoredTileTelemetry (using the Glean pings system) and UnifiedAdsCallbackTelemetry.

📝 Checklist

You have to check all boxes before merging

  • Filled in the above information (tickets numbers and description of your work)
  • Updated the PR name to follow our PR naming guidelines
  • Wrote unit tests and/or ensured the tests suite is passing
  • When working on UI, I checked and implemented accessibility (minimum Dynamic Text and VoiceOver)
  • If needed, I updated documentation / comments for complex code and public methods
  • If needed, added a backport comment (example @Mergifyio backport release/v120)

@lmarceau lmarceau requested a review from cyndichin January 20, 2025 21:25
@lmarceau lmarceau requested a review from a team as a code owner January 20, 2025 21:25
Copy link
Contributor

@cyndichin cyndichin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code looks good! do we want to add unit tests for these changes?

@lmarceau lmarceau force-pushed the lm/FXIOS-11121-#24248-send-telemetry-to-both branch from 7ce79d0 to 96d772b Compare January 21, 2025 15:13
@mobiletest-ci-bot
Copy link

mobiletest-ci-bot commented Jan 21, 2025

Messages
📖 Project coverage: 33.16%
📖 Edited 14 files
📖 Created 0 files

Client.app: Coverage: 32.32

File Coverage
TopSitesViewModel.swift 33.48% ⚠️
UnifiedAdsCallbackTelemetry.swift 86.57%
TopSite.swift 46.67% ⚠️
TopSiteState.swift 54.93%
SponsoredTileTelemetry.swift 100.0%
GleanWrapper.swift 16.07% ⚠️

Generated by 🚫 Danger Swift against 6ffa440

@lmarceau lmarceau force-pushed the lm/FXIOS-11121-#24248-send-telemetry-to-both branch from a28d455 to a21fa3c Compare January 21, 2025 17:16
@lmarceau lmarceau requested a review from cyndichin January 21, 2025 17:17
Copy link
Contributor

@cyndichin cyndichin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for making the updateS @lmarceau!! I added some smaller comments, but nothing blocking!

@lmarceau lmarceau force-pushed the lm/FXIOS-11121-#24248-send-telemetry-to-both branch from 9b51cc6 to 6ffa440 Compare January 21, 2025 19:36
@lmarceau lmarceau merged commit 999680a into main Jan 21, 2025
12 of 13 checks passed
@lmarceau lmarceau deleted the lm/FXIOS-11121-#24248-send-telemetry-to-both branch January 21, 2025 21:59
clarmso pushed a commit that referenced this pull request Jan 22, 2025
…r telemetry (#24257)

* Ensure we send to both places for telemetry

* Add tests, remove static from SponsoredTileTelemetry todo so

* Fix

* Remove savedEvent and replace with SavedEvents

* Add event check on array

* Adjust for latest main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants