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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert from Flow to Typescript for Jaeger-UI #359

Merged
merged 59 commits into from
Mar 26, 2019
Merged

Convert from Flow to Typescript for Jaeger-UI #359

merged 59 commits into from
Mar 26, 2019

Conversation

everett980
Copy link
Collaborator

@everett980 everett980 commented Mar 25, 2019

Which problem is this PR solving?

  • Typescript has proven to be superior than Flow, so this PR converts from Flow to Typescript.

Short description of the changes

  • Convert all files with @flow, as well as some of the simple non-flow files.
  • Add script to trace typescript coverage.

Fixes #306.

everett980 and others added 30 commits March 11, 2019 16:56
Signed-off-by: Everett Ross <reverett@uber.com>
Signed-off-by: Everett Ross <reverett@uber.com>
Signed-off-by: Everett Ross <reverett@uber.com>
Signed-off-by: Everett Ross <reverett@uber.com>
Signed-off-by: Everett Ross <reverett@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
- Minor tweaks to project root .eslintrc.js

- Changed TypeScript linting to use project references, which lets
  packages have their own typings declarations. This required a second
  tsconfig in jaeger-ui (tsconfig.lint.json) because project references
  and create-react-app require conflicting values for isolatedModules.
  https://www.typescriptlang.org/docs/handbook/project-references.html

- Used extends in jaeger-ui tsconfig files so they are consistent with
  the root tsconfig

- Added process and global to jaeger-ui typings/custom.d.ts so
  @types/node can be removed

- Remove @types/node and @types/jsdom

- Pin parse5@^4.0.0 (via cheerio) to remove its @types/node dependency

- Added TNil to shorten `null | undefined`; a bit on the fence about it

Signed-off-by: Joe Farro <joef@uber.com>
Remove no-longer-necessary eslint-disable no-unused-vars

Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Everett Ross <reverett@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Everett Ross <reverett@uber.com>
Signed-off-by: Everett Ross <reverett@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Everett Ross <reverett@uber.com>
Signed-off-by: Everett Ross <reverett@uber.com>
Signed-off-by: Everett Ross <reverett@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
everett980 and others added 16 commits March 19, 2019 18:30
Signed-off-by: Everett Ross <reverett@uber.com>
Signed-off-by: Everett Ross <reverett@uber.com>
Signed-off-by: Everett Ross <reverett@uber.com>
Signed-off-by: Everett Ross <reverett@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Everett Ross <reverett@uber.com>
@ghost ghost assigned everett980 Mar 25, 2019
@ghost ghost added the review label Mar 25, 2019
@codecov
Copy link

codecov bot commented Mar 25, 2019

Codecov Report

Merging #359 into master will decrease coverage by 2.69%.
The diff coverage is 92.08%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #359     +/-   ##
=========================================
- Coverage   90.87%   88.17%   -2.7%     
=========================================
  Files         151      157      +6     
  Lines        3275     3493    +218     
  Branches      662      798    +136     
=========================================
+ Hits         2976     3080    +104     
- Misses        245      376    +131     
+ Partials       54       37     -17
Impacted Files Coverage Δ
packages/jaeger-ui/src/utils/span-ancestor-ids.tsx 100% <ø> (ø)
...racePage/TracePageHeader/TracePageHeader.track.tsx 80% <ø> (ø)
...aeger-ui/src/utils/DraggableManager/demo/index.tsx 0% <ø> (ø)
...ges/jaeger-ui/src/components/common/VirtSelect.tsx 0% <ø> (ø)
...age/TracePageHeader/TracePageSearchBar.markers.tsx 100% <ø> (ø)
.../jaeger-ui/src/model/trace-dag/denseTransforms.tsx 70.9% <ø> (ø)
...ackages/jaeger-ui/src/components/TracePage/url.tsx 100% <ø> (ø)
...s/jaeger-ui/src/components/DependencyGraph/url.tsx 100% <ø> (ø)
.../jaeger-ui/src/components/common/NewWindowIcon.tsx 100% <ø> (ø)
...lineViewer/TimelineHeaderRow/TimelineHeaderRow.tsx 100% <ø> (ø)
... and 174 more

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 3da2356...211cf9e. Read the comment docs.

Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
@ghost ghost assigned tiffon Mar 25, 2019
Copy link
Member

@tiffon tiffon left a comment

Choose a reason for hiding this comment

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

Here we go...

@tiffon tiffon merged commit 3e5d242 into master Mar 26, 2019
@ghost ghost removed the review label Mar 26, 2019
@yurishkuro yurishkuro deleted the ui-to-ts branch January 29, 2020 15:08
vvvprabhakar pushed a commit to vvvprabhakar/jaeger-ui that referenced this pull request Jul 5, 2021
Convert from Flow to Typescript for Jaeger-UI
Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
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