Skip to content

Commit

Permalink
Merge branch 'master' into hosts-overview-search-strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed Sep 7, 2020
2 parents 2129502 + 68a9838 commit 2e7b8fc
Show file tree
Hide file tree
Showing 29 changed files with 1,313 additions and 764 deletions.
2 changes: 1 addition & 1 deletion src/plugins/data/public/public.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,7 @@ export interface QueryState {
// Warning: (ae-missing-release-tag) "QueryStringInput" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const QueryStringInput: React.FC<Pick<Props_3, "query" | "prepend" | "size" | "placeholder" | "onChange" | "onBlur" | "onSubmit" | "indexPatterns" | "dataTestSubj" | "screenTitle" | "disableAutoFocus" | "persistedLog" | "bubbleSubmitEvent" | "languageSwitcherPopoverAnchorPosition" | "onChangeQueryInputFocus">>;
export const QueryStringInput: React.FC<Pick<Props_3, "query" | "prepend" | "size" | "className" | "placeholder" | "onChange" | "onBlur" | "onSubmit" | "indexPatterns" | "dataTestSubj" | "screenTitle" | "disableAutoFocus" | "persistedLog" | "bubbleSubmitEvent" | "languageSwitcherPopoverAnchorPosition" | "onChangeQueryInputFocus">>;

// @public (undocumented)
export type QuerySuggestion = QuerySuggestionBasic | QuerySuggestionField;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import React, { Component, RefObject, createRef } from 'react';
import { i18n } from '@kbn/i18n';

import classNames from 'classnames';
import {
EuiTextArea,
EuiOutsideClickDetector,
Expand Down Expand Up @@ -62,6 +62,7 @@ interface Props {
onSubmit?: (query: Query) => void;
dataTestSubj?: string;
size?: SuggestionsListSize;
className?: string;
}

interface State {
Expand Down Expand Up @@ -586,9 +587,12 @@ export class QueryStringInputUI extends Component<Props, State> {
'aria-owns': 'kbnTypeahead__items',
};
const ariaCombobox = { ...isSuggestionsVisible, role: 'combobox' };

const className = classNames(
'euiFormControlLayout euiFormControlLayout--group kbnQueryBar__wrap',
this.props.className
);
return (
<div className="euiFormControlLayout euiFormControlLayout--group kbnQueryBar__wrap">
<div className={className}>
{this.props.prepend}
<EuiOutsideClickDetector onOutsideClick={this.onOutsideClick}>
<div
Expand Down
3 changes: 1 addition & 2 deletions test/functional/apps/visualize/_vega_chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
const retry = getService('retry');
const browser = getService('browser');

// FLAKY: https://github.com/elastic/kibana/issues/75699
describe.skip('vega chart in visualize app', () => {
describe('vega chart in visualize app', () => {
before(async () => {
log.debug('navigateToApp visualize');
await PageObjects.visualize.navigateToNewVisualization();
Expand Down
3 changes: 2 additions & 1 deletion test/functional/page_objects/vega_chart_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ export function VegaChartPageProvider({
const aceGutter = await this.getAceGutterContainer();

await aceGutter.doubleClick();
await browser.pressKeys(Key.LEFT);
await browser.pressKeys(Key.RIGHT);
await browser.pressKeys(Key.LEFT);
await browser.pressKeys(Key.LEFT);
await browser.pressKeys(text);
}

Expand Down
4 changes: 2 additions & 2 deletions test/scripts/jenkins_security_solution_cypress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ source test/scripts/jenkins_test_setup_xpack.sh
echo " -> Running security solution cypress tests"
cd "$XPACK_DIR"

checks-reporter-with-killswitch "Security solution Cypress Tests" \
checks-reporter-with-killswitch "Security Solution Cypress Tests" \
node scripts/functional_tests \
--debug --bail \
--kibana-install-dir "$KIBANA_INSTALL_DIR" \
--config test/security_solution_cypress/config.ts
--config test/security_solution_cypress/cli_config.ts

echo ""
echo ""
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export async function getChartPreviewData(
const { rangeFilter } = buildFiltersFromCriteria(expandedAlertParams, timestampField);

const query = isGrouped
? getGroupedESQuery(expandedAlertParams, sourceConfiguration.configuration, indexPattern)
: getUngroupedESQuery(expandedAlertParams, sourceConfiguration.configuration, indexPattern);
? getGroupedESQuery(expandedAlertParams, timestampField, indexPattern)
: getUngroupedESQuery(expandedAlertParams, timestampField, indexPattern);

if (!query) {
throw new Error('ES query could not be built from the provided alert params');
Expand Down
Loading

0 comments on commit 2e7b8fc

Please sign in to comment.