Skip to content

Conversation

@mridula-s109
Copy link
Contributor

Description:
This is a follow-up to PR #122823, which introduced query rules. In this PR, we remove unnecessary logger calls from test files to keep test outputs clean and maintainable.

Changes:
✅ Removed all logger.info(), logger.debug(), and other logging calls from test files.
✅ Verified that all tests pass successfully after the cleanup.

@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label v9.1.0 labels Mar 12, 2025
@mridula-s109 mridula-s109 requested review from a team, Mikep86 and kderusso March 12, 2025 14:29
@mridula-s109 mridula-s109 added :SearchOrg/Relevance Label for the Search (solution/org) Relevance team and removed needs:triage Requires assignment of a team area label labels Mar 12, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/search-eng (Team:SearchOrg)

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/search-relevance (Team:Search - Relevance)

Copy link
Member

@kderusso kderusso left a comment

Choose a reason for hiding this comment

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

LGTM. Can you please do a pass through the original PR and see if any other regressions were introduced through that merge? Thanks!

@mridula-s109
Copy link
Contributor Author

Can you please do a pass through the original PR and see if any other regressions were introduced through that merge? Thanks!

Thanks Kathleen. have checked and there are no regressions.

@mridula-s109 mridula-s109 enabled auto-merge (squash) March 12, 2025 15:14
@elasticsearchmachine
Copy link
Collaborator

Hi @mridula-s109, I've created a changelog YAML for you.

@Mikep86
Copy link
Contributor

Mikep86 commented Mar 12, 2025

We don't need a changelog entry for this. I changed the label to non-issue to remove it.

@mridula-s109 mridula-s109 merged commit 44a3ac4 into elastic:main Mar 12, 2025
16 of 17 checks passed
albertzaharovits pushed a commit to albertzaharovits/elasticsearch that referenced this pull request Mar 13, 2025
mridula-s109 added a commit to mridula-s109/elasticsearch that referenced this pull request Mar 13, 2025
(cherry picked from commit 44a3ac4)

# Conflicts:
#	x-pack/plugin/ent-search/src/test/java/org/elasticsearch/xpack/application/rules/QueryRuleTests.java
@mridula-s109
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.x

Questions ?

Please refer to the Backport tool documentation

mridula-s109 added a commit to mridula-s109/elasticsearch that referenced this pull request Mar 13, 2025
@mridula-s109
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.x

Questions ?

Please refer to the Backport tool documentation

jfreden pushed a commit to jfreden/elasticsearch that referenced this pull request Mar 13, 2025
@mridula-s109 mridula-s109 self-assigned this Mar 13, 2025
mridula-s109 added a commit that referenced this pull request Mar 13, 2025
… Criteria (#122823) | Removed logger and also fixed the nitpick comments (#124650) (#124758)

* Prevent Query Rule Creation with Invalid Numeric Match Criteria (#122823)

* SEARCH-802 - bug fixed - Query rules allows for creation of rules with invalid match criteria

* [CI] Auto commit changes from spotless

* Worked on the comments given in the PR

* [CI] Auto commit changes from spotless

* Fixed Integration tests

* [CI] Auto commit changes from spotless

* Made changes from the PR

* Update docs/changelog/122823.yaml

* [CI] Auto commit changes from spotless

* Fixed the duplicate code issue in queryRuleTests

* Refactored code to clean it up based on PR comments

* [CI] Auto commit changes from spotless

* Logger statements were removed

* Cleaned up the QueryRule tests

* [CI] Auto commit changes from spotless

* Update x-pack/plugin/ent-search/src/test/java/org/elasticsearch/xpack/application/EnterpriseSearchModuleTestUtils.java

Co-authored-by: Mike Pellegrini <[email protected]>

* [CI] Auto commit changes from spotless

---------

Co-authored-by: elasticsearchmachine <[email protected]>
Co-authored-by: Kathleen DeRusso <[email protected]>
Co-authored-by: Mike Pellegrini <[email protected]>
(cherry picked from commit f6538e8)

# Conflicts:
#	x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/EnterpriseSearchFeatures.java

* Removed logger and also fixed the nitpick comments (#124650)

(cherry picked from commit 44a3ac4)

* [CI] Auto commit changes from spotless

---------

Co-authored-by: elasticsearchmachine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :SearchOrg/Relevance Label for the Search (solution/org) Relevance team v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants