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

Guard against invalid sorting fields in report generation #458

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

Swiddis
Copy link
Collaborator

@Swiddis Swiddis commented Oct 25, 2024

Description

In some cases, the sorting field gets unwrapped from a nested list to just a list. I'm not sure why. But adding this guard clause would avoid further damage when it happens.

Issues Resolved

Resolves #371

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

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.

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
@Swiddis Swiddis added the bug Something isn't working label Oct 25, 2024
@Swiddis Swiddis changed the title Add unwrapped sorting guard Guard against invalid sorting fields in report generation Oct 25, 2024
Copy link
Member

@joshuali925 joshuali925 left a comment

Choose a reason for hiding this comment

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

thanks

Copy link
Contributor

@RyanL1997 RyanL1997 left a comment

Choose a reason for hiding this comment

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

The change itself LGTM, should we also fix the lint?

@Swiddis Swiddis merged commit 7f69dc4 into opensearch-project:main Nov 4, 2024
6 of 13 checks passed
@Swiddis Swiddis deleted the guard-sort-mismatch branch November 4, 2024 17:53
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 4, 2024
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
(cherry picked from commit 7f69dc4)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
joshuali925 pushed a commit that referenced this pull request Nov 11, 2024
(cherry picked from commit 7f69dc4)

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] On demand reports fail to generate a CSV file for download.
4 participants