-
Notifications
You must be signed in to change notification settings - Fork 503
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
Trace statistics table is now using antd Table component #1500
Conversation
packages/jaeger-ui/src/components/TracePage/TraceStatistics/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TracePage/TraceStatistics/index.tsx
Outdated
Show resolved
Hide resolved
Did you model your code after another code in Jaeger? If so, please point to the existing code. |
Do you mean should I merge the latest changes from "main" into this branch, like by updating the branch |
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 have made some requests about the implementation. Can you take a look at the CONTRIBUTING.md
and run the linter to make sure the variables/code are properly formatted?
packages/jaeger-ui/src/components/TracePage/TraceStatistics/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TracePage/TraceStatistics/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TracePage/TraceStatistics/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TracePage/TraceStatistics/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TracePage/TraceStatistics/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TracePage/TraceStatistics/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TracePage/TraceStatistics/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TracePage/TraceStatistics/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TracePage/TraceStatistics/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TracePage/TraceStatistics/index.tsx
Outdated
Show resolved
Hide resolved
You can link the inspiration/source of truth for the structure of the |
Thanks for raising this PR 🙂 I have some nits for raising a PR in general.
For example -
|
…lumns Sorting Indicators added in Trace spans Table and antd Table component is used in trace statistics view Signed-off-by: GLVS Kiriti <glvskiriti2003369@gmail.com>
… in TraceStatistics table Now TraceStatistics table is working fine according to selectors in TraceStatisticsHeader and findTablesAccToSelectors function is added Signed-off-by: GLVS Kiriti <glvskiriti2003369@gmail.com>
As antd Table component is used MainTableData,DetailedTableData,HeaderTable components are not needed and sortTable file is also not needed because antd table component has sorter Signed-off-by: GLVS Kiriti <glvskiriti2003369@gmail.com>
OnCellFunction for showing the background color according to valuenameselector3 value and value of find search sorter function is modified such a way undefined type row in a subgroup of each span will be always in bottom irrespective of sorting Signed-off-by: GLVS Kiriti <glvskiriti2003369@gmail.com>
Correcting some typo errors now both TraceStatistics and TracsSpan tables look is similar and both are working fine Signed-off-by: GLVS Kiriti <glvskiriti2003369@gmail.com>
Code is now reduced and ISorterInput type is used for sorterFunction,validation checks also performed with yarn eslint Signed-off-by: GLVS Kiriti <glvskiriti2003369@gmail.com>
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.
Thanks, the changes look much better at this point. Some small changes, and once they are addressed, it looks good to me :)
packages/jaeger-ui/src/components/TracePage/TraceStatistics/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TracePage/TraceStatistics/index.tsx
Outdated
Show resolved
Hide resolved
You can mark the PR ready for review. |
Now look of TraceStatistics and TraceSpan tables are similar Signed-off-by: GLVS Kiriti <glvskiriti2003369@gmail.com>
packages/jaeger-ui/src/components/TracePage/TraceStatistics/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TracePage/TraceStatistics/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TracePage/TraceStatistics/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TracePage/TraceStatistics/types.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TracePage/TraceStatistics/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TracePage/TraceStatistics/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TracePage/TraceStatistics/index.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: GLVS Kiriti <glvskiriti2003369@gmail.com>
I love it that we'll be net-removing ~800 lines of code! |
A minor request: in the existing implementation sorting by column only works if you click on the up/down sort icon. Could we make sure that clicking anywhere in the column header causes the sort? |
Yes it is working like that right.clicking anywhere in the column header causes the sort |
By drying the function with just one return Signed-off-by: GLVSKiriti <116095646+GLVSKiriti@users.noreply.github.com>
isDetail is a attribute of ITableSpan type which tells about sub-grouping in a table Signed-off-by: GLVSKiriti <116095646+GLVSKiriti@users.noreply.github.com>
packages/jaeger-ui/src/components/TracePage/TraceStatistics/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TracePage/TraceStatistics/index.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com> Signed-off-by: GLVSKiriti <116095646+GLVSKiriti@users.noreply.github.com>
type is string before now hasSubgroupValue is boolean in ITableSpan and relevant description is added in it Signed-off-by: GLVS Kiriti <glvskiriti2003369@gmail.com>
Signed-off-by: GLVS Kiriti <glvskiriti2003369@gmail.com>
packages/jaeger-ui/src/components/TracePage/TraceStatistics/types.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Yash Sharma <yashrsharma44@gmail.com> Signed-off-by: GLVSKiriti <116095646+GLVSKiriti@users.noreply.github.com>
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 think it looks good to me, let's wait for @yurishkuro's 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.
lgtm
Signed-off-by: Yuri Shkuro <ysh@meta.com>
not clear why unit tests are failing, did you run them locally? |
Signed-off-by: GLVS Kiriti <glvskiriti2003369@gmail.com>
Error is causing because I didn't removed the test cases for the deleted functions in index.tsx |
CI still failing. I recommend making sure |
yarn test,yarn lint,yarn eslint,yarn prettier runned with no errors now Signed-off-by: GLVS Kiriti <glvskiriti2003369@gmail.com>
Ok yarn lint also runned locally, Now every thing is working fine locally |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1500 +/- ##
==========================================
+ Coverage 95.63% 95.93% +0.30%
==========================================
Files 245 241 -4
Lines 7712 7553 -159
Branches 2028 1982 -46
==========================================
- Hits 7375 7246 -129
+ Misses 337 307 -30
☔ View full report in Codecov by Sentry. |
🎉 🎉 🎉 🎉 🎉 🎉 |
Yayyy! Finally 😃😃🎉🎉 |
❤️ 🎉 |
Trace Statistics table is not using antd Table component like Trace span Table so now code is modified such that TraceStatistics table now uses antd Table component
Resolves #1181
@yurishkuro Once review this PR and let me now any changes should I do