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

3418 search displayed fields #3646

Merged

Conversation

cakekoa
Copy link
Contributor

@cakekoa cakekoa commented Sep 1, 2023

What does this PR do?

Fixes #3418.

Add any further explanations here.

PR Checklist

  • Have you added an explanation of what your changes do and why you'd like to include them?
  • Is the TravisCI build passing?
  • Was the CHANGELOG.md updated to reflect the changes?
  • Was the documentation framework updated to reflect the changes?
  • Have you checked that you haven't introduced any duplicate code?

Testing Checklist

  • Added relevant unit tests?
  • Do all unit tests pass?
  • Do all end-to-end tests pass?
  • Any other testing performed?

    Tested by {Running the Monkey locally with relevant config/running Island/...}

  • If applicable, add screenshots or log transcripts of the feature working

@cakekoa cakekoa mentioned this pull request Sep 1, 2023
38 tasks
@ordabach ordabach changed the base branch from develop to 3418-plugin-installation-screen September 3, 2023 10:43
@VakarisZ VakarisZ self-assigned this Sep 4, 2023
@VakarisZ VakarisZ marked this pull request as ready for review September 5, 2023 13:40
Copy link
Contributor Author

@cakekoa cakekoa left a 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)
Copy link
Contributor Author

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

Copy link
Contributor

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[] => {
Copy link
Contributor Author

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?

@VakarisZ VakarisZ merged commit 2f43d0e into 3418-plugin-installation-screen Sep 5, 2023
@VakarisZ VakarisZ deleted the 3418-search-displayed-fields branch September 5, 2023 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugin installation screen
3 participants