-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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-399] QA Phase 1 Remove Properties #1410
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1410 +/- ##
==========================================
- Coverage 86.12% 86.09% -0.04%
==========================================
Files 1104 1104
Lines 98014 97806 -208
==========================================
- Hits 84419 84206 -213
- Misses 13595 13600 +5
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know most of this consists of deletions but is there a way to bump the coverage a bit?
@@ -186,12 +186,11 @@ public final class ProjectPamphletViewModel: ProjectPamphletViewModelType, Proje | |||
} | |||
|
|||
freshProjectRefTagAndCookieRefTag | |||
.observeValues { project, refTag, cookieRefTag in | |||
.observeValues { project, refTag, _ in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming the cookieRefTag is not required you should remove it from freshProjectRefTagAndCookieRefTag instead of omitting it in this observeValues block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
freshProjectRefTagAndCookieRefTag
is used elsewhere in the code with cookieRefTag
needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i just did a global search on freshProjectRegTagAndCookieTag
and don't see it used anywhere outside this file. I think you can remove the third type parameter from line 177, update the variable name and the observeValues block to remove the _
.
I have tried, unless I go out of scope of my task(Unless it's allowed), not sure if there's any easier way to increase the coverage. I also checked some functions that I didn't find a direct test for in |
@@ -849,8 +849,7 @@ public class PledgeViewModel: PledgeViewModelType, PledgeViewModelInputs, Pledge | |||
reward: baseReward, | |||
pledgeViewContext: pledgeViewContext, | |||
checkoutData: checkoutData, | |||
refTag: refTag, | |||
cookieRefTag: cookieRefTag | |||
refTag: refTag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line 831 has a constant that is no longer being used. Delete that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
📲 What
Remove the following event properties and their related tests.
🤔 Why
Base on the feedback from QA for Phase 1 event tracking, some of the event properties sent to Segment are not needed.