[Monitoring] Remove angular dependency from Stack Monitoring #90254
Labels
blocker
chore
enhancement
New value added to drive a business result
Feature:Dependencies
R&D
Research and development ticket (not meant to produce code, but to make a decision)
Team:Monitoring
Stack Monitoring team
v7.16.0
AngularJS will no longer be supported, context here: #90145
We need to investigate what it would take to completely remove angularjs (and its rough timeline). Currently our plugin relies on angularjs (sorted by most complex order) for:
- Directives
SM is currently wrapped in a pretty large angular directive, example. This will probably be the hardest and the most time consuming thing to port over to react. This will involve breaking things down into their own components and decoupling any global relationships/dependancies
- Routing/Navigation (with passing url params as state to routes)
Routing in angular is very different than in react. The first step would probably involve changing all our angular route controllers (that are used inside
.when()
), and their respective html views into react components, and the next step would be to onlyrender
our whole app (fromreact-dom
) once (instead of the individual components)Possible alternative:
react-router-dom
GlobalState
class inurl_state.ts
- Breadcrumbs
This hooks into kibana's top nav header, and we have full control over it (so should be pretty straight forward)
Possible alternative:
- Timefilter refresh execution
This just updates angular's scope digestion along with anything else we put into
executor.register
which is an event interval fromEuiSuperDatePicker
Possible alternative:
onRefreshChange
byEuiSuperDatePicker
There are couple of other things that I don't think are worth a mention since Kibana's NP core features has the alternatives we need
The text was updated successfully, but these errors were encountered: