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

[EP-439] QA Phase 2 - Properties to remove #1416

Merged
merged 2 commits into from
Apr 6, 2021

Conversation

moderateepheezy
Copy link
Contributor

📲 What

Remove the following properties from segment.

  • session_device_distinct_id
  • session_device_manufacturer
  • session_device_model
  • session_os_version
  • session_screen_width
  • session_user_agent

🤔 Why

Based on feedback from QA on Phase 2 tickets, some Segment event properties aren't needed.

@codecov
Copy link

codecov bot commented Apr 1, 2021

Codecov Report

Merging #1416 (96c808a) into master (f6e63b3) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1416      +/-   ##
==========================================
- Coverage   86.11%   86.10%   -0.01%     
==========================================
  Files        1106     1106              
  Lines       97950    97922      -28     
==========================================
- Hits        84347    84319      -28     
  Misses      13603    13603              
Impacted Files Coverage Δ
Library/Tracking/KSRAnalytics.swift 85.17% <ø> (-0.15%) ⬇️
Library/Tracking/KSRAnalyticsTests.swift 100.00% <100.00%> (ø)
Library/Navigation.swift 76.89% <0.00%> (-0.37%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f6e63b3...96c808a. Read the comment docs.

@singhhari singhhari self-assigned this Apr 6, 2021
props["device_orientation"] = self.deviceOrientation
props["device_distinct_id"] = self.distinctId
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't look like we are using distinctId for anything else in the file. I would delete this and double check everything is compiling fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I missed that.

@@ -1503,10 +1503,7 @@ public final class KSRAnalytics {
props["country"] = self.config?.countryCode
props["display_language"] = AppEnvironment.current.language.rawValue
props["device_type"] = self.device.deviceType
props["device_manufacturer"] = "Apple"
props["device_model"] = KSRAnalytics.deviceModel
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't look like we are using deviceModel for anything else in the file. I would delete this and double check everything is compiling fine.

Copy link
Contributor

@singhhari singhhari left a comment

Choose a reason for hiding this comment

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

lgtm

@moderateepheezy moderateepheezy merged commit 997765e into master Apr 6, 2021
@moderateepheezy moderateepheezy deleted the EP-439-qa-phase-2-properties-to-remove branch April 6, 2021 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants