-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
FE: Broker: Config: Implement search by the Value #3804
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello there malavmevada! 👋
Thank you and congrats 🎉 for opening your first PR on this project! ✨ 💖
We will try to review it soon!
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the search text should be case insensitive.
keyword.toLocaleLowerCase()
The key is in lowercase and because of that i think it is converting keyword into lowerCase. |
kafka-ui-react-app/src/components/Brokers/Broker/Configs/Configs.tsx
Outdated
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! |
kafka-ui-react-app/src/components/Brokers/Broker/Configs/Configs.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, we shouldn't convert the 'item' values to lowercase because if you observe, all the values under the 'name' key are in lowercase strings. However, for the 'item' key, we can have values in uppercase, lowercase, null, and numbers. Due to this diversity, I haven't changed the 'item' values to lowercase.
kafka-ui-react-app/src/components/Brokers/Broker/Configs/Configs.tsx
Outdated
Show resolved
Hide resolved
kafka-ui-react-app/src/components/Brokers/Broker/Configs/Configs.tsx
Outdated
Show resolved
Hide resolved
kafka-ui-react-app/src/components/Brokers/Broker/Configs/Configs.tsx
Outdated
Show resolved
Hide resolved
Changed keyword to lowercase in getData method.
@malavmevada there are some linter issues which prevent the build from succeeding, otherwise looks good |
Changed getData method spaces because of some issues in linter.
@Haarolean There are some issues regarding formatting the code in Linter. What should I do now ? |
I guess fixing line breaks would be nice :) |
Added line breaks in getData() method to avoid linter warnings.
@Haarolean Linter issue is resolved. |
@malavmevada thank you, will be merged soon |
Kudos, SonarCloud Quality Gate passed! |
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
What changes did you make? (Give an overview)
In BrokerConfigTab, I have added search by value functionality and basically changed the method getData by filter out brokerconfig name or value.
Closes #3163
Is there anything you'd like reviewers to focus on?
BrokersConfigTab.java and Configs.tsx are changed. Please refer those.
How Has This Been Tested? (put an "x" (case-sensitive!) next to an item)
Checklist (put an "x" (case-sensitive!) next to all the items, otherwise the build will fail)
Check out Contributing and Code of Conduct
A picture of a cute animal (not mandatory but encouraged)