File tree Expand file tree Collapse file tree
x-pack/platform/plugins/shared/cases/server/saved_object_types/cases Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 */
77
88import type { SavedObjectsModelVersion } from '@kbn/core-saved-objects-server' ;
9- import { casesSchemaV5 } from '../schemas' ;
9+ import { casesSchemaV4 } from '../schemas' ;
1010
1111/**
1212 * Adds the incremental_id.keyword field to the cases SO.
@@ -28,6 +28,6 @@ export const modelVersion4: SavedObjectsModelVersion = {
2828 } ,
2929 ] ,
3030 schemas : {
31- forwardCompatibility : casesSchemaV5 . extends ( { } , { unknowns : 'ignore' } ) ,
31+ forwardCompatibility : casesSchemaV4 . extends ( { } , { unknowns : 'ignore' } ) ,
3232 } ,
3333} ;
Original file line number Diff line number Diff line change @@ -11,4 +11,3 @@ export { casesSchema as casesSchemaV1 } from './v1';
1111export { casesSchema as casesSchemaV2 } from './v2' ;
1212export { casesSchema as casesSchemaV3 } from './v3' ;
1313export { casesSchema as casesSchemaV4 } from './v4' ;
14- export { casesSchema as casesSchemaV5 } from './v5' ;
Original file line number Diff line number Diff line change 55 * 2.0.
66 */
77
8- export * from './v5 ' ;
8+ export * from './v4 ' ;
Original file line number Diff line number Diff line change @@ -14,4 +14,14 @@ export const casesSchema = casesSchemaV3.extends({
1414 time_to_acknowledge : schema . maybe ( schema . nullable ( schema . number ( ) ) ) ,
1515 time_to_investigate : schema . maybe ( schema . nullable ( schema . number ( ) ) ) ,
1616 time_to_resolve : schema . maybe ( schema . nullable ( schema . number ( ) ) ) ,
17+ incremental_id : schema . maybe (
18+ schema . nullable (
19+ schema . oneOf ( [
20+ schema . number ( ) ,
21+ schema . object ( {
22+ keyword : schema . maybe ( schema . string ( ) ) ,
23+ } ) ,
24+ ] )
25+ )
26+ ) ,
1727} ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments