Bump eslint from 9.39.4 to 10.1.0 in /src/Exceptionless.Web/ClientApp #5302
build.yaml
on: pull_request
Annotations
4 errors
|
test-client
Process completed with exit code 1.
|
|
build-and-push-docker
Process completed with exit code 1.
|
|
test-api
Process completed with exit code 2.
|
|
Exceptionless.Tests.Repositories.EventRepositoryTests.RemoveAllByClientIpAndDateAsync:
tests/Exceptionless.Tests/Repositories/EventRepositoryTests.cs#L208
Foundatio.Repositories.Exceptions.QueryValidationException : FieldEquals cannot be used on field 'ip' because it is an analyzed text field with no .keyword sub-field.
A TermQuery on an analyzed text field produces unexpected results because Elasticsearch stores lowercased tokens, not the original text.
To fix this, either:
- Use FieldContains() for full-text token matching
- Add a .keyword sub-field to the field mapping in your index configuration:
m.Text(p => p.Name(f => f.Property).Fields(f => f.Keyword(k => k.Name("keyword"))))
|