Skip to content

Commit 928454a

Browse files
Update the ems-client dependency to 7.7.0 (#59936)
* Update the ems-client dependency This PR adds the `appName` and `appVersion` parameters used by ems-client. The `appVersion` parameter replaces the now deprecated `kbnVersion` parameter in ems-client. * Review feedback * Fix borked merge Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
1 parent f875b71 commit 928454a

File tree

7 files changed

+15
-9
lines changed

7 files changed

+15
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
"@elastic/apm-rum": "^4.6.0",
120120
"@elastic/charts": "^17.1.1",
121121
"@elastic/datemath": "5.0.2",
122-
"@elastic/ems-client": "7.6.0",
122+
"@elastic/ems-client": "7.7.0",
123123
"@elastic/eui": "20.0.2",
124124
"@elastic/filesaver": "1.1.2",
125125
"@elastic/good": "8.1.1-kibana2",

src/legacy/ui/public/vis/map/service_settings.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ uiModules
4747
this._showZoomMessage = true;
4848
this._emsClient = new EMSClient({
4949
language: i18n.getLocale(),
50-
kbnVersion: kbnVersion,
50+
appVersion: kbnVersion,
51+
appName: 'kibana',
5152
fileApiUrl: mapConfig.emsFileApiUrl,
5253
tileApiUrl: mapConfig.emsTileApiUrl,
5354
htmlSanitizer: $sanitize,

x-pack/legacy/plugins/maps/public/meta.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
EMS_FILES_CATALOGUE_PATH,
1010
EMS_TILES_CATALOGUE_PATH,
1111
EMS_GLYPHS_PATH,
12+
EMS_APP_NAME,
1213
} from '../common/constants';
1314
import chrome from 'ui/chrome';
1415
import { i18n } from '@kbn/i18n';
@@ -56,7 +57,8 @@ export function getEMSClient() {
5657

5758
emsClient = new EMSClient({
5859
language: i18n.getLocale(),
59-
kbnVersion: chrome.getInjected('kbnPkgVersion'),
60+
appVersion: chrome.getInjected('kbnPkgVersion'),
61+
appName: EMS_APP_NAME,
6062
tileApiUrl,
6163
fileApiUrl,
6264
landingPageUrl: chrome.getInjected('emsLandingPageUrl'),

x-pack/legacy/plugins/maps/server/routes.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
import {
8+
EMS_APP_NAME,
89
EMS_CATALOGUE_PATH,
910
EMS_FILES_API_PATH,
1011
EMS_FILES_CATALOGUE_PATH,
@@ -38,7 +39,8 @@ export function initRoutes(server, licenseUid) {
3839
if (mapConfig.includeElasticMapsService) {
3940
emsClient = new EMSClient({
4041
language: i18n.getLocale(),
41-
kbnVersion: serverConfig.get('pkg.version'),
42+
appVersion: serverConfig.get('pkg.version'),
43+
appName: EMS_APP_NAME,
4244
fileApiUrl: mapConfig.emsFileApiUrl,
4345
tileApiUrl: mapConfig.emsTileApiUrl,
4446
landingPageUrl: mapConfig.emsLandingPageUrl,

x-pack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
"@babel/runtime": "^7.5.5",
180180
"@elastic/apm-rum-react": "^0.3.2",
181181
"@elastic/datemath": "5.0.2",
182-
"@elastic/ems-client": "7.6.0",
182+
"@elastic/ems-client": "7.7.0",
183183
"@elastic/eui": "20.0.2",
184184
"@elastic/filesaver": "1.1.2",
185185
"@elastic/maki": "6.1.0",

x-pack/plugins/maps/common/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* you may not use this file except in compliance with the Elastic License.
1111
*/
1212
import { i18n } from '@kbn/i18n';
13+
export const EMS_APP_NAME = 'kibana';
1314
export const EMS_CATALOGUE_PATH = 'ems/catalogue';
1415

1516
export const EMS_FILES_CATALOGUE_PATH = 'ems/files';

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1916,10 +1916,10 @@
19161916
once "^1.4.0"
19171917
pump "^3.0.0"
19181918

1919-
"@elastic/ems-client@7.6.0":
1920-
version "7.6.0"
1921-
resolved "https://registry.yarnpkg.com/@elastic/ems-client/-/ems-client-7.6.0.tgz#ca548aba1a1f5170a1892de129b537b5248c74be"
1922-
integrity sha512-oBtLH24qIgTaMhlSske49FTd35Y0nv+PlZCZaHkBhOH+ScsTDL3LO2lbIcSmcYQod43Ly34v/xwJvFCTxojVEQ==
1919+
"@elastic/ems-client@7.7.0":
1920+
version "7.7.0"
1921+
resolved "https://registry.yarnpkg.com/@elastic/ems-client/-/ems-client-7.7.0.tgz#7d36d716dd941f060b9fcdae94f186a9aecc5cc2"
1922+
integrity sha512-JatsSyLik/8MTEOEimzEZ3NYjvGL1YzjbGujuSCgaXhPRqzu/wvMLEL8dlVpmYFZ7ALbGNsVdho4Hr8tngsIMw==
19231923
dependencies:
19241924
lodash "^4.17.15"
19251925
node-fetch "^1.7.3"

0 commit comments

Comments
 (0)