Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
d031a84
Fix SO tests
cnasikas Feb 11, 2026
f2aa396
Update notification policy schema
kdelemme Feb 13, 2026
a89e704
Add bulkGetByIds
kdelemme Feb 13, 2026
118b2c4
Update integration tests
kdelemme Feb 13, 2026
1e133bc
Merge branch 'alerting_v2' into alertingv2/update-notification-policy
kdelemme Feb 16, 2026
c4fd0ed
Replace workflow_id with destinations
kdelemme Feb 16, 2026
2ef9b40
Changes from node scripts/eslint_all_files --no-cache --fix
kibanamachine Feb 16, 2026
33c3db2
Update limits and fix mappings
kdelemme Feb 16, 2026
728daf6
Fix test only again
kdelemme Feb 16, 2026
d16a959
Changes from node scripts/check_mappings_update --fix
kibanamachine Feb 16, 2026
39e6c09
update imports / exports
kdelemme Feb 16, 2026
1ef3c49
Changes from node scripts/jest_integration -u src/core/server/integra…
kibanamachine Feb 16, 2026
4967b92
Merge branch 'alerting_v2' into alertingv2/update-notification-policy
kdelemme Feb 18, 2026
e366036
Swallow errors in getPolicies method
kdelemme Feb 18, 2026
b2d8511
Merge branch 'alerting_v2' into alertingv2/update-notification-policy
kdelemme Feb 19, 2026
f49c81e
Merge branch 'alerting_v2' into alertingv2/update-notification-policy
kdelemme Feb 19, 2026
c1fbaa2
Changes from node scripts/jest_integration -u src/core/server/integra…
kibanamachine Feb 19, 2026
fea7ba5
feat(rna): add getRules client method (#253355)
kdelemme Feb 19, 2026
d3adf5c
Merge branch 'alerting_v2' into alertingv2/update-notification-policy
kdelemme Feb 23, 2026
9d859b7
Merge branch 'alerting_v2' into alertingv2/update-notification-policy
kdelemme Feb 24, 2026
b86835f
harness integration test
kdelemme Feb 24, 2026
77176bf
add test
kdelemme Feb 25, 2026
0c6d2e9
use pretry
kdelemme Feb 25, 2026
bd75dd5
Move validation into policy client
kdelemme Feb 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/kbn-check-saved-objects-cli/current_fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,12 @@
"createdAt",
"createdBy",
"description",
"destinations",
"destinations.id",
"destinations.type",
"name",
"updatedAt",
"updatedBy",
"workflow_id"
"updatedBy"
],
"alerting_rule": [
"createdAt",
Expand Down
12 changes: 10 additions & 2 deletions packages/kbn-check-saved-objects-cli/current_mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,16 @@
"updatedBy": {
"type": "keyword"
},
"workflow_id": {
"type": "keyword"
"destinations": {
"type": "object",
"properties": {
"type": {
"type": "keyword"
},
"id": {
"type": "keyword"
}
}
}
}
},
Expand Down
162 changes: 81 additions & 81 deletions packages/kbn-optimizer/limits.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
pageLoadAssetSize:
actions: 20000
advancedSettings: 6196
actions: 89453
advancedSettings: 55308
agentBuilder: 96771
agentBuilderPlatform: 64202
aiAssistantManagementSelection: 13590
aiAssistantManagementSelection: 99345
aiops: 15227
alerting: 22371
alertingVTwo: 362170
apm: 38573
apmSourcesAccess: 2278
apmSourcesAccess: 11772
automaticImport: 12162
automaticImportVTwo: 25753
banners: 4087
canvas: 14881
cases: 225900
charts: 40269
cloud: 10648
cloudConnect: 9149
cloudDataMigration: 5687
cloudDefend: 8146
cloudExperiments: 103984
cloudFullStory: 4752
cloudLinks: 36333
charts: 816985
cloud: 43226
cloudConnect: 47037
cloudDataMigration: 26400
cloudDefend: 65558
cloudExperiments: 236792
cloudFullStory: 21134
cloudLinks: 308042
cloudSecurityPosture: 19743
console: 31191
contentConnectors: 33014
contentManagement: 8350
contentManagement: 51579
controls: 10300
core: 556473
cps: 5930
cps: 180331
crossClusterReplication: 12662
customIntegrations: 11715
customIntegrations: 51323
dashboard: 20000
dashboardAgent: 5135
dashboardMarkdown: 4994
data: 494550
dataQuality: 11469
datasetQuality: 49315
dataSources: 6748
dataUsage: 8743
dataUsage: 36780
dataViewEditor: 7735
dataViewFieldEditor: 26024
dataViewManagement: 6250
dataViews: 65000
dataViews: 288957
dataVisualizer: 32778
developerToolbar: 4467
devTools: 8109
discover: 28284
discoverEnhanced: 5517
discoverShared: 2322
discoverShared: 17308
elasticAssistant: 338870
elasticAssistantSharedState: 4881
embeddable: 16638
Expand All @@ -58,52 +58,52 @@ pageLoadAssetSize:
esql: 19247
esqlDataGrid: 10209
esUiShared: 101220
eventAnnotation: 22361
eventAnnotation: 92471
eventAnnotationListing: 13164
exploratoryView: 45042
expressionGauge: 15748
expressionHeatmap: 17563
expressionGauge: 741272
expressionHeatmap: 744397
expressionLegacyMetricVis: 11834
expressionMetricVis: 17559
expressionMetricVis: 746696
expressionPartitionVis: 29826
expressions: 105076
expressions: 475693
expressionTagcloud: 14009
expressionXY: 45000
features: 4145
features: 19082
feedback: 7000
fieldFormats: 64634
fieldFormats: 296759
fieldsMetadata: 4901
files: 6037
filesManagement: 5208
files: 34007
filesManagement: 26552
fileUpload: 22957
fleet: 209495
genAiSettings: 5663
globalSearch: 6890
globalSearchBar: 26330
globalSearchProviders: 4646
genAiSettings: 25263
globalSearch: 37669
globalSearchBar: 231980
globalSearchProviders: 20180
graph: 9924
grokdebugger: 5484
grokdebugger: 27982
home: 13091
imageEmbeddable: 6272
indexLifecycleManagement: 29818
indexManagement: 35522
inference: 10368
inference: 144842
infra: 56302
ingestPipelines: 17866
ingestPipelines: 106341
inputControlVis: 7660
inspectComponent: 4900
inspector: 17954
interactiveSetup: 36524
intercepts: 21066
kibanaOverview: 6339
kibanaReact: 21501
kibanaUsageCollection: 1736
kibanaUtils: 54161
kql: 15485
interactiveSetup: 296528
intercepts: 135891
kibanaOverview: 30904
kibanaReact: 190987
kibanaUsageCollection: 11529
kibanaUtils: 278045
kql: 85570
kubernetesSecurity: 6807
lens: 71718
licenseManagement: 8265
licensing: 10073
licensing: 44437
links: 8620
lists: 5093
logsDataAccess: 7900
Expand All @@ -112,10 +112,10 @@ pageLoadAssetSize:
maintenanceWindows: 8775
management: 12951
maps: 45917
mapsEms: 6734
mapsEms: 34798
metricsDataAccess: 44950
ml: 89000
mockIdpPlugin: 7544
mockIdpPlugin: 48811
monitoring: 28983
navigation: 11814
newsfeed: 11369
Expand All @@ -124,61 +124,61 @@ pageLoadAssetSize:
observabilityAgentBuilder: 9172
observabilityAIAssistant: 61180
observabilityAIAssistantApp: 18012
observabilityAiAssistantManagement: 7126
observabilityAiAssistantManagement: 31738
observabilityLogsExplorer: 4918
observabilityOnboarding: 12872
observabilityOnboarding: 66523
observabilityShared: 75115
osquery: 47422
painlessLab: 6299
painlessLab: 26565
presentationPanel: 11418
presentationUtil: 8985
productDocBase: 5678
productIntercept: 9860
productDocBase: 131149
productIntercept: 42599
profiling: 20716
reindexService: 3469
remoteClusters: 10170
reindexService: 16740
remoteClusters: 51408
reporting: 46602
rollup: 12692
runtimeFields: 11828
sampleDataIngest: 2640
savedObjects: 11735
savedObjectsFinder: 4319
savedObjectsManagement: 22390
savedObjectsTagging: 23144
savedObjectsTaggingOss: 2163
savedSearch: 11000
screenshotMode: 2351
screenshotting: 3252
rollup: 84166
runtimeFields: 61361
sampleDataIngest: 119801
savedObjects: 77696
savedObjectsFinder: 24204
savedObjectsManagement: 107244
savedObjectsTagging: 129006
savedObjectsTaggingOss: 11182
savedSearch: 55572
screenshotMode: 20135
screenshotting: 27377
searchAssistant: 6150
searchGettingStarted: 6678
searchHomepage: 7962
searchIndices: 9991
searchInferenceEndpoints: 8071
searchNavigation: 7404
searchNotebooks: 18826
searchNavigation: 37873
searchNotebooks: 92423
searchPlayground: 12122
searchprofiler: 6509
searchprofiler: 29753
searchQueryRules: 6689
searchSynonyms: 6371
security: 79627
securitySolution: 187862
securitySolutionEss: 38689
securitySolutionServerless: 52082
serverless: 7451
serverless: 45807
serverlessObservability: 18343
serverlessSearch: 26287
serverlessWorkplaceAI: 5078
sessionView: 47912
share: 58677
serverlessWorkplaceAI: 17075
sessionView: 249610
share: 370319
slo: 36645
snapshotRestore: 22068
snapshotRestore: 103374
spaces: 30016
stackAlerts: 31499
stackConnectors: 85421
streams: 10000
streams: 63765
streamsApp: 25375
synthetics: 31571
telemetry: 25755
telemetry: 138343
telemetryManagementSection: 5522
timelines: 192134
transform: 16515
Expand All @@ -187,21 +187,21 @@ pageLoadAssetSize:
uiActionsEnhanced: 17373
unifiedDocViewer: 14513
unifiedSearch: 19500
upgradeAssistant: 6898
upgradeAssistant: 30483
uptime: 48171
urlDrilldown: 6812
urlForwarding: 7349
usageCollection: 5655
ux: 8376
visDefaultEditor: 35080
visTypeGauge: 13006
visTypeHeatmap: 12457
visTypeMarkdown: 8817
visTypeMetric: 11966
visTypePie: 9939
visTypeTable: 18999
visTypeTagcloud: 7876
visTypeTimelion: 12512
visTypeGauge: 60647
visTypeHeatmap: 56942
visTypeMarkdown: 53619
visTypeMetric: 54808
visTypePie: 49398
visTypeTable: 87897
visTypeTagcloud: 37943
visTypeTimelion: 65044
visTypeTimeseries: 20000
visTypeVega: 38538
visTypeVislib: 14679
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('checking migration metadata changes on all registered SO types', () =>
"action_task_params": "6751dc8a4707a432bc9b90f5a025f183aefc84bca5ec26c29ce6939b24ea81e4",
"ad_hoc_run_params": "9c372f2a8f8b468e9b699a6df633c7f14fab7f13216c9ec160813e75bae56098",
"alert": "ab52f596c3499231d37ab4c0ee346010789a9a0b9d64d61a6631986e1e62b2aa",
"alerting_notification_policy": "81fc65ed6652cd1196f83b4222f227e8c7a3f646a6e044f63a2d82f12dacbfb0",
"alerting_notification_policy": "e46b4bb9a744d9421988b839d6701f98f4d8d04af842405097a5443f292a8f94",
"alerting_rule": "8f80d561d2b3caf07925be4a5fff52d8433ca3f3f204723f6f3e9e32dbce7f42",
"alerting_rule_template": "a26521005d8a51af336ec95a2097c4bd073980c050e3c675cec3851acff78fd9",
"api_key_pending_invalidation": "c1c0f5cbb1175a7d25c762b290d9d46c04557e4a8ae6a2c7bf77b8fd99b2146d",
Expand Down Expand Up @@ -298,9 +298,9 @@ describe('checking migration metadata changes on all registered SO types', () =>
"alert|warning: The SO type owner should ensure these transform functions DO NOT mutate after they are defined.",
"==============================================================================================================",
"alerting_notification_policy|global: a9d187f26ea3164d4850986b6aedc82e209f668b",
"alerting_notification_policy|mappings: 92cb4995337ed37008b0aaa5922dee023821aee5",
"alerting_notification_policy|mappings: 45ca582231539f8a20d7780837a52c66682acf6c",
"alerting_notification_policy|schemas: da39a3ee5e6b4b0d3255bfef95601890afd80709",
"alerting_notification_policy|10.1.0: decd8733c771f6e7dbbf0148ac4b851a496da3c690ae7998a25296d08e750f7a",
"alerting_notification_policy|10.1.0: 8b0fc9a03a07dcb3cc9bdffe5729cfafd601102418dbae2508bf51bc8d8db147",
"=====================================================================================================",
"alerting_rule|global: e78adb1490c02adb4c705491c87e08332c0f668e",
"alerting_rule|mappings: 05a17ab7488d3b86ec25c724f21a19cd7ebb9778",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

import { z } from '@kbn/zod';
import { validateDuration } from './validation';

const durationSchema = z.string().superRefine((value, ctx) => {
const error = validateDuration(value);
if (error) {
ctx.addIssue({ code: z.ZodIssueCode.custom, message: error });
}
});

export { durationSchema };
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@
export * from './rule_data_schema';
export type { RuleResponse } from './rule_response';
export { validateDuration, validateEsqlQuery } from './validation';
export * from './notification_policy_data_schema';
export type { NotificationPolicyResponse } from './notification_policy_response';
Loading