-
Notifications
You must be signed in to change notification settings - Fork 786
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
3418 search displayed fields #3646
3418 search displayed fields #3646
Conversation
Note: This does not search the "author" field, since it is not part of the plugin.
ab19693
to
a5b3b79
Compare
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 was actually wondering if we could use the built-in filtering on the data grid component. However, it looks like that may be limited to only filtering on a single column at a time (in the free version), which wouldn't work for us.
We were already using a mix of row and backend data so switching to just operating on the row data makes sense as far as consistency is concerned.
|
||
const onRefreshCallback = () => { | ||
setSuccessfullyInstalledPluginsIds([]); | ||
setInstallingAllSafePlugins(unSafeDispalyedPlugins.length > 0 && safeDispalyedPlugins.length === 0 || displayedRows.length === 0) |
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.
Noticed this typo: unSafeDispalyedPlugins
-> unSafeDisplayedPlugins
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.
There's a todo to refactor this method, I already have the changes, but out of scope
|
||
export const getPluginsTableRows = (pluginsList :AgentPlugin[]) => { | ||
export const getDefaultPluginsTableRows = (pluginsList: AgentPlugin[]) :PluginRow[] => { |
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.
What is the meaning of default here? Based on the name it sounds like it would output a default set of rows, instead of generating rows from the data with the default set of columns. Maybe 'defaultGetPluginsTableRows
makes more sense?
What does this PR do?
Fixes #3418.
Add any further explanations here.
PR Checklist
Testing Checklist