-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Remove external dependency on Numeral.js #8583
Comments
Just to add to this, the NumeralJS lib seems to be stale,
With how deeply NumeralJS is integrated into Kibana now, there's going to be a lot more effort than before in adding "en-ie" (Ireland, Euro) as an option and setting its value. It's not a showstopper, just added effort for us. |
Pinging @elastic/kibana-app |
I've done a lot of work to see if it's possible to replace numeral with The short-term approach that I am taking instead is like you are suggesting here, to provide interfaces that express the same configuration as numeral, but in a way that doesn't depend on the library and can be changed later. So for example, the configuration I have started implementing this in Lens in this future-facing way, but I think it's time to start discussing the deprecation plan for other apps. #56253 |
Pinging @elastic/kibana-app-arch (Team:AppArch) |
Numeral.js patterns are a useful and concise abstraction, and the fact that we have been asking users to type them for years shows this. But Numeral has bugs and limitations, and it's time for us to go beyond. This comment will summarize the current state of things and talk about a plan. Useful features of Numeral
Limitations of Numeral
What needs to change?a. @elastic/kibana-app-arch now owns field formatters and should take over maintenance. Other related issue: #39211 |
Just as an update, we've done 3/4 of the steps above. The remaining step is to define a future APi, and I've made a proposal in this comment |
@lukeelmers, is there work still happening on this? |
@VijayDoshi Nothing happening on the core side, but @Dosant on app services was tracking this work in a meta issue here: #102239 He or @ppisljar @petrklapka may know more about how it is currently being prioritized |
we are not working on this at the moment due to other priorities |
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
We are closing this issue in order to provide better transparency of priorities. This issue won't be prioritized in the near future. We track it in #163011 for long term planning. |
We currently rely on numeral.js for number formatting (http://numeraljs.com/) and expose their pattern syntax to users in the field formatter settings
Remove this explicit external dependency. This would mean:
This does not mean we need to remove numeral.js as an internal dependency, just that we take ownership of the pattern syntax.
See comments by @epixa here #8565 (comment).
The text was updated successfully, but these errors were encountered: