Skip to content

Commit

Permalink
Merge branch '8.11' into backport/8.11/pr-167779
Browse files Browse the repository at this point in the history
  • Loading branch information
miltonhultgren authored Oct 5, 2023
2 parents 149cc51 + dcc264a commit 9090cbb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ const PLUGIN_DIR = Path.resolve(REPO_ROOT, 'plugins/foo_test_plugin');
const PLUGIN_BUILD_DIR = Path.resolve(PLUGIN_DIR, 'build');
const PLUGIN_ARCHIVE = Path.resolve(PLUGIN_BUILD_DIR, `fooTestPlugin-7.5.0.zip`);
const TMP_DIR = Path.resolve(__dirname, '__tmp__');
const CURRENT_BRANCH = loadJsonFile.sync<{ branch: string }>(
Path.resolve(REPO_ROOT, 'package.json')
).branch;

expect.addSnapshotSerializer(createReplaceSerializer(/[\d\.]+ sec/g, '<time>'));
expect.addSnapshotSerializer(createReplaceSerializer(/\d+(\.\d+)?[sm]/g, '<time>'));
Expand All @@ -35,6 +38,8 @@ beforeEach(async () => {
afterEach(async () => await del([PLUGIN_DIR, TMP_DIR]));

it('builds a generated plugin into a viable archive', async () => {
const branchSegmentInUrl = CURRENT_BRANCH === 'main' ? 'current' : CURRENT_BRANCH;

const generateProc = await execa(
process.execPath,
['scripts/generate_plugin', '-y', '--name', 'fooTestPlugin'],
Expand All @@ -54,7 +59,7 @@ it('builds a generated plugin into a viable archive', async () => {
};

expect(filterLogs(generateProc.all)).toMatchInlineSnapshot(`
"Kibana is currently running with legacy OpenSSL providers enabled! For details and instructions on how to disable see https://www.elastic.co/guide/en/kibana/current/production.html#openssl-legacy-provider
"Kibana is currently running with legacy OpenSSL providers enabled! For details and instructions on how to disable see https://www.elastic.co/guide/en/kibana/${branchSegmentInUrl}/production.html#openssl-legacy-provider
succ 🎉
Your plugin has been created in plugins/foo_test_plugin
Expand All @@ -74,7 +79,7 @@ it('builds a generated plugin into a viable archive', async () => {
);

expect(filterLogs(buildProc.all)).toMatchInlineSnapshot(`
"Kibana is currently running with legacy OpenSSL providers enabled! For details and instructions on how to disable see https://www.elastic.co/guide/en/kibana/current/production.html#openssl-legacy-provider
"Kibana is currently running with legacy OpenSSL providers enabled! For details and instructions on how to disable see https://www.elastic.co/guide/en/kibana/${branchSegmentInUrl}/production.html#openssl-legacy-provider
info deleting the build and target directories
info run bazel and build required artifacts for the optimizer
succ bazel run successfully and artifacts were created
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ discover-app {
position: relative;
overflow: hidden;
height: 100%;

.euiDataGrid__controls {
border-top: none;
}
}

.dscPageContent--centered {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

import React from 'react';
import { EuiTab, EuiTabs, useEuiPaddingSize, useEuiTheme } from '@elastic/eui';
import { EuiTab, EuiTabs, useEuiTheme } from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n-react';
import { css } from '@emotion/react';
import { SHOW_FIELD_STATISTICS } from '@kbn/discover-utils';
Expand All @@ -25,8 +25,7 @@ export const DocumentViewModeToggle = ({
const { uiSettings } = useDiscoverServices();

const tabsCss = css`
padding: 0 ${useEuiPaddingSize('s')};
border-bottom: ${viewMode === VIEW_MODE.AGGREGATED_LEVEL ? euiTheme.border.thin : 'none'};
padding: 0 ${euiTheme.size.s};
`;

const showViewModeToggle = uiSettings.get(SHOW_FIELD_STATISTICS) ?? false;
Expand All @@ -36,7 +35,7 @@ export const DocumentViewModeToggle = ({
}

return (
<EuiTabs size="s" css={tabsCss} data-test-subj="dscViewModeToggle" bottomBorder={false}>
<EuiTabs size="s" css={tabsCss} data-test-subj="dscViewModeToggle">
<EuiTab
isSelected={viewMode === VIEW_MODE.DOCUMENT_LEVEL}
onClick={() => setDiscoverViewMode(VIEW_MODE.DOCUMENT_LEVEL)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,8 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
});
});

describe('Edit rule with deleted connector', function () {
// FLAKY: https://github.com/elastic/kibana/issues/168027
describe.skip('Edit rule with deleted connector', function () {
const testRunUuid = uuidv4();

afterEach(async () => {
Expand Down

0 comments on commit 9090cbb

Please sign in to comment.