Skip to content

ATLAS-5005 : Basic search entity filter validation #313

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

Closed
wants to merge 4 commits into from

Conversation

aditya-gupta36
Copy link
Contributor

@aditya-gupta36 aditya-gupta36 commented Mar 26, 2025

What changes were proposed in this pull request?

Validation for FilterCriteria parameter was absence while API call.

How was this patch tested?

unit tests, manual tests, API curl command testing done, Raised the patch for pre-commit build.
PC:- https://ci-builds.apache.org/job/Atlas/job/PreCommit-ATLAS-Build-Test/1792/console

@chaitalicod chaitalicod self-requested a review March 28, 2025 05:02
Arrays
.stream(testExpectations)
.map(testExpectation -> testExpectation.getSearchParameters())
.filter(params -> params.getEntityFilters() != null && params.getEntityFilters().getAttributeName() != null)
Copy link
Contributor

Choose a reason for hiding this comment

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

unit test method name is invalidOperator and filter condition is for AttributeName.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, it has been changed.

for invalid operator -> .filter(params -> params.getEntityFilters() != null && params.getEntityFilters().getOperator() != null)

for invalid attribute:-> .filter(params -> params.getEntityFilters() != null && params.getEntityFilters().getAttributeName() != null)

@aditya-gupta36 aditya-gupta36 deleted the ATLAS-5005 branch April 11, 2025 09:48
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