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

Fix the search in the agent inventory data tables #5196

Merged

Conversation

Desvelao
Copy link
Member

@Desvelao Desvelao commented Feb 6, 2023

Description

This pull request changes the query parameter used to search in the agent inventory tables.

Issues Resolved

https://github.com/wazuh/support/issues/171

Evidence

image
image
image

Test

UI

Test
Empty input in the search bar of the agent inventory tables should display all the results
Add a search text input in the search bar of the agent inventory tables should display filtered the results
Export to CSV each table in agents inventory with an empty search query should display all the results
Export to CSV each table in agents inventory with a search query should display results filtered
The search bar placeholder of Network ports should be Search
The search bar placeholder of Packages should be Search
The search bar placeholder of Processes ports should be Search

template_test_cases.md

Check List

  • All tests pass
    • yarn test:jest
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

- Replace search by q API parameter
@Desvelao Desvelao requested a review from a team as a code owner February 6, 2023 17:22
@Desvelao Desvelao self-assigned this Feb 6, 2023
Machi3mfl
Machi3mfl previously approved these changes Feb 6, 2023
Copy link
Member

@Machi3mfl Machi3mfl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wazuh dashboard

Legend:
⚫: none
🟢: pass
🟡: warning
🔴: fail
⚪: not applicable

UI

Test Chrome Firefox Safari
Empty input in the search bar of the agent inventory tables should display all the results 🟢
Add a search text input in the search bar of the agent inventory tables should display filtered the results 🟢
Export to CSV each table in agents inventory with an empty search query should display all the results 🟢
Export to CSV each table in agents inventory with a search query should display results filtered 🟢

Details

🟢 Empty input in the search bar of the agent inventory tables should display all the results

Chrome - 🟢

Kazam_screencast_00009.mp4

Firefox - ⚫

Safari - ⚫

🟢 Add a search text input in the search bar of the agent inventory tables should display filtered the results

Chrome - 🟢

Kazam_screencast_00010.mp4

Firefox - ⚫

Safari - ⚫

🟢 Export to CSV each table in agents inventory with an empty search query should display all the results

Chrome - 🟢

Kazam_screencast_00011.mp4

Firefox - ⚫

Safari - ⚫

🟢 Export to CSV each table in agents inventory with a search query should display results filtered

Chrome - 🟢

Kazam_screencast_00011.mp4

Firefox - ⚫

Safari - ⚫

@Desvelao Desvelao linked an issue Feb 7, 2023 that may be closed by this pull request
@yenienserrano
Copy link
Member

yenienserrano commented Feb 15, 2023

Wazuh dashboard

Legend:
⚫: none
🟢: pass
🟡: warning
🔴: fail
⚪: not applicable

UI

Test Chrome Firefox Safari
Empty input in the search bar of the agent inventory tables should display all the results 🟢
Add a search text input in the search bar of the agent inventory tables should display filtered the results 🟢
Export to CSV each table in agents inventory with an empty search query should display all the results 🟢
Export to CSV each table in agents inventory with a search query should display results filtered 🟢

Details

🟢 Empty input in the search bar of the agent inventory tables should display all the results

Chrome - 🟢

image

Firefox - ⚫

Safari - ⚫

🟢 Add a search text input in the search bar of the agent inventory tables should display filtered the results

Chrome - 🟢

image

Firefox - ⚫

Safari - ⚫

🟢 Export to CSV each table in agents inventory with an empty search query should display all the results

Chrome - 🟢

image

Firefox - ⚫

Safari - ⚫

🟢 Export to CSV each table in agents inventory with a search query should display results filtered

Chrome - 🟢

image

Firefox - ⚫

Safari - ⚫

yenienserrano
yenienserrano previously approved these changes Feb 15, 2023
@Desvelao Desvelao mentioned this pull request Feb 27, 2023
6 tasks
@Desvelao
Copy link
Member Author

Desvelao commented Mar 28, 2023

request changes: change the placeholder of the search bar to clarify the search is only not to a column. The search applies to all the visible columns.

image

@Desvelao Desvelao dismissed stale reviews from yenienserrano and Machi3mfl via a142fd0 March 28, 2023 14:06
@Desvelao
Copy link
Member Author

Desvelao commented Mar 28, 2023

request changes: change the placeholder of the search bar to clarify the search is only not to a column. The search applies to all the visible columns.

image

Changes

  • Replaced the search bar placeholder by Search

New tests were added:

The search bar placeholder of Network ports should be Search
The search bar placeholder of Packages should be Search
The search bar placeholder of Processes ports should be Search

Machi3mfl
Machi3mfl previously approved these changes Mar 28, 2023
Copy link
Member

@Machi3mfl Machi3mfl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The search bar placeholder of Network ports should be Search 🟢
The search bar placeholder of Packages should be Search 🟢
The search bar placeholder of Processes ports should be Search 🟢

Details

🟢 The search bar placeholder of Network ports should be Search

image

🟢 The search bar placeholder of Packages should be Search

image

🟢 The search bar placeholder of Processes ports should be Search

image

CHANGELOG.md Outdated Show resolved Hide resolved
@Desvelao Desvelao requested a review from AlexRuiz7 March 30, 2023 06:35
@Desvelao Desvelao changed the title Change the search in the agents inventory tables Fix the search in the agent inventory data tables Mar 30, 2023
AlexRuiz7
AlexRuiz7 previously approved these changes Mar 30, 2023
Machi3mfl
Machi3mfl previously approved these changes Mar 30, 2023
AlexRuiz7
AlexRuiz7 previously approved these changes Mar 30, 2023
asteriscos
asteriscos previously approved these changes Mar 30, 2023
Copy link
Member

@asteriscos asteriscos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wazuh dashboard

Legend:
⚫: none
🟢: pass
🟡: warning
🔴: fail
⚪: not applicable

UI

Test Chrome Firefox
Empty input in the search bar of the agent inventory tables should display all the results 🟢
Add a search text input in the search bar of the agent inventory tables should display filtered the results 🟢
Export to CSV each table in agents inventory with an empty search query should display all the results 🟢
Export to CSV each table in agents inventory with a search query should display results filtered 🟢

Details

🟢 Empty input in the search bar of the agent inventory tables should display all the results

Chrome - 🟢

Firefox - ⚫

Screenshot from 2023-03-30 16-27-19

🟢 Add a search text input in the search bar of the agent inventory tables should display filtered the results

Chrome - 🟢

Firefox - ⚫

image

🟢 Export to CSV each table in agents inventory with an empty search query should display all the results

Chrome - 🟢

Firefox - ⚫

Screenshot from 2023-03-30 16-56-22
Screenshot from 2023-03-30 16-56-10

🟢 Export to CSV each table in agents inventory with a search query should display results filtered

Chrome - 🟢

Firefox - ⚫

Screenshot from 2023-03-30 16-56-16
Screenshot from 2023-03-30 16-56-05

@Tostti Tostti dismissed stale reviews from asteriscos, AlexRuiz7, and Machi3mfl via 7f0ac99 March 30, 2023 20:49
@github-actions
Copy link
Contributor

Code coverage (Jest) % values
Statements 8.77% ( 3240 / 36925 )
Branches 4.49% ( 1287 / 28640 )
Functions 7.63% ( 698 / 9146 )
Lines 8.83% ( 3125 / 35360 )

@yenienserrano yenienserrano merged commit 4fadc4e into 4.4-2.4-wzd Mar 31, 2023
@yenienserrano yenienserrano deleted the fix/support-171-agents-inventory-search-q-parameter branch March 31, 2023 07:21
@github-actions
Copy link
Contributor

The backport to 4.4-7.16 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-4.4-7.16 4.4-7.16
# Navigate to the new working tree
cd .worktrees/backport-4.4-7.16
# Create a new branch
git switch --create backport-5196-to-4.4-7.16
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 4fadc4e0f6311f86b0f4adfdc0d0b00bc72337fe
# Push it to GitHub
git push --set-upstream origin backport-5196-to-4.4-7.16
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-4.4-7.16

Then, create a pull request where the base branch is 4.4-7.16 and the compare/head branch is backport-5196-to-4.4-7.16.

@github-actions
Copy link
Contributor

The backport to 4.4-7.10 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-4.4-7.10 4.4-7.10
# Navigate to the new working tree
cd .worktrees/backport-4.4-7.10
# Create a new branch
git switch --create backport-5196-to-4.4-7.10
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 4fadc4e0f6311f86b0f4adfdc0d0b00bc72337fe
# Push it to GitHub
git push --set-upstream origin backport-5196-to-4.4-7.10
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-4.4-7.10

Then, create a pull request where the base branch is 4.4-7.10 and the compare/head branch is backport-5196-to-4.4-7.10.

yenienserrano pushed a commit that referenced this pull request Mar 31, 2023
* fix: change the search in the agents inventory tables

- Replace search by q API parameter

* changelog: add pull request entry

* fix(agent-inventory): change the search bar placeholder to `Search`

* fix(changelog): fix entry

* fix: replace string

* fix(changelog): moved entry to Fixed

---------

Co-authored-by: Nicolas Agustin Guevara Pihen <42900763+Tostti@users.noreply.github.com>
(cherry picked from commit 4fadc4e)
Desvelao added a commit that referenced this pull request Mar 31, 2023
* fix: change the search in the agents inventory tables

- Replace search by q API parameter

* changelog: add pull request entry

* fix(agent-inventory): change the search bar placeholder to `Search`

* fix(changelog): fix entry

* fix: replace string

* fix(changelog): moved entry to Fixed

---------

Co-authored-by: Nicolas Agustin Guevara Pihen <42900763+Tostti@users.noreply.github.com>
(cherry picked from commit 4fadc4e)
yenienserrano pushed a commit that referenced this pull request Mar 31, 2023
…a tables (#5346)

Fix the search in the agent inventory data tables (#5196)

* fix: change the search in the agents inventory tables

- Replace search by q API parameter

* changelog: add pull request entry

* fix(agent-inventory): change the search bar placeholder to `Search`

* fix(changelog): fix entry

* fix: replace string

* fix(changelog): moved entry to Fixed

---------

Co-authored-by: Nicolas Agustin Guevara Pihen <42900763+Tostti@users.noreply.github.com>
(cherry picked from commit 4fadc4e)
Desvelao added a commit that referenced this pull request Mar 31, 2023
…a tables (#5345)

Fix the search in the agent inventory data tables (#5196)

* fix: change the search in the agents inventory tables

- Replace search by q API parameter

* changelog: add pull request entry

* fix(agent-inventory): change the search bar placeholder to `Search`

* fix(changelog): fix entry

* fix: replace string

* fix(changelog): moved entry to Fixed

---------

Co-authored-by: Nicolas Agustin Guevara Pihen <42900763+Tostti@users.noreply.github.com>
(cherry picked from commit 4fadc4e)

Co-authored-by: Antonio <34042064+Desvelao@users.noreply.github.com>
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.

Fix the search in the agents inventory table
6 participants