Skip to content

Commit

Permalink
Merge branch 'main' into task/olm-4724-action-log-users-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ashokaditya authored Sep 20, 2022
2 parents df009ca + b5a35d7 commit bdab4f3
Show file tree
Hide file tree
Showing 337 changed files with 13,942 additions and 3,631 deletions.
6 changes: 5 additions & 1 deletion .buildkite/scripts/steps/scalability/benchmarking.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ checkout_and_compile_load_runner() {

upload_test_results() {
cd "${KIBANA_DIR}"
echo "--- Archive Gatling reports and upload as build artifacts"
echo "Upload server logs as build artifacts"
tar -czf server-logs.tar.gz data/ftr_servers_logs/**/*
buildkite-agent artifact upload server-logs.tar.gz
echo "--- Upload Gatling reports as build artifacts"
tar -czf "scalability_test_report.tar.gz" --exclude=simulation.log -C kibana-load-testing/target gatling
buildkite-agent artifact upload "scalability_test_report.tar.gz"
cd "${LATEST_RUN_ARTIFACTS_DIR}"
Expand Down Expand Up @@ -115,6 +118,7 @@ for journey in scalability_traces/server/*; do
node scripts/functional_tests \
--config x-pack/test/performance/scalability/config.ts \
--kibana-install-dir "$KIBANA_BUILD_LOCATION" \
--logToFile \
--debug
done

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"@elastic/datemath": "5.0.3",
"@elastic/elasticsearch": "npm:@elastic/[email protected]",
"@elastic/ems-client": "8.3.3",
"@elastic/eui": "63.0.6",
"@elastic/eui": "64.0.4",
"@elastic/filesaver": "1.1.2",
"@elastic/node-crypto": "1.2.1",
"@elastic/numeral": "^2.5.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ export type {
SavedObjectsBulkUpdateOptions,
SavedObjectsBulkResolveResponse,
SavedObjectsBulkCreateObject,
SavedObjectsBulkDeleteOptions,
SavedObjectsBulkDeleteResponseItem,
SavedObjectsBulkDeleteResponse,
} from './src/apis';
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* 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 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/

import { SavedObjectError } from '@kbn/core-saved-objects-common';

/** @public */
export interface SavedObjectsBulkDeleteOptions {
force?: boolean;
}

/** @public */
export interface SavedObjectsBulkDeleteResponseItem {
id: string;
type: string;
success: boolean;
error?: SavedObjectError;
}

/** @public */
export interface SavedObjectsBulkDeleteResponse {
statuses: SavedObjectsBulkDeleteResponseItem[];
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ export type {
} from './find';
export type { ResolvedSimpleSavedObject } from './resolve';
export type { SavedObjectsUpdateOptions } from './update';
export type {
SavedObjectsBulkDeleteOptions,
SavedObjectsBulkDeleteResponseItem,
SavedObjectsBulkDeleteResponse,
} from './bulk_delete';
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ import type {
SavedObjectsFindOptions,
SavedObjectsUpdateOptions,
SavedObjectsDeleteOptions,
SavedObjectsBulkDeleteResponse,
SavedObjectsBulkDeleteOptions,
} from './apis';

import type { SimpleSavedObject } from './simple_saved_object';

/**
Expand Down Expand Up @@ -52,6 +55,17 @@ export interface SavedObjectsClientContract {
*/
delete(type: string, id: string, options?: SavedObjectsDeleteOptions): Promise<{}>;

/**
* Deletes multiple documents at once
* @param objects - an array of objects containing id, type
* @param options - optional force argument to force deletion of objects in a namespace other than the scoped client
* @returns The bulk delete result for the saved objects for the given types and ids.
*/
bulkDelete(
objects: SavedObjectTypeIdTuple[],
options?: SavedObjectsBulkDeleteOptions
): Promise<SavedObjectsBulkDeleteResponse>;

/**
* Search for objects
*
Expand Down
Loading

0 comments on commit bdab4f3

Please sign in to comment.