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

Display rule details flyout based on URL #6886

Merged
merged 4 commits into from
Jul 31, 2024

Conversation

Desvelao
Copy link
Member

@Desvelao Desvelao commented Jul 30, 2024

Description

This pull request changes the display to rule details flyout to be based on URL.

Issues Resolved

#6885

Evidence

  • redirectRule URL query parameter when the rule details flyout is open
    image

  • redirectRule URL query parameter is not present when the rule detail flyout is not open
    image

Test

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

UI

Test Chrome Firefox Safari
Go to some link that sets the redirectRule query parameter and click on it. For example, on Threat Hunting > Events on the rule.id field value.
Go to Rules and click on a table row, this should open the rule details flyout and set the redirectRule URL query parameter
Open a rule details flyout and close it, the redirectRule URL query parameter should be removed

Details

⚫ Go to some link that sets the redirectRule query parameter and click on it. For example, on Threat Hunting > Events on the rule.id field value.

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

⚫ Go to Rules and click on a table row, this should open the rule details flyout and set the redirectRule URL query parameter

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

⚫ Open a rule details flyout and close it, the redirectRule URL query parameter should be removed

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

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

@Desvelao Desvelao self-assigned this Jul 30, 2024
@Desvelao Desvelao linked an issue Jul 30, 2024 that may be closed by this pull request
Copy link
Contributor

Wazuh Core plugin code coverage (Jest) test % values
Statements 45.96% ( 399 / 868 )
Branches 41.97% ( 157 / 374 )
Functions 44.01% ( 136 / 309 )
Lines 46.16% ( 397 / 860 )

Copy link
Contributor

Wazuh Check Updates plugin code coverage (Jest) test % values
Statements 76.44% ( 172 / 225 )
Branches 58.65% ( 61 / 104 )
Functions 61.7% ( 29 / 47 )
Lines 76.44% ( 172 / 225 )

@Desvelao Desvelao marked this pull request as ready for review July 31, 2024 07:49
Copy link
Contributor

Main plugin code coverage (Jest) test % values
Statements 13.65% ( 3994 / 29259 )
Branches 9.12% ( 1746 / 19133 )
Functions 13.34% ( 943 / 7068 )
Lines 13.83% ( 3891 / 28123 )

@JuanGarriuz JuanGarriuz self-requested a review July 31, 2024 08:12
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.

CR: 🟢
Test: 🟢

Redirection

Peek 2024-07-31 10-48

Flyout inner state

Peek 2024-07-31 10-50

Copy link
Member

@JuanGarriuz JuanGarriuz left a comment

Choose a reason for hiding this comment

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

Test

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

UI

Test Chrome Firefox Safari
Go to some link that sets the redirectRule query parameter and click on it. For example, on Threat Hunting > Events on the rule.id field value. 🟢
Go to Rules and click on a table row, this should open the rule details flyout and set the redirectRule URL query parameter 🟢
Open a rule details flyout and close it, the redirectRule URL query parameter should be removed 🟢

Details

🟢 Go to some link that sets the redirectRule query parameter and click on it. For example, on Threat Hunting > Events on the rule.id field value.

Chrome - 🟢

image
image

Firefox - ⚫

Safari - ⚫

🟢 Go to Rules and click on a table row, this should open the rule details flyout and set the redirectRule URL query parameter

Chrome - 🟢

image
image

Firefox - ⚫

Safari - ⚫

🟢 Open a rule details flyout and close it, the redirectRule URL query parameter should be removed

Chrome - 🟢

image

image

Firefox - ⚫

Safari - ⚫

CR 🟢

LGTM!!!

@Desvelao Desvelao merged commit b242cd1 into 4.9.0 Jul 31, 2024
5 checks passed
@Desvelao Desvelao deleted the bug/6885-display-rule-details-based-on-URL branch July 31, 2024 09:16
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.

Selected rule flyout state is inconsistent in the URL
3 participants