-
Notifications
You must be signed in to change notification settings - Fork 173
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
Feature/2702/wui rules #2708
Feature/2702/wui rules #2708
Conversation
return WzAPIUtils.isReservedID(item) && <EuiBadge color="primary">Reserved</EuiBadge>; | ||
render (item, obj){ | ||
if(WzAPIUtils.isReservedID(item)){ | ||
if( (obj.name == "wui_elastic_admin" || obj.name == "wui_opendistro_admin")){ |
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.
always when it is possible, try to compare with numbers instead of strings, the id should be the field to compare
and use constants, to avoid avoid keeping values in different places in code
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.
Okay, so I proceed to change it and i will keep in mind for future occasions. Thank you!
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.
LGTM! Good Job!
return WzAPIUtils.isReservedID(item) && <EuiBadge color="primary">Reserved</EuiBadge>; | ||
render (item, obj){ | ||
if(WzAPIUtils.isReservedID(item)){ | ||
if( (obj.id == 1 || obj.id == 2)){ |
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.
it is recommended to use ===
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.
Okay, it is changed and I will keep it in mind for future occasions. Thank you.
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.
Great job!! 🚀
Hi team, we're resolving issue #2702 with that following steps:
Closes Show the wui_ rules belong to wazuh-wui API user #2702