-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Merge continue #766
Merge continue #766
Conversation
Codecov Report
@@ Coverage Diff @@
## master #766 +/- ##
==========================================
- Coverage 51.17% 51.16% -0.01%
==========================================
Files 235 235
Lines 6238 6240 +2
Branches 405 404 -1
==========================================
+ Hits 3192 3193 +1
- Misses 2748 2749 +1
Partials 298 298
Flags with carried forward coverage won't be shown. Click here to find out more.
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.
Reviewable status: 0 of 5 files reviewed, 1 unresolved discussion (waiting on @imnasnainaec)
src/goals/MergeDupGoal/MergeDupStep/MergeDupStepActions.tsx, line 345 at r2 (raw file):
Quoted 8 lines of code…
// a merge is an identity if all of its senses come from parent // and it has the same number of senses as parent if (!children.find((val) => val.wordID !== wordID)) { if (children.length === data.words[wordID].senses.length) { // if the merge is an identity don't bother sending a merge return mapping; } }
Quoted 10 lines of code…
// a merge is an identity if all of its senses come from parent // and it has the same number of senses as parent if ( children.length === 1 && children[0].wordID === wordID && children[0].senses.length === data.words[wordID].senses.length ) { // if the merge is an identity don't bother sending a merge return mapping; }
@jasonleenaylor This is the logic change of the PR.
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.
Reviewed 5 of 5 files at r1.
Reviewable status: 2 of 5 files reviewed, 2 unresolved discussions (waiting on @imnasnainaec and @jasonleenaylor)
src/goals/MergeDupGoal/MergeDupStep/MergeDupStepActions.tsx, line 340 at r2 (raw file):
children.length === 1 && children[0].wordID === wordID && children[0].senses.length === data.words[wordID].senses.length
So it doesn't look like the comment and the code agree. (not that it did before)
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.
Reviewed 3 of 3 files at r2, 2 of 2 files at r3.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @imnasnainaec)
src/goals/MergeDupGoal/MergeDupStep/MergeDupStepActions.tsx, line 340 at r2 (raw file):
Previously, jasonleenaylor (Jason Naylor) wrote…
children.length === 1 && children[0].wordID === wordID && children[0].senses.length === data.words[wordID].senses.length
So it doesn't look like the comment and the code agree. (not that it did before)
It was looking better, until you added the new condition. 😄
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.
Reviewable status: 4 of 5 files reviewed, all discussions resolved (waiting on @jasonleenaylor)
src/goals/MergeDupGoal/MergeDupStep/MergeDupStepActions.tsx, line 340 at r2 (raw file):
Previously, jasonleenaylor (Jason Naylor) wrote…
It was looking better, until you added the new condition. 😄
Yeah... the new condition isn't as pretty, but is necessary for such cases as a merging of senses within a single word.
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.
Reviewed 2 of 2 files at r4.
Reviewable status: complete! all files reviewed, all discussions resolved
Resolves #765
This change is