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

[8.x] [Security Solution] Allows editing and exporting prebuilt rules from the Rule Management and Rule Details pages (#198202) #200103

Merged
merged 1 commit into from
Nov 14, 2024

Commits on Nov 13, 2024

  1. [Security Solution] Allows editing and exporting prebuilt rules from …

    …the Rule Management and Rule Details pages (elastic#198202)
    
    **Resolves: elastic#180171
    **Resolves: elastic#180176
    **Resolves: elastic#180173
    
    ## Summary
    
    > [!NOTE]
    > Feature is behind the `prebuiltRulesCustomizationEnabled` feature
    flag.
    
    Adds logic to allow users to edit and export prebuilt rules from both
    the Rule management page and Rule details page via the bulk action menu
    and the singular overflow menu
    
    ### Acceptance criteria
    
    - [x] Feature is hidden behind prebuiltRulesCustomizationEnabled feature
    flag
    - [x] Modified components still work as expected when feature flag is
    off
    - [x] Bulk actions are able to performed on all rule types from Rule
    management page bulk actions menu
      - [x] Editing
        - [x] Index patterns
        - [x] Tags
        - [x] Highlighted fields
        - [x] Schedule
      - [x] Export
    - [x] Singular rule actions are able to be performed on all rule types
    from rule management page overflow column
      - [x] Export
    - [x] Singular rule actions are able to be performed on all rule types
    from rule details page
      - [x] Export
    
    ### Screenshots
    ***
    
    ### Rule management table overflow menu
    
    #### Before
    **Export button is disabled for prebuilt rules**
    ![Screenshot 2024-11-07 at 7 38
    12 PM](https://github.com/user-attachments/assets/13f8cd87-a9e5-486c-ab0f-d206de8bab4b)
    
    #### After
    **Export button is enabled for all rule types**
    ![Screenshot 2024-11-07 at 7 34
    27 PM](https://github.com/user-attachments/assets/4b3d9364-02d5-406a-9f8a-c9ad8fed8486)
    
    ### Rule details page overflow menu
    
    #### Before
    **Export button is disabled for prebuilt rules**
    ![Screenshot 2024-11-07 at 7 37
    40 PM](https://github.com/user-attachments/assets/621b56e3-1f47-49db-aedb-fd05a3b75007)
    
    #### After
    **Export button is enabled for all rule types**
    ![Screenshot 2024-11-07 at 7 34
    38 PM](https://github.com/user-attachments/assets/d533f288-4393-4acf-ba88-91c32ab32955)
    
    ---------
    
    Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
    (cherry picked from commit 02e4edc)
    dplumlee committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    6dfcaad View commit details
    Browse the repository at this point in the history