Skip to content

Commit 4979420

Browse files
authored
Merge branch 'main' into prevent-creating-default-synthetics-rules-without-connectors-being-defined
2 parents 8ae82ad + 3f316e7 commit 4979420

File tree

18 files changed

+248
-89
lines changed

18 files changed

+248
-89
lines changed

.buildkite/pipeline-utils/ci-stats/pick_test_group_run_order.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ export async function pickTestGroupRunOrder() {
507507
key: 'jest',
508508
agents: {
509509
...expandAgentQueue('n2-4-spot'),
510-
diskSizeGb: 85,
510+
diskSizeGb: 100,
511511
},
512512
env: {
513513
SCOUT_TARGET_TYPE: 'local',

.buildkite/pipelines/on_merge.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ steps:
1010
imageProject: elastic-images-prod
1111
provider: gcp
1212
machineType: n2-standard-2
13-
diskSizeGb: 85
13+
diskSizeGb: 100
1414
retry:
1515
automatic:
1616
- exit_status: '*'
@@ -40,7 +40,7 @@ steps:
4040
provider: gcp
4141
machineType: n2-highcpu-8
4242
preemptible: true
43-
diskSizeGb: 85
43+
diskSizeGb: 100
4444
timeout_in_minutes: 60
4545
retry:
4646
automatic:
@@ -55,7 +55,7 @@ steps:
5555
provider: gcp
5656
machineType: n2-standard-2
5757
preemptible: true
58-
diskSizeGb: 85
58+
diskSizeGb: 100
5959
timeout_in_minutes: 60
6060
retry:
6161
automatic:
@@ -70,7 +70,7 @@ steps:
7070
provider: gcp
7171
machineType: n2-standard-16
7272
preemptible: true
73-
diskSizeGb: 85
73+
diskSizeGb: 100
7474
timeout_in_minutes: 60
7575
retry:
7676
automatic:
@@ -85,7 +85,7 @@ steps:
8585
provider: gcp
8686
machineType: n2-standard-32
8787
preemptible: true
88-
diskSizeGb: 85
88+
diskSizeGb: 100
8989
timeout_in_minutes: 60
9090
retry:
9191
automatic:
@@ -102,7 +102,7 @@ steps:
102102
diskType: 'hyperdisk-balanced'
103103
preemptible: true
104104
spotZones: us-central1-a,us-central1-b,us-central1-c
105-
diskSizeGb: 85
105+
diskSizeGb: 100
106106
timeout_in_minutes: 60
107107
retry:
108108
automatic:
@@ -134,7 +134,7 @@ steps:
134134
provider: gcp
135135
machineType: n2-highmem-4
136136
preemptible: true
137-
diskSizeGb: 85
137+
diskSizeGb: 100
138138
timeout_in_minutes: 80
139139
retry:
140140
automatic:
@@ -150,7 +150,7 @@ steps:
150150
imageProject: elastic-images-prod
151151
provider: gcp
152152
machineType: n2-standard-2
153-
diskSizeGb: 85
153+
diskSizeGb: 100
154154
timeout_in_minutes: 10
155155
depends_on:
156156
- build
@@ -167,7 +167,7 @@ steps:
167167
imageProject: elastic-images-prod
168168
provider: gcp
169169
machineType: n2-standard-2
170-
diskSizeGb: 85
170+
diskSizeGb: 100
171171
timeout_in_minutes: 10
172172
env:
173173
JEST_UNIT_SCRIPT: '.buildkite/scripts/steps/test/jest.sh'
@@ -185,7 +185,7 @@ steps:
185185
imageProject: elastic-images-prod
186186
provider: gcp
187187
machineType: n2-standard-4
188-
diskSizeGb: 85
188+
diskSizeGb: 100
189189
key: build_scout_tests
190190
timeout_in_minutes: 10
191191
depends_on:

.buildkite/pipelines/pull_request/base.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ steps:
44
timeout_in_minutes: 10
55
agents:
66
machineType: n2-standard-2
7-
diskSizeGb: 85
7+
diskSizeGb: 100
88

99
- wait
1010

@@ -27,7 +27,7 @@ steps:
2727
agents:
2828
machineType: n2-highcpu-8
2929
preemptible: true
30-
diskSizeGb: 85
30+
diskSizeGb: 100
3131
key: quick_checks
3232
timeout_in_minutes: 60
3333
retry:
@@ -41,7 +41,7 @@ steps:
4141
agents:
4242
machineType: n2-standard-2
4343
preemptible: true
44-
diskSizeGb: 85
44+
diskSizeGb: 100
4545
timeout_in_minutes: 60
4646
retry:
4747
automatic:
@@ -53,7 +53,7 @@ steps:
5353
agents:
5454
machineType: n2-standard-16
5555
preemptible: true
56-
diskSizeGb: 85
56+
diskSizeGb: 100
5757
key: linting
5858
timeout_in_minutes: 60
5959
retry:
@@ -66,7 +66,7 @@ steps:
6666
agents:
6767
machineType: n2-standard-32
6868
preemptible: true
69-
diskSizeGb: 85
69+
diskSizeGb: 100
7070
key: linting_with_types
7171
timeout_in_minutes: 60
7272
retry:
@@ -93,7 +93,7 @@ steps:
9393
diskType: 'hyperdisk-balanced'
9494
preemptible: true
9595
spotZones: us-central1-a,us-central1-b,us-central1-c
96-
diskSizeGb: 85
96+
diskSizeGb: 100
9797
key: check_types
9898
timeout_in_minutes: 60
9999
retry:
@@ -107,7 +107,7 @@ steps:
107107
label: Mark CI Stats as ready
108108
agents:
109109
machineType: n2-standard-2
110-
diskSizeGb: 85
110+
diskSizeGb: 100
111111
timeout_in_minutes: 10
112112
depends_on:
113113
- build
@@ -122,7 +122,7 @@ steps:
122122
agents:
123123
machineType: n2-highmem-4
124124
preemptible: true
125-
diskSizeGb: 85
125+
diskSizeGb: 100
126126
key: build_api_docs
127127
timeout_in_minutes: 90
128128
retry:

.buildkite/pipelines/pull_request/pick_test_groups.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ steps:
33
label: 'Pick Test Group Run Order'
44
agents:
55
machineType: n2-standard-2
6-
diskSizeGb: 85
6+
diskSizeGb: 100
77
timeout_in_minutes: 10
88
env:
99
JEST_UNIT_SCRIPT: '.buildkite/scripts/steps/test/jest.sh'

.buildkite/pipelines/pull_request/prompt_changes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ steps:
44
agents:
55
machineType: n2-standard-2
66
preemptible: true
7-
diskSizeGb: 85
7+
diskSizeGb: 100
88
timeout_in_minutes: 10
99
retry:
1010
automatic:

src/platform/plugins/shared/console/server/lib/spec_definitions/js/mappings.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import type { SpecDefinitionsService } from '../../../services';
1111

12-
import { BOOLEAN } from './shared';
12+
import { BOOLEAN, ChunkingSettings } from './shared';
1313

1414
export const mappings = (specService: SpecDefinitionsService) => {
1515
specService.addEndpointDescription('put_mapping', {
@@ -117,14 +117,7 @@ export const mappings = (specService: SpecDefinitionsService) => {
117117
DenseVectorIndexOptions,
118118
],
119119
},
120-
chunking_settings: {
121-
strategy: {
122-
__one_of: ['sentence', 'word', 'none'],
123-
},
124-
max_chunk_size: 250,
125-
sentence_overlap: 1,
126-
overlap: 1,
127-
},
120+
chunking_settings: ChunkingSettings,
128121
analyzer: 'standard',
129122
search_analyzer: 'standard',
130123
include_in_all: {

src/platform/plugins/shared/console/server/lib/spec_definitions/js/retriever.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*/
99

1010
import type { SpecDefinitionsService } from '../../../services';
11+
import { ChunkingSettings } from './shared';
1112

1213
export const retriever = (specService: SpecDefinitionsService) => {
1314
specService.addGlobalAutocompleteRules('retriever', {
@@ -149,6 +150,7 @@ export const retriever = (specService: SpecDefinitionsService) => {
149150
inference_id: '',
150151
inference_text: '',
151152
field: '',
153+
chunk_rescorer: {},
152154
},
153155
retriever: {
154156
__scope_link: '.',
@@ -161,6 +163,10 @@ export const retriever = (specService: SpecDefinitionsService) => {
161163
filter: {
162164
__scope_link: 'GLOBAL.query',
163165
},
166+
chunk_rescorer: {
167+
size: 1,
168+
chunking_settings: ChunkingSettings,
169+
},
164170
},
165171
});
166172
};

src/platform/plugins/shared/console/server/lib/spec_definitions/js/shared.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,12 @@
1010
export const BOOLEAN = Object.freeze({
1111
__one_of: [true, false],
1212
});
13+
14+
export const ChunkingSettings = {
15+
strategy: {
16+
__one_of: ['sentence', 'word', 'none', 'recursive'],
17+
},
18+
max_chunk_size: 250,
19+
sentence_overlap: 1,
20+
overlap: 1,
21+
};

src/platform/plugins/shared/dashboard/public/dashboard_app/url/bwc/extract_panels_state.test.ts

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,49 @@ describe('extractPanelsState', () => {
103103
});
104104
});
105105

106+
describe('8.19', () => {
107+
test('should migrate panels in sections', () => {
108+
const { panels } = extractPanelsState({
109+
panels: [
110+
{
111+
title: 'Section 1',
112+
gridData: {},
113+
panels: [
114+
{
115+
embeddableConfig: {
116+
timeRange: {
117+
from: 'now-7d/d',
118+
to: 'now',
119+
},
120+
},
121+
gridData: {},
122+
type: 'map',
123+
},
124+
],
125+
},
126+
],
127+
});
128+
expect(panels).toEqual([
129+
{
130+
title: 'Section 1',
131+
grid: {},
132+
panels: [
133+
{
134+
config: {
135+
timeRange: {
136+
from: 'now-7d/d',
137+
to: 'now',
138+
},
139+
},
140+
grid: {},
141+
type: 'map',
142+
},
143+
],
144+
},
145+
]);
146+
});
147+
});
148+
106149
describe('< 8.19 panels state', () => {
107150
test('should move id and title to config', () => {
108151
const { panels } = extractPanelsState({

src/platform/plugins/shared/dashboard/public/dashboard_app/url/bwc/extract_panels_state.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ export function extractPanelsState(state: { [key: string]: unknown }): {
5656
const standardizedPanels: DashboardState['panels'] = panels.map((legacyPanel) => {
5757
const panel = typeof legacyPanel === 'object' ? { ...legacyPanel } : {};
5858

59+
if (panel.panels) {
60+
const { panels: sectionPanels, savedObjectReferences: sectionPanelReferences } =
61+
extractPanelsState({ panels: panel.panels });
62+
savedObjectReferences.push(...(sectionPanelReferences ?? []));
63+
panel.panels = sectionPanels;
64+
}
65+
5966
// < 8.17 panels state stored panelConfig as embeddableConfig
6067
if (panel?.embeddableConfig) {
6168
panel.config = panel.embeddableConfig;

0 commit comments

Comments
 (0)