-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix]: Remove redux-form dependency from Monitor page (#2562)
## Which problem is this PR solving? - part of #2556 ## Description of the changes - This PR removes dependency of Monitor page on `redux-form`. - To keep this PR small and easy to review, I haven't removed other instances of `redux-form` in this same PR. Neither have I removed `redux-form` package as of now. - `Antd` `SearchableSelect` requires loading type to be `boolean | undefined` so I have changed the related types in other files to fix ts-lint errors. ### Why this change was needed? - Monitor page has a few selectors that doesn't need any global state sync to other components. `redux-form` is anyway deprecating so in-built react state management is a good choice. - React uses `state` object for state management, and `props` for injecting props to the component. `redux-form` use to inject those Dropdown Selector values `selectedService`, `selectedSpanKind`, and `selectedTimeFrame` from redux store. - This PR moves that to in-built react state, so we won't have to inject those from store anymore. ## How was this change tested? - `npm run test` - `npm run start` with monitor page view. everything seems to be working fine. ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [x] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `npm run lint` and `npm run test` --------- Signed-off-by: Hariom Gupta <guptahariom03082003@gmail.com> Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
- Loading branch information
1 parent
73a16c0
commit c28adbb
Showing
7 changed files
with
115 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.