Łukasz Mierzwa
885674c5c0
[UI] Fix duplicated keys on /targets page ( #8456 )
...
* [UI] Add a test for duplicated keys in EndpointLink component
I've noticed that I'm getting warnings about multiple children with the same key on /targets page.
This adds a test that fails when that happens.
Signed-off-by: Łukasz Mierzwa <l.mierzwa@gmail.com>
* [UI] Fix duplicated keys on /targets page
Since any URI we render on /targets page can have multi-value params we should use both name and value as components keys.
Signed-off-by: Łukasz Mierzwa <l.mierzwa@gmail.com>
2021-02-08 22:17:04 +01:00
Harkishen Singh
489a9aa7b9
Adds normalization of localhost urls in targets page react ( #6794 )
...
* support for globalurls in targets page react
Signed-off-by: Harkishen Singh <harkishensingh@hotmail.com>
* fixed tests
Signed-off-by: Harkishen Singh <harkishensingh@hotmail.com>
* removed fmts
Signed-off-by: Harkishen Singh <harkishensingh@hotmail.com>
* implemented suggestions
Signed-off-by: Harkishen Singh <harkishensingh@hotmail.com>
* formatted
Signed-off-by: Harkishen Singh <harkishensingh@hotmail.com>
* implemented suggestions. fixed tests.
Signed-off-by: Harkishen Singh <harkishensingh@hotmail.com>
* formated go code
Signed-off-by: Harkishen Singh <harkishensingh@hotmail.com>
* implemented suggestions
Signed-off-by: Harkishen Singh <harkishensingh@hotmail.com>
2020-02-17 18:19:15 +01:00
Dustin Hooten
ca60bf298c
React UI: Implement /targets page ( #6276 )
...
* Add LastScrapeDuration to targets endpoint
Signed-off-by: Dustin Hooten <dhooten@splunk.com>
* Add Scrape job name to targets endpoint
Signed-off-by: Dustin Hooten <dhooten@splunk.com>
* Implement the /targets page in react
Signed-off-by: Dustin Hooten <dhooten@splunk.com>
* Add state query param to targets endpoint
Signed-off-by: Dustin Hooten <dhooten@splunk.com>
* Use state filter in api call
Signed-off-by: Dustin Hooten <dhooten@splunk.com>
* api feedback
Signed-off-by: Dustin Hooten <dhooten@splunk.com>
* pr feedback frontend
Signed-off-by: Dustin Hooten <dhooten@splunk.com>
* Implement and use localstorage hook
Signed-off-by: Dustin Hooten <dhooten@splunk.com>
* PR feedback
Signed-off-by: Dustin Hooten <dhooten@splunk.com>
2019-11-11 22:42:24 +01:00