Skip to content

Commit 8530eb7

Browse files
Merge branch 'master' into test/visualize
2 parents d5773ef + 9499417 commit 8530eb7

File tree

89 files changed

+2363
-1146
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+2363
-1146
lines changed

examples/alerting_example/public/components/view_alert.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ export const ViewAlertPage = withRouter(({ http, id }: Props) => {
4949

5050
useEffect(() => {
5151
if (!alert) {
52-
http.get(`${BASE_ALERT_API_PATH}/${id}`).then(setAlert);
52+
http.get(`${BASE_ALERT_API_PATH}/alert/${id}`).then(setAlert);
5353
}
5454
if (!alertState) {
55-
http.get(`${BASE_ALERT_API_PATH}/${id}/state`).then(setAlertState);
55+
http.get(`${BASE_ALERT_API_PATH}/alert/${id}/state`).then(setAlertState);
5656
}
5757
}, [alert, alertState, http, id]);
5858

examples/alerting_example/public/components/view_astros_alert.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ export const ViewPeopleInSpaceAlertPage = withRouter(({ http, id }: Props) => {
5555

5656
useEffect(() => {
5757
if (!alert) {
58-
http.get(`${BASE_ALERT_API_PATH}/${id}`).then(setAlert);
58+
http.get(`${BASE_ALERT_API_PATH}/alert/${id}`).then(setAlert);
5959
}
6060
if (!alertState) {
61-
http.get(`${BASE_ALERT_API_PATH}/${id}/state`).then(setAlertState);
61+
http.get(`${BASE_ALERT_API_PATH}/alert/${id}/state`).then(setAlertState);
6262
}
6363
}, [alert, alertState, http, id]);
6464

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
"@babel/plugin-transform-modules-commonjs": "^7.10.1",
124124
"@babel/register": "^7.10.1",
125125
"@elastic/apm-rum": "^5.2.0",
126-
"@elastic/charts": "19.8.0",
126+
"@elastic/charts": "19.8.1",
127127
"@elastic/datemath": "5.0.3",
128128
"@elastic/ems-client": "7.9.3",
129129
"@elastic/eui": "24.1.0",

packages/kbn-ui-shared-deps/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"kbn:watch": "node scripts/build --dev --watch"
1010
},
1111
"dependencies": {
12-
"@elastic/charts": "19.8.0",
12+
"@elastic/charts": "19.8.1",
1313
"@elastic/eui": "24.1.0",
1414
"@elastic/numeral": "^2.5.0",
1515
"@kbn/i18n": "1.0.0",

test/functional/page_objects/dashboard_page.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -290,14 +290,16 @@ export function DashboardPageProvider({ getService, getPageObjects }: FtrProvide
290290
dashboardName: string,
291291
saveOptions: SaveDashboardOptions = { waitDialogIsClosed: true }
292292
) {
293-
await this.enterDashboardTitleAndClickSave(dashboardName, saveOptions);
293+
await retry.try(async () => {
294+
await this.enterDashboardTitleAndClickSave(dashboardName, saveOptions);
294295

295-
if (saveOptions.needsConfirm) {
296-
await this.clickSave();
297-
}
296+
if (saveOptions.needsConfirm) {
297+
await this.clickSave();
298+
}
298299

299-
// Confirm that the Dashboard has actually been saved
300-
await testSubjects.existOrFail('saveDashboardSuccess');
300+
// Confirm that the Dashboard has actually been saved
301+
await testSubjects.existOrFail('saveDashboardSuccess');
302+
});
301303
const message = await PageObjects.common.closeToast();
302304
await PageObjects.header.waitUntilLoadingHasFinished();
303305
await PageObjects.common.waitForSaveModalToClose();

test/functional/page_objects/visualize_page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export function VisualizePageProvider({ getService, getPageObjects }: FtrProvide
257257

258258
public async openSavedVisualization(vizName: string) {
259259
const dataTestSubj = `visListingTitleLink-${vizName.split(' ').join('-')}`;
260-
await testSubjects.click(dataTestSubj);
260+
await testSubjects.click(dataTestSubj, 20000);
261261
await header.waitUntilLoadingHasFinished();
262262
}
263263

x-pack/plugins/apm/public/components/app/RumDashboard/Charts/PageLoadDistChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export function PageLoadDistChart({
119119
xScaleType={ScaleType.Linear}
120120
yScaleType={ScaleType.Linear}
121121
data={data?.pageLoadDistribution ?? []}
122-
curve={CurveType.CURVE_NATURAL}
122+
curve={CurveType.CURVE_CATMULL_ROM}
123123
/>
124124
{breakdowns.map(({ name, type }) => (
125125
<BreakdownSeries

x-pack/plugins/apm/public/components/app/RumDashboard/PageLoadDistribution/PercentileAnnotations.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function generateAnnotationData(
2323
values?: Record<string, number>
2424
): LineAnnotationDatum[] {
2525
return Object.entries(values ?? {}).map((value) => ({
26-
dataValue: Math.round(value[1] / 1000),
26+
dataValue: value[1],
2727
details: `${(+value[0]).toFixed(0)}`,
2828
}));
2929
}

x-pack/plugins/apm/public/components/app/RumDashboard/PageLoadDistribution/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const PageLoadDistribution = () => {
6868
);
6969

7070
const onPercentileChange = (min: number, max: number) => {
71-
setPercentileRange({ min: min * 1000, max: max * 1000 });
71+
setPercentileRange({ min, max });
7272
};
7373

7474
return (

x-pack/plugins/apm/public/components/app/RumDashboard/index.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function RumOverview() {
4646
(callApmApi) => {
4747
if (start && end) {
4848
return callApmApi({
49-
pathname: '/api/apm/services',
49+
pathname: '/api/apm/rum-client/services',
5050
params: {
5151
query: {
5252
start,
@@ -68,11 +68,7 @@ export function RumOverview() {
6868
<LocalUIFilters {...localUIFiltersConfig} showCount={true}>
6969
{!isRumServiceRoute && (
7070
<>
71-
<ServiceNameFilter
72-
serviceNames={
73-
data?.items?.map((service) => service.serviceName) ?? []
74-
}
75-
/>
71+
<ServiceNameFilter serviceNames={data ?? []} />
7672
<EuiSpacer size="xl" />
7773
<EuiHorizontalRule margin="none" />{' '}
7874
</>

0 commit comments

Comments
 (0)