Skip to content

Conversation

@droberts195
Copy link

It turns out that there is a situation where the
regex for a category definition will not match all
the examples: where one or more examples have been
truncated.

Previously we had an assertion that this would never
happen. This only affected development, as in
production assertions are disabled. However, it
makes sense to adjust the assertion and comment to
reflect reality.

It turns out that there _is_ a situation where the
regex for a category definition will not match all
the examples: where one or more examples have been
truncated.

Previously we had an assertion that this would never
happen.  This only affected development, as in
production assertions are disabled.  However, it
makes sense to adjust the assertion and comment to
reflect reality.
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (:ml)

Copy link
Contributor

@dimitris-athanasiou dimitris-athanasiou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@droberts195 droberts195 merged commit f6e0d74 into elastic:master Nov 24, 2020
@droberts195 droberts195 deleted the adjust_non_matching_example_assert branch November 24, 2020 15:26
droberts195 pushed a commit that referenced this pull request Nov 24, 2020
It turns out that there _is_ a situation where the
regex for a category definition will not match all
the examples: where one or more examples have been
truncated.

Previously we had an assertion that this would never
happen.  This only affected development, as in
production assertions are disabled.  However, it
makes sense to adjust the assertion and comment to
reflect reality.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants