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

Detection rule new detection ux #575

Merged

Conversation

amsiglan
Copy link
Collaborator

@amsiglan amsiglan commented May 5, 2023

Description

Replaced the detection code editor in Detection rule creation form to use UI components. It simplifies entering detection and also allows user to enter values for a field by uploading text or csv files.

image

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

amsiglan added 2 commits May 4, 2023 20:36
Signed-off-by: Amardeepsingh Siglani <[email protected]>
Signed-off-by: Amardeepsingh Siglani <[email protected]>
@amsiglan amsiglan requested a review from a team May 5, 2023 05:46
@codecov-commenter
Copy link

codecov-commenter commented May 5, 2023

Codecov Report

Merging #575 (7c845e4) into main (3812055) will decrease coverage by 0.98%.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main     #575      +/-   ##
==========================================
- Coverage   32.45%   31.47%   -0.98%     
==========================================
  Files         137      138       +1     
  Lines        4126     4340     +214     
  Branches      677      723      +46     
==========================================
+ Hits         1339     1366      +27     
- Misses       2648     2835     +187     
  Partials      139      139              

see 3 files with indirect coverage changes

amsiglan added 3 commits May 5, 2023 14:29
Signed-off-by: Amardeepsingh Siglani <[email protected]>
Signed-off-by: Amardeepsingh Siglani <[email protected]>
Signed-off-by: Amardeepsingh Siglani <[email protected]>
@AWSHurneyt AWSHurneyt merged commit feb0ed7 into opensearch-project:main May 6, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 25, 2023
* basic framework ready

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* working without validation

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* detection rule updates

Signed-off-by: Jovan Cvetkovic <[email protected]>

* detection rule updates

Signed-off-by: Jovan Cvetkovic <[email protected]>

* detection rule updates

Signed-off-by: Jovan Cvetkovic <[email protected]>

* added validation for duplicate keys; do not submit if detection has errors

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* validations added

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* more validations

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* comment update

Signed-off-by: Amardeepsingh Siglani <[email protected]>

---------

Signed-off-by: Amardeepsingh Siglani <[email protected]>
Signed-off-by: Jovan Cvetkovic <[email protected]>
Co-authored-by: Jovan Cvetkovic <[email protected]>
(cherry picked from commit feb0ed7)
amsiglan added a commit that referenced this pull request May 30, 2023
* basic framework ready

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* working without validation

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* detection rule updates

Signed-off-by: Jovan Cvetkovic <[email protected]>

* detection rule updates

Signed-off-by: Jovan Cvetkovic <[email protected]>

* detection rule updates

Signed-off-by: Jovan Cvetkovic <[email protected]>

* added validation for duplicate keys; do not submit if detection has errors

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* validations added

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* more validations

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* comment update

Signed-off-by: Amardeepsingh Siglani <[email protected]>

---------

Signed-off-by: Amardeepsingh Siglani <[email protected]>
Signed-off-by: Jovan Cvetkovic <[email protected]>
Co-authored-by: Jovan Cvetkovic <[email protected]>
(cherry picked from commit feb0ed7)

Co-authored-by: Amardeepsingh Siglani <[email protected]>
amsiglan added a commit to amsiglan/security-analytics-dashboards-plugin that referenced this pull request May 30, 2023
…project#596)

* basic framework ready

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* working without validation

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* detection rule updates

Signed-off-by: Jovan Cvetkovic <[email protected]>

* detection rule updates

Signed-off-by: Jovan Cvetkovic <[email protected]>

* detection rule updates

Signed-off-by: Jovan Cvetkovic <[email protected]>

* added validation for duplicate keys; do not submit if detection has errors

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* validations added

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* more validations

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* comment update

Signed-off-by: Amardeepsingh Siglani <[email protected]>

---------

Signed-off-by: Amardeepsingh Siglani <[email protected]>
Signed-off-by: Jovan Cvetkovic <[email protected]>
Co-authored-by: Jovan Cvetkovic <[email protected]>
(cherry picked from commit feb0ed7)

Co-authored-by: Amardeepsingh Siglani <[email protected]>
AWSHurneyt pushed a commit that referenced this pull request May 30, 2023
* Detection rule new detection ux (#575) (#596)

* basic framework ready

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* working without validation

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* detection rule updates

Signed-off-by: Jovan Cvetkovic <[email protected]>

* detection rule updates

Signed-off-by: Jovan Cvetkovic <[email protected]>

* detection rule updates

Signed-off-by: Jovan Cvetkovic <[email protected]>

* added validation for duplicate keys; do not submit if detection has errors

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* validations added

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* more validations

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* comment update

Signed-off-by: Amardeepsingh Siglani <[email protected]>

---------

Signed-off-by: Amardeepsingh Siglani <[email protected]>
Signed-off-by: Jovan Cvetkovic <[email protected]>
Co-authored-by: Jovan Cvetkovic <[email protected]>
(cherry picked from commit feb0ed7)

Co-authored-by: Amardeepsingh Siglani <[email protected]>

* cypress tests update (#581)

Signed-off-by: Jovan Cvetkovic <[email protected]>

* Update selection panel component for the "Create detection rule" (#594)

* [FEATURE] Update selection panel component for the "Create detection rule" page #587

Signed-off-by: Jovan Cvetkovic <[email protected]>

* [FEATURE] Update selection panel component for the "Create detection rule" page #587

Signed-off-by: Jovan Cvetkovic <[email protected]>

* [FEATURE] Update selection panel component for the "Create detection rule" page #587

Signed-off-by: Jovan Cvetkovic <[email protected]>

* [FEATURE] Update selection panel component for the "Create detection rule" page #587

Signed-off-by: Jovan Cvetkovic <[email protected]>

---------

Signed-off-by: Jovan Cvetkovic <[email protected]>

* [FEATURE] Rules UI/UX improvements (#592)

* [FEATURE] Rules UI/UX improvements #585

Signed-off-by: Jovan Cvetkovic <[email protected]>

* [BUG] Detection rules page | Filter name typo #588

Signed-off-by: Jovan Cvetkovic <[email protected]>

* Code review

Signed-off-by: Jovan Cvetkovic <[email protected]>

---------

Signed-off-by: Jovan Cvetkovic <[email protected]>

---------

Signed-off-by: Jovan Cvetkovic <[email protected]>
Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com>
Co-authored-by: Jovan Cvetkovic <[email protected]>
AWSHurneyt pushed a commit to AWSHurneyt/security-analytics-dashboards-plugin that referenced this pull request Oct 12, 2023
…project#596)

* basic framework ready

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* working without validation

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* detection rule updates

Signed-off-by: Jovan Cvetkovic <[email protected]>

* detection rule updates

Signed-off-by: Jovan Cvetkovic <[email protected]>

* detection rule updates

Signed-off-by: Jovan Cvetkovic <[email protected]>

* added validation for duplicate keys; do not submit if detection has errors

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* validations added

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* more validations

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* comment update

Signed-off-by: Amardeepsingh Siglani <[email protected]>

---------

Signed-off-by: Amardeepsingh Siglani <[email protected]>
Signed-off-by: Jovan Cvetkovic <[email protected]>
Co-authored-by: Jovan Cvetkovic <[email protected]>
(cherry picked from commit feb0ed7)

Co-authored-by: Amardeepsingh Siglani <[email protected]>
Signed-off-by: AWSHurneyt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants