-
Notifications
You must be signed in to change notification settings - Fork 583
Fix DependencyGraph dag extra render #2749
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
Conversation
Signed-off-by: Michael Dwyer <[email protected]>
Signed-off-by: Michael Dwyer <[email protected]>
wrapper.instance().handleMatchCountChange(matchCount); | ||
expect(wrapper.state('matchCount')).toBe(matchCount); | ||
}); | ||
it('passes computed match count to DAGOptions based on uiFind and dependencies', () => { |
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.
Deleted a few tests that no longer made sense after these changes and replaced with this new test
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2749 +/- ##
==========================================
- Coverage 96.86% 96.84% -0.03%
==========================================
Files 256 256
Lines 7951 7951
Branches 2001 2079 +78
==========================================
- Hits 7702 7700 -2
- Misses 249 250 +1
- Partials 0 1 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@hari45678 please review |
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.
Great work migrating this file to typescript
The new changes doesn't seem to break any previous functionality |
I merged main hoping it will help with coverage, but it didn't. Are the new tsx tests actually running? I didn't find them by name in the CI run log. |
my bad, I see it in CI too
but then it needs to have more test to increase code coverage, it went down. |
Correct. @mdwyer6 PTAL |
Signed-off-by: Michael Dwyer <[email protected]>
Signed-off-by: Michael Dwyer <[email protected]>
@hari45678 I've added code coverage |
## Which problem is this PR solving? jaegertracing#2715 ## Description of the changes - Removes unneeded useEffect hook and simplifies logic - Converts DependencyGraph/index.jsx to TS because above change had moved typed functions to an untyped file ## How was this change tested? - Generated dependencies locally with HotRod and validated visually + logged render count to verify DAG component no longer double renders - Passes existing tests (some unit tests were updated) ## Checklist - [X] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [X] I have signed all commits - [X] I have added unit tests for the new functionality - [X] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `npm run lint` and `npm run test` --------- Signed-off-by: Michael Dwyer <[email protected]> Co-authored-by: Yuri Shkuro <[email protected]>
Which problem is this PR solving?
#2715
Description of the changes
How was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:npm run lint
andnpm run test