Skip to content

Move off query_string #445

Move off query_string

Move off query_string #445

Triggered via pull request April 26, 2024 00:58
Status Failure
Total duration 1m 22s
Artifacts

pull-request.yaml

on: pull_request
lint-test-danger
1m 14s
lint-test-danger
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
pivot › should buildQuery for tagsQuery: packages/provider-elasticsearch/src/example-types/metricGroups/pivot.test.js#L1379
expect(received).toEqual(expected) // deep equality - Expected - 3 + Received + 10 @@ -14,14 +14,21 @@ }, }, "filters": Object { "filters": Object { "test": Object { - "query_string": Object { - "default_field": "Organization.Name", - "default_operator": "AND", + "bool": Object { + "minimum_should_match": 1, + "should": Array [ + Object { + "match": Object { + "Organization.Name": Object { "query": "test", + }, + }, + }, + ], }, }, }, }, }, at Object.toEqual (packages/provider-elasticsearch/src/example-types/metricGroups/pivot.test.js:1379:20)
limitResultsToCertainTags › should return truthy if found: packages/provider-elasticsearch/src/example-types/filters/tagsQuery.test.js#L33
TypeError: limitResultsToCertainTags is not a function at Object.limitResultsToCertainTags (packages/provider-elasticsearch/src/example-types/filters/tagsQuery.test.js:33:7)
addQuotesAndDistance › should work as `isPhrase` if text includes empty space: packages/provider-elasticsearch/src/example-types/filters/tagsQuery.test.js#L41
TypeError: addQuotesAndDistance is not a function at Object.addQuotesAndDistance (packages/provider-elasticsearch/src/example-types/filters/tagsQuery.test.js:41:12)
addQuotesAndDistance › should quote if is phrase: packages/provider-elasticsearch/src/example-types/filters/tagsQuery.test.js#L44
TypeError: addQuotesAndDistance is not a function at Object.addQuotesAndDistance (packages/provider-elasticsearch/src/example-types/filters/tagsQuery.test.js:44:12)
addQuotesAndDistance › should quote and not set distance if distance is 0: packages/provider-elasticsearch/src/example-types/filters/tagsQuery.test.js#L50
TypeError: addQuotesAndDistance is not a function at Object.addQuotesAndDistance (packages/provider-elasticsearch/src/example-types/filters/tagsQuery.test.js:50:7)
addQuotesAndDistance › should quote and set distance if distance is > 0: packages/provider-elasticsearch/src/example-types/filters/tagsQuery.test.js#L55
TypeError: addQuotesAndDistance is not a function at Object.addQuotesAndDistance (packages/provider-elasticsearch/src/example-types/filters/tagsQuery.test.js:55:7)
addQuotesAndDistance › should add ~1 for misspellings: packages/provider-elasticsearch/src/example-types/filters/tagsQuery.test.js#L59
TypeError: addQuotesAndDistance is not a function at Object.addQuotesAndDistance (packages/provider-elasticsearch/src/example-types/filters/tagsQuery.test.js:59:12)
replaceReservedChars › should replace reserved characters with empty space: packages/provider-elasticsearch/src/example-types/filters/tagsQuery.test.js#L66
TypeError: replaceReservedChars is not a function at Object.replaceReservedChars (packages/provider-elasticsearch/src/example-types/filters/tagsQuery.test.js:66:7)
replaceReservedChars › should escape reserved characters: packages/provider-elasticsearch/src/example-types/filters/tagsQuery.test.js#L72
TypeError: replaceReservedChars is not a function at Object.replaceReservedChars (packages/provider-elasticsearch/src/example-types/filters/tagsQuery.test.js:72:12)
joinTags › should return empty string if empty: packages/provider-elasticsearch/src/example-types/filters/tagsQuery.test.js#L80
TypeError: joinTags is not a function at Object.joinTags (packages/provider-elasticsearch/src/example-types/filters/tagsQuery.test.js:80:12)
lint-test-danger
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, wearerequired/lint-action@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.