- {i18n.USER_ADDED_A_NOTE(note.updatedBy ?? i18n.AN_UNKNOWN_USER)}
+ {`${note.updatedBy ?? i18n.AN_UNKNOWN_USER} ${i18n.ADDED_A_NOTE}`}
{note.note ?? ''}
diff --git a/x-pack/plugins/security_solution/public/timelines/components/open_timeline/note_previews/translations.ts b/x-pack/plugins/security_solution/public/timelines/components/open_timeline/note_previews/translations.ts
index d38dee8a41504..2525173970687 100644
--- a/x-pack/plugins/security_solution/public/timelines/components/open_timeline/note_previews/translations.ts
+++ b/x-pack/plugins/security_solution/public/timelines/components/open_timeline/note_previews/translations.ts
@@ -13,14 +13,12 @@ export const TOGGLE_EXPAND_EVENT_DETAILS = i18n.translate(
}
);
-export const USER_ADDED_A_NOTE = (user: string) =>
- i18n.translate('xpack.securitySolution.timeline.userAddedANoteScreenReaderOnly', {
- values: { user },
- defaultMessage: '{user} added a note',
- });
+export const ADDED_A_NOTE = i18n.translate('xpack.securitySolution.timeline.addedANoteLabel', {
+ defaultMessage: 'added a note',
+});
export const AN_UNKNOWN_USER = i18n.translate(
- 'xpack.securitySolution.timeline.anUnknownUserScreenReaderOnly',
+ 'xpack.securitySolution.timeline.anUnknownUserLabel',
{
defaultMessage: 'an unknown user',
}
diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/routes/index/get_index_version.ts b/x-pack/plugins/security_solution/server/lib/detection_engine/routes/index/get_index_version.ts
index 8553c427588d3..c2c676ef06006 100644
--- a/x-pack/plugins/security_solution/server/lib/detection_engine/routes/index/get_index_version.ts
+++ b/x-pack/plugins/security_solution/server/lib/detection_engine/routes/index/get_index_version.ts
@@ -26,7 +26,7 @@ export const getIndexVersion = async (
index,
});
const writeIndex = Object.keys(indexAlias).find(
- (key) => indexAlias[key].aliases[index].is_write_index
+ (key) => indexAlias[key].aliases[index]?.is_write_index
);
if (writeIndex === undefined) {
return 0;
diff --git a/yarn.lock b/yarn.lock
index 585d6a1c81ca9..81b57de1947da 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1369,10 +1369,10 @@
snap-shot-compare "2.8.3"
snap-shot-store "1.2.3"
-"@cypress/webpack-preprocessor@^5.4.11":
- version "5.4.11"
- resolved "https://registry.yarnpkg.com/@cypress/webpack-preprocessor/-/webpack-preprocessor-5.4.11.tgz#77f86e399f04969d5d8692ada96c794c52d38f87"
- integrity sha512-6kj0HsaWf1s0UT4qkABuwl676sW8S8lSTai3NUcF3BWj9BqhN4JPd2DdGcHNkNmYRkjpklPeGUHqAOyqMDj5+A==
+"@cypress/webpack-preprocessor@^5.5.0":
+ version "5.5.0"
+ resolved "https://registry.yarnpkg.com/@cypress/webpack-preprocessor/-/webpack-preprocessor-5.5.0.tgz#e7010b2ee7449691cc16a9d5d1956af17ea175fd"
+ integrity sha512-iqwPygSNZ1u6bM3r5QRVv6qYngkcgI2xCzi9Jmo4mrkcofwX08UaItJq7xlB2/dHbB2aryQYOsfe4xNKtQIm3A==
dependencies:
bluebird "^3.7.1"
debug "^4.1.1"
@@ -10908,10 +10908,10 @@ cypress-promise@^1.1.0:
resolved "https://registry.yarnpkg.com/cypress-promise/-/cypress-promise-1.1.0.tgz#f2d66965945fe198431aaf692d5157cea9d47b25"
integrity sha512-DhIf5PJ/a0iY+Yii6n7Rbwq+9TJxU4pupXYzf9mZd8nPG0AzQrj9i+pqINv4xbI2EV1p+PKW3maCkR7oPG4GrA==
-cypress@^6.1.0:
- version "6.1.0"
- resolved "https://registry.yarnpkg.com/cypress/-/cypress-6.1.0.tgz#af2596cb110aa98eaf75fef3d8ab379ca0ff2413"
- integrity sha512-uQnSxRcZ6hkf9R5cr8KpRBTzN88QZwLIImbf5DWa5RIxH6o5Gpff58EcjiYhAR8/8p9SGv7O6SRygq4H+k0Qpw==
+cypress@^6.2.1:
+ version "6.2.1"
+ resolved "https://registry.yarnpkg.com/cypress/-/cypress-6.2.1.tgz#27d5fbcf008c698c390fdb0c03441804176d06c4"
+ integrity sha512-OYkSgzA4J4Q7eMjZvNf5qWpBLR4RXrkqjL3UZ1UzGGLAskO0nFTi/RomNTG6TKvL3Zp4tw4zFY1gp5MtmkCZrA==
dependencies:
"@cypress/listr-verbose-renderer" "^0.4.1"
"@cypress/request" "^2.88.5"