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

Performance improvements for custom key validation in Event, and replacement with StringUtils.isNumeric #728

Merged
merged 3 commits into from
Dec 14, 2021

Conversation

graytaylor0
Copy link
Member

@graytaylor0 graytaylor0 commented Dec 13, 2021

Description

Cherry picked commits for custom key validation in Event and StringUtils.isNumeric

Issues Resolved

Check List

  • New functionality includes testing.
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…ed RandomStringSource (opensearch-project#706)

* Refactored event `checkKey` to use pre-compiled regex pattern

Signed-off-by: Taylor Gray <[email protected]>
…oject#711)

* Swapped JacksonEvent isNumeric with StringUtils.isNumeric

Signed-off-by: Taylor Gray <[email protected]>
…stom validation (opensearch-project#725)

Removed regex key validation and replaced it with custom ascii/character validation. Added max key length of 2048

Signed-off-by: Taylor Gray <[email protected]>
@graytaylor0 graytaylor0 requested a review from a team as a code owner December 13, 2021 20:57
@graytaylor0 graytaylor0 changed the title Performance changes Performance improvements for custom key validation in Event, and replacement with StringUtils.isNumeric Dec 13, 2021
@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (1.2@3dad174). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##             1.2     #728   +/-   ##
======================================
  Coverage       ?   91.54%           
  Complexity     ?      607           
======================================
  Files          ?       74           
  Lines          ?     1798           
  Branches       ?      154           
======================================
  Hits           ?     1646           
  Misses         ?      116           
  Partials       ?       36           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3dad174...9218b9c. Read the comment docs.

@graytaylor0 graytaylor0 merged commit ad08e43 into opensearch-project:1.2 Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants