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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EP-245] CTA Clicked (watch_project) #1391

Merged
merged 4 commits into from
Mar 11, 2021

Conversation

moderateepheezy
Copy link
Contributor

馃摬 What

CTA Clicked (watch_project)

馃 Why

Segment Integration

馃洜 How

More in-depth discussion of the change or implementation.

  1. Move related Watch context to a new Enum WatchContext
  2. Added a new parameter to trackWatchProjectButtonClicked (watchContext). This allows tracking for watch and unwatch project.
  3. More tests to include unwatch context.

@moderateepheezy moderateepheezy changed the title [EP:245] [EP-245] CTA Clicked (watch_project) Mar 11, 2021
Library/Tracking/KSRAnalytics.swift Outdated Show resolved Hide resolved
Library/Tracking/KSRAnalytics.swift Outdated Show resolved Hide resolved
Library/Tracking/KSRAnalyticsTests.swift Show resolved Hide resolved
Library/Tracking/KSRAnalyticsTests.swift Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Mar 11, 2021

Codecov Report

Merging #1391 (dbd2d61) into master (31a2931) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1391      +/-   ##
==========================================
+ Coverage   85.94%   85.95%   +0.01%     
==========================================
  Files        1104     1104              
  Lines       96669    96751      +82     
==========================================
+ Hits        83082    83163      +81     
- Misses      13587    13588       +1     
Impacted Files Coverage 螖
Library/Tracking/KSRAnalytics.swift 82.57% <100.00%> (+0.07%) 猬嗭笍
Library/Tracking/KSRAnalyticsTests.swift 100.00% <100.00%> (酶)
Library/ViewModels/WatchProjectViewModel.swift 96.20% <100.00%> (+0.02%) 猬嗭笍
...ibrary/ViewModels/WatchProjectViewModelTests.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 31a2931...dbd2d61. Read the comment docs.

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.

Mentioned this in another comment but watched is not a defined type value so delete it. We have to improve these time-consuming back and forths.

@@ -1203,21 +1202,27 @@ public final class KSRAnalytics {
- parameter project: The project being watched
- parameter location: The location context of where the project is being watched from
- parameter params: The optional Discover params if the project is being watched from Discover
- parameter watchContext: The context of the watch/saved project
Copy link
Contributor

Choose a reason for hiding this comment

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

update parameter name and description

Library/Tracking/KSRAnalyticsTests.swift Show resolved Hide resolved
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 4f07589 into master Mar 11, 2021
@moderateepheezy moderateepheezy deleted the EP-245-cta-clicked-watch-project branch March 11, 2021 21:01
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.

None yet

2 participants