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

RUM-1197 fix: WebView Events Overwrite #1500

Merged
merged 2 commits into from
Sep 29, 2023

Conversation

maxep
Copy link
Member

@maxep maxep commented Sep 28, 2023

What and why?

#1433 broke Browser SDK event overwrite. The AnyEncodable did encoded integers to Int64 but the the WebViewEventReceiver was still expected Int

How?

As a quick fix and to release as part of 2.3.0, the WebViewEventReceiver now expect Int64. But a more robust solution will be applied to develop.

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)
  • Make sure each commit and the PR mention the Issue number or JIRA reference
  • Add CHANGELOG entry for user facing changes

Custom CI job configuration (optional)

  • Run unit tests for Core, RUM, Trace, Logs, CR and WVT
  • Run unit tests for Session Replay
  • Run integration tests
  • Run smoke tests
  • Run tests for tools/

@maxep maxep requested a review from a team as a code owner September 28, 2023 17:20
@maxep maxep force-pushed the maxep/RUM-1197/fix-webview-events-decoding branch from 9011b00 to c43d376 Compare September 28, 2023 17:36
@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented Sep 28, 2023

Datadog Report

Branch report: maxep/RUM-1197/fix-webview-events-decoding
Commit report: c43d376

dd-sdk-ios: 0 Failed, 0 New Flaky, 2390 Passed, 0 Skipped, 21m 57.04s Wall Time

@maxep maxep changed the title RUM-1197 Fix WebView Events Overwrite RUM-1197 fix: WebView Events Overwrite Sep 28, 2023
Copy link
Member

@maciejburda maciejburda left a comment

Choose a reason for hiding this comment

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

LGTM

dd_sesion["plan"] = 1
dd["session"] = dd_sesion
if var dd = event["_dd"] as? JSON, var dd_session = dd["session"] as? [String: Int64] {
dd_session["plan"] = 1
Copy link
Member

Choose a reason for hiding this comment

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

good catch in the meantime 🙌

@maxep maxep merged commit 78567e6 into release/2.3.0 Sep 29, 2023
@maxep maxep deleted the maxep/RUM-1197/fix-webview-events-decoding branch September 29, 2023 08:42
@maxep maxep mentioned this pull request Sep 29, 2023
8 tasks
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