File tree Expand file tree Collapse file tree 5 files changed +25
-18
lines changed
redisinsight/ui/src/components Expand file tree Collapse file tree 5 files changed +25
-18
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ describe('StreamTabs', () => {
27
27
} )
28
28
29
29
expect ( pushMock ) . toHaveBeenCalledTimes ( 1 )
30
- expect ( pushMock ) . toHaveBeenCalledWith ( '/instanceId/cluster-details' )
30
+ expect ( pushMock ) . toHaveBeenCalledWith ( '/instanceId/analytics/ cluster-details' )
31
31
} )
32
32
it ( 'click on SlowLog tab should call History push with /slowlog path ' , async ( ) => {
33
33
const pushMock = jest . fn ( )
@@ -40,6 +40,6 @@ describe('StreamTabs', () => {
40
40
} )
41
41
42
42
expect ( pushMock ) . toHaveBeenCalledTimes ( 1 )
43
- expect ( pushMock ) . toHaveBeenCalledWith ( '/instanceId/slowlog' )
43
+ expect ( pushMock ) . toHaveBeenCalledWith ( '/instanceId/analytics/ slowlog' )
44
44
} )
45
45
} )
Original file line number Diff line number Diff line change @@ -10,26 +10,12 @@ import {
10
10
RedisClusterDatabasesPage ,
11
11
} from 'uiSrc/pages'
12
12
import WorkbenchPage from 'uiSrc/pages/workbench'
13
- import SlowLogPage from 'uiSrc/pages/slowLog'
14
13
import PubSubPage from 'uiSrc/pages/pubSub'
15
- import ClusterDetailsPage from 'uiSrc/pages/clusterDetails'
16
14
import AnalyticsPage from 'uiSrc/pages/analytics'
15
+ import { ANALYTICS_ROUTES } from './sub-routes'
17
16
18
17
import COMMON_ROUTES from './commonRoutes'
19
18
20
- export const ANALYTICS_ROUTES : IRoute [ ] = [
21
- {
22
- pageName : PageNames . slowLog ,
23
- path : Pages . slowLog ( ':instanceId' ) ,
24
- component : SlowLogPage ,
25
- } ,
26
- {
27
- pageName : PageNames . clusterDetails ,
28
- path : Pages . clusterDetails ( ':instanceId' ) ,
29
- component : ClusterDetailsPage ,
30
- } ,
31
- ]
32
-
33
19
const INSTANCE_ROUTES : IRoute [ ] = [
34
20
{
35
21
pageName : PageNames . browser ,
Original file line number Diff line number Diff line change
1
+ import { IRoute , PageNames , Pages } from 'uiSrc/constants'
2
+ import ClusterDetailsPage from 'uiSrc/pages/clusterDetails'
3
+ import SlowLogPage from 'uiSrc/pages/slowLog'
4
+
5
+ export const ANALYTICS_ROUTES : IRoute [ ] = [
6
+ {
7
+ pageName : PageNames . slowLog ,
8
+ path : Pages . slowLog ( ':instanceId' ) ,
9
+ component : SlowLogPage ,
10
+ } ,
11
+ {
12
+ pageName : PageNames . clusterDetails ,
13
+ path : Pages . clusterDetails ( ':instanceId' ) ,
14
+ component : ClusterDetailsPage ,
15
+ } ,
16
+ ]
Original file line number Diff line number Diff line change
1
+ import { ANALYTICS_ROUTES } from './analyticsRoutes'
2
+
3
+ export {
4
+ ANALYTICS_ROUTES
5
+ }
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import {
17
17
EuiTitle ,
18
18
EuiToolTip
19
19
} from '@elastic/eui'
20
+ import { ANALYTICS_ROUTES } from 'uiSrc/components/main-router/constants/sub-routes'
20
21
21
22
import { PageNames , Pages } from 'uiSrc/constants'
22
23
import { EXTERNAL_LINKS } from 'uiSrc/constants/links'
@@ -46,7 +47,6 @@ import { ConnectionType } from 'uiSrc/slices/interfaces'
46
47
47
48
import NotificationMenu from './components/notifications-center'
48
49
49
- import { ANALYTICS_ROUTES } from '../main-router/constants/defaultRoutes'
50
50
import styles from './styles.module.scss'
51
51
52
52
const workbenchPath = `/${ PageNames . workbench } `
You can’t perform that action at this time.
0 commit comments