[SIEM] update wordings (#71119)
* update wordings * remove redundant wordings
This commit is contained in:
parent
9b312b2ae6
commit
4cdb74f6fb
|
@ -298,6 +298,7 @@ export const IMPORT_FAILED_DETAILED = (id: string, statusCode: number, message:
|
||||||
export const TEMPLATE_CALL_OUT_MESSAGE = i18n.translate(
|
export const TEMPLATE_CALL_OUT_MESSAGE = i18n.translate(
|
||||||
'xpack.securitySolution.timelines.components.templateCallOutMessageTitle',
|
'xpack.securitySolution.timelines.components.templateCallOutMessageTitle',
|
||||||
{
|
{
|
||||||
defaultMessage: 'Now you can add timeline templates and link it to rules.',
|
defaultMessage:
|
||||||
|
'Prebuit detection rules are now packaged with Timeline templates. You can also create your own Timeline templates and associate them with any rule.',
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -28,7 +28,7 @@ import {
|
||||||
import {
|
import {
|
||||||
CREATE_TEMPLATE_TIMELINE_ERROR_MESSAGE,
|
CREATE_TEMPLATE_TIMELINE_ERROR_MESSAGE,
|
||||||
CREATE_TIMELINE_ERROR_MESSAGE,
|
CREATE_TIMELINE_ERROR_MESSAGE,
|
||||||
} from './utils/create_timelines';
|
} from './utils/failure_cases';
|
||||||
|
|
||||||
describe('create timelines', () => {
|
describe('create timelines', () => {
|
||||||
let server: ReturnType<typeof serverMock.create>;
|
let server: ReturnType<typeof serverMock.create>;
|
||||||
|
|
|
@ -46,7 +46,7 @@ import { createTimelines } from './utils/create_timelines';
|
||||||
import { TimelineStatus } from '../../../../common/types/timeline';
|
import { TimelineStatus } from '../../../../common/types/timeline';
|
||||||
|
|
||||||
const CHUNK_PARSED_OBJECT_SIZE = 10;
|
const CHUNK_PARSED_OBJECT_SIZE = 10;
|
||||||
const DEFAULT_IMPORT_ERROR = `Something went wrong, there's something we didn't handle properly, please help us improve by providing the file you try to import on https://discuss.elastic.co/c/security/siem`;
|
const DEFAULT_IMPORT_ERROR = `Something has gone wrong. We didn't handle something properly. To help us fix this, please upload your file to https://discuss.elastic.co/c/security/siem.`;
|
||||||
|
|
||||||
export const importTimelinesRoute = (
|
export const importTimelinesRoute = (
|
||||||
router: IRouter,
|
router: IRouter,
|
||||||
|
|
|
@ -13,11 +13,6 @@ import { SavedTimeline, TimelineSavedObject } from '../../../../../common/types/
|
||||||
import { SavedNote } from '../../../../../common/types/timeline/note';
|
import { SavedNote } from '../../../../../common/types/timeline/note';
|
||||||
import { NoteResult, ResponseTimeline } from '../../../../graphql/types';
|
import { NoteResult, ResponseTimeline } from '../../../../graphql/types';
|
||||||
|
|
||||||
export const CREATE_TIMELINE_ERROR_MESSAGE =
|
|
||||||
'UPDATE timeline with POST is not allowed, please use PATCH instead';
|
|
||||||
export const CREATE_TEMPLATE_TIMELINE_ERROR_MESSAGE =
|
|
||||||
'UPDATE template timeline with POST is not allowed, please use PATCH instead';
|
|
||||||
|
|
||||||
export const saveTimelines = (
|
export const saveTimelines = (
|
||||||
frameworkRequest: FrameworkRequest,
|
frameworkRequest: FrameworkRequest,
|
||||||
timeline: SavedTimeline,
|
timeline: SavedTimeline,
|
||||||
|
|
|
@ -11,27 +11,31 @@ import {
|
||||||
} from '../../../../../common/types/timeline';
|
} from '../../../../../common/types/timeline';
|
||||||
|
|
||||||
export const UPDATE_TIMELINE_ERROR_MESSAGE =
|
export const UPDATE_TIMELINE_ERROR_MESSAGE =
|
||||||
'CREATE timeline with PATCH is not allowed, please use POST instead';
|
'You cannot create new timelines with PATCH. Use POST instead.';
|
||||||
export const UPDATE_TEMPLATE_TIMELINE_ERROR_MESSAGE =
|
export const UPDATE_TEMPLATE_TIMELINE_ERROR_MESSAGE =
|
||||||
"CREATE template timeline with PATCH is not allowed, please use POST instead (Given template timeline doesn't exist)";
|
'You cannot create new Timeline templates with PATCH. Use POST instead (templateTimelineId does not exist).';
|
||||||
export const NO_MATCH_VERSION_ERROR_MESSAGE =
|
export const NO_MATCH_VERSION_ERROR_MESSAGE =
|
||||||
'TimelineVersion conflict: The given version doesn not match with existing timeline';
|
'Timeline template version conflict. The provided templateTimelineVersion does not match the current template.';
|
||||||
export const NO_MATCH_ID_ERROR_MESSAGE =
|
export const NO_MATCH_ID_ERROR_MESSAGE =
|
||||||
"Timeline id doesn't match with existing template timeline";
|
'There are no Timeline templates that match the provided templateTimelineId.';
|
||||||
export const TEMPLATE_TIMELINE_VERSION_CONFLICT_MESSAGE = 'Template timelineVersion conflict';
|
export const TEMPLATE_TIMELINE_VERSION_CONFLICT_MESSAGE =
|
||||||
|
'To update existing Timeline templates, you must increment the templateTimelineVersion value.';
|
||||||
export const CREATE_TIMELINE_ERROR_MESSAGE =
|
export const CREATE_TIMELINE_ERROR_MESSAGE =
|
||||||
'UPDATE timeline with POST is not allowed, please use PATCH instead';
|
'You cannot update timelines with POST. Use PATCH instead.';
|
||||||
export const CREATE_TEMPLATE_TIMELINE_ERROR_MESSAGE =
|
export const CREATE_TEMPLATE_TIMELINE_ERROR_MESSAGE =
|
||||||
'UPDATE template timeline with POST is not allowed, please use PATCH instead';
|
'You cannot update Timeline templates with POST. Use PATCH instead.';
|
||||||
export const EMPTY_TITLE_ERROR_MESSAGE = 'Title cannot be empty';
|
export const EMPTY_TITLE_ERROR_MESSAGE = 'The title field cannot be empty.';
|
||||||
export const UPDATE_STATUS_ERROR_MESSAGE = 'Update an immutable timeline is is not allowed';
|
export const UPDATE_STATUS_ERROR_MESSAGE =
|
||||||
|
'You are not allowed to set the status field value to immutable.';
|
||||||
export const CREATE_TEMPLATE_TIMELINE_WITHOUT_VERSION_ERROR_MESSAGE =
|
export const CREATE_TEMPLATE_TIMELINE_WITHOUT_VERSION_ERROR_MESSAGE =
|
||||||
'Create template timeline without a valid templateTimelineVersion is not allowed. Please start from 1 to create a new template timeline';
|
'You must provide a valid templateTimelineVersion value. Use 1 for new Timeline templates.';
|
||||||
export const CREATE_WITH_INVALID_STATUS_ERROR_MESSAGE = 'Cannot create a draft timeline';
|
export const CREATE_WITH_INVALID_STATUS_ERROR_MESSAGE =
|
||||||
export const NOT_ALLOW_UPDATE_STATUS_ERROR_MESSAGE = 'Update status is not allowed';
|
'You are not allowed to set the status field value to draft.';
|
||||||
export const NOT_ALLOW_UPDATE_TIMELINE_TYPE_ERROR_MESSAGE = 'Update timelineType is not allowed';
|
export const NOT_ALLOW_UPDATE_STATUS_ERROR_MESSAGE = 'You are not allowed to set the status field.';
|
||||||
|
export const NOT_ALLOW_UPDATE_TIMELINE_TYPE_ERROR_MESSAGE =
|
||||||
|
'You cannot convert a Timeline template to a timeline, or a timeline to a Timeline template.';
|
||||||
export const UPDAT_TIMELINE_VIA_IMPORT_NOT_ALLOWED_ERROR_MESSAGE =
|
export const UPDAT_TIMELINE_VIA_IMPORT_NOT_ALLOWED_ERROR_MESSAGE =
|
||||||
'Update timeline via import is not allowed';
|
'You cannot update a timeline via imports. Use the UI to modify existing timelines.';
|
||||||
|
|
||||||
const isUpdatingStatus = (
|
const isUpdatingStatus = (
|
||||||
isHandlingTemplateTimeline: boolean,
|
isHandlingTemplateTimeline: boolean,
|
||||||
|
|
Loading…
Reference in a new issue