Skip to content

[NP] Migrate field format utils to TS - #47124

Merged
gospodarsky merged 32 commits into
elastic:masterfrom
gospodarsky:migrate-field-formats-utils-to-ts-2
Oct 9, 2019
Merged

gospodarsky merged 32 commits into
elastic:masterfrom
gospodarsky:migrate-field-formats-utils-to-ts-2

Conversation

@gospodarsky

@gospodarsky gospodarsky commented Oct 2, 2019 •

Copy link
Copy Markdown

Summary

A part of #44973

Summarize your PR. If it involves visual changes include a screenshot or gif.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@gospodarsky
gospodarsky requested a review from a team as a code owner October 2, 2019 14:27
@gospodarsky gospodarsky self-assigned this Oct 2, 2019
@gospodarsky gospodarsky changed the title Migrate field formats utils to ts 2 [NP] Migrate field format utils to TS Oct 2, 2019
Comment thread src/legacy/ui/field_formats/mixin/field_formats_service.test.ts Outdated
@elasticmachine

Copy link
Copy Markdown
Contributor

💔 Build Failed

Comment thread src/legacy/core_plugins/kibana/common/field_formats/types/url.ts Outdated
Comment thread src/legacy/core_plugins/kibana/common/field_formats/types/url.ts Outdated
Comment thread src/legacy/core_plugins/kibana/common/field_formats/types/truncate.ts Outdated
Comment thread src/legacy/core_plugins/kibana/common/field_formats/types/string.ts Outdated
@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@elasticmachine

Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@elasticmachine

Copy link
Copy Markdown
Contributor

💔 Build Failed

@alexwizp

alexwizp commented Oct 7, 2019

Copy link
Copy Markdown
Contributor

retest

@elasticmachine

Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@ppisljar ppisljar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

there are still around 20 any types, please update those but apart from that code LGTM

Comment thread src/legacy/core_plugins/kibana/common/field_formats/types/_numeral.ts Outdated
@gospodarsky gospodarsky added v7.6.0 and removed v8.0.0 labels Oct 8, 2019
@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@gospodarsky
gospodarsky merged commit 9430ca1 into elastic:master Oct 9, 2019
gospodarsky pushed a commit that referenced this pull request Oct 9, 2019
* Migrate url.js to TS

* Typescriptify truncate util

* Typescriptify string util

* Change method name by constant

* Typescriptify relative date util

* Refactor url util

* Typescriptify percent util

* Typescriptify bytes util

* Typescriptify number util

* Make _convert as method of derived class

* Get rid of Field Format type

* Typescriptify IP and Color utils

* Typescriptify dates utils

* Change functions to arrow functions in tests

* Convert Duration, Source and Static Lookup to TS

* Remove Field Format type from Numeral

* Use MomentJS types instead of any

* Use KBN_FIELD_TYPES as field types

* Make timezone as string

* Make memoizedConverter and memoizedPattern types

* Make ugly type for createNumberFormat

* Replace any types by certain ones

* Add types to tests

* Internationalize Duration, String, Url utils

* Get rid of implicit _convert method

* Fix conflicts

* Make htmlConvert, textConvert and setupContentType as public

* Make some any's more certain
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
* Migrate url.js to TS

* Typescriptify truncate util

* Typescriptify string util

* Change method name by constant

* Typescriptify relative date util

* Refactor url util

* Typescriptify percent util

* Typescriptify bytes util

* Typescriptify number util

* Make _convert as method of derived class

* Get rid of Field Format type

* Typescriptify IP and Color utils

* Typescriptify dates utils

* Change functions to arrow functions in tests

* Convert Duration, Source and Static Lookup to TS

* Remove Field Format type from Numeral

* Use MomentJS types instead of any

* Use KBN_FIELD_TYPES as field types

* Make timezone as string

* Make memoizedConverter and memoizedPattern types

* Make ugly type for createNumberFormat

* Replace any types by certain ones

* Add types to tests

* Internationalize Duration, String, Url utils

* Get rid of implicit _convert method

* Fix conflicts

* Make htmlConvert, textConvert and setupContentType as public

* Make some any's more certain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants