Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SIEM][Detection Engine][Lists] Moves getQueryFilter to common folder for use by both front and backend #70270

Merged
merged 3 commits into from
Jun 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ import {
buildNested,
} from './build_exceptions_query';
import {
EntriesArray,
EntryNested,
EntryExists,
EntryMatch,
EntryMatchAny,
EntryNested,
} from '../../../../../lists/common/schemas';
import { getExceptionListItemSchemaMock } from '../../../../../lists/common/schemas/response/exception_list_item_schema.mock';
EntriesArray,
} from '../../../lists/common/schemas';
import { getExceptionListItemSchemaMock } from '../../../lists/common/schemas/response/exception_list_item_schema.mock';

describe('build_exceptions_query', () => {
describe('getLanguageBooleanOperator', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { Language, Query } from '../../../../common/detection_engine/schemas/common/schemas';
import { Query as DataQuery } from '../../../../../../../src/plugins/data/server';
import { Query as DataQuery } from '../../../../../src/plugins/data/common';
import {
Entry,
ExceptionListItemSchema,
EntryMatch,
EntryMatchAny,
EntryNested,
Expand All @@ -19,7 +17,9 @@ import {
entriesMatch,
entriesNested,
entriesList,
} from '../../../../../lists/common/schemas';
ExceptionListItemSchema,
} from '../../../lists/common/schemas';
import { Language, Query } from './schemas/common/schemas';

type Operators = 'and' | 'or' | 'not';
type LuceneOperators = 'AND' | 'OR' | 'NOT';
Expand Down
Loading