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

Sonar code smell fixes in web package #4512

Merged
merged 13 commits into from
Feb 26, 2024

Conversation

ginoaugustine
Copy link
Member

  1. Created a new Builder for search helper class and used that for created search helper instance( This was done to reduce number of parameters passed to constructor)
  2. Reduced complexity of methods in search helper and utl classes

Signed-off-by: Gino Augustine <ginoaugustine@gmail.com>
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Dec 10, 2023
Signed-off-by: Gino Augustine <ginoaugustine@gmail.com>
@ginoaugustine ginoaugustine marked this pull request as ready for review December 13, 2023 14:55
Copy link
Member

@vladak vladak left a comment

Choose a reason for hiding this comment

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

found a bunch of nits. Will do more in depth review for the second pass.

Signed-off-by: Gino Augustine <ginoaugustine@gmail.com>
Copy link
Member

@vladak vladak left a comment

Choose a reason for hiding this comment

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

the ErrorMessageCollector needs some clarification w.r.t. the double prefix. Also, a test case for this class would be welcome - to see in examples how it works in practice.

@ginoaugustine ginoaugustine added the Sonar problems found by Sonar static analyzer label Feb 16, 2024
@ginoaugustine
Copy link
Member Author

Removed double prefix and added a UT class to test these changes

Updated test case assert based on review comments
Copy link
Member

@vladak vladak left a comment

Choose a reason for hiding this comment

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

fix the nit and this is good to go

@vladak
Copy link
Member

vladak commented Feb 23, 2024

Also, some level of UI testing would be useful for this change, I believe. In particular of the slider for the search results.

@vladak vladak merged commit 1f50206 into oracle:master Feb 26, 2024
9 checks passed
@ginoaugustine ginoaugustine deleted the sonarwebpackage branch February 27, 2024 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement. Sonar problems found by Sonar static analyzer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants