-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Migrate rollup client side code #63227
Changes from 9 commits
a79b770
6118b8b
b5abfa2
a2ff0a0
27d9ca0
9250352
927acdd
1b936de
3da133b
85706d9
66fdec1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
export const CONFIG_ROLLUPS = 'rollups:enableIndexPatterns'; | ||
|
||
export const API_BASE_PATH = '/api/rollup'; | ||
|
||
export { | ||
UIM_APP_NAME, | ||
UIM_APP_LOAD, | ||
UIM_JOB_CREATE, | ||
UIM_JOB_DELETE, | ||
UIM_JOB_DELETE_MANY, | ||
UIM_JOB_START, | ||
UIM_JOB_START_MANY, | ||
UIM_JOB_STOP, | ||
UIM_JOB_STOP_MANY, | ||
UIM_SHOW_DETAILS_CLICK, | ||
UIM_DETAIL_PANEL_SUMMARY_TAB_CLICK, | ||
UIM_DETAIL_PANEL_TERMS_TAB_CLICK, | ||
UIM_DETAIL_PANEL_HISTOGRAM_TAB_CLICK, | ||
UIM_DETAIL_PANEL_METRICS_TAB_CLICK, | ||
UIM_DETAIL_PANEL_JSON_TAB_CLICK, | ||
} from './ui_metric'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,8 @@ import { | |
} from '@elastic/eui'; | ||
|
||
import { UIM_SHOW_DETAILS_CLICK } from '../../../../../common'; | ||
import { trackUiMetric, METRIC_TYPE } from '../../../services'; | ||
import { METRIC_TYPE } from '../../../services'; | ||
import { getUiStatsReporter } from '../../../../kibana_services'; | ||
import { JobActionMenu, JobStatus } from '../../components'; | ||
|
||
const COLUMNS = [ | ||
|
@@ -263,7 +264,7 @@ export class JobTable extends Component { | |
content = ( | ||
<EuiLink | ||
onClick={() => { | ||
trackUiMetric(METRIC_TYPE.CLICK, UIM_SHOW_DETAILS_CLICK); | ||
getUiStatsReporter()(METRIC_TYPE.CLICK, UIM_SHOW_DETAILS_CLICK); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor nit: the original form of calling a function like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I re-introduced a helper in that format hiding the getter in the services module. |
||
openDetailPanel(job.id); | ||
}} | ||
> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: We can leave off the
/index
part of this path. Webpack will automatically resolve to anindex.ts
orindex.js
file.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those were introduced by Webstorm when moving files - I'm removing them.