-
Notifications
You must be signed in to change notification settings - Fork 181
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
[Refactor] Table in Vulnerabilities/Inventory
#3196
[Refactor] Table in Vulnerabilities/Inventory
#3196
Conversation
isExpandable={true} | ||
rowProps={getRowProps} | ||
error={error} | ||
sorting={sorting} |
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.
Why pass the sorting
props to the component. The component should control by itself the sorting
state.
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 forgot delete this prop.
title='Vulnerabilities' | ||
tableColumns={columns} | ||
tableInitialSortingField='name' | ||
searchTable={true} |
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.
This prop adds a search bar
to the table but the component is called TableWithSearchBardWzAPI
. We should rename the component if it can have a search bar or not, or create differents components (with the search bar or not).
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.
Yes, I'm renaming the component to TableWzAPI
searchTable={true} | ||
searchBarSuggestions={this.suggestions} | ||
endpoint={`/vulnerability/${this.props.agent.id}`} | ||
reload={isLoading} |
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.
The reload
prop in the original table, redo the request with the current table status, when reload
prop change.
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.
The issue requirements indicate:
But no information will be provided on the status of the vulnerabilities displayed.
Remove Status
and Type
from columns and detail
Vulnerabilities/Inventory
Hi team, this resolve:
How to test:
Closes #3093