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

[SECURITY SOLUTIONS] [Case everywhere] Remaining cases removal work #96074

Closed
12 tasks done
stephmilovic opened this issue Apr 1, 2021 · 3 comments
Closed
12 tasks done
Labels
Feature:Cases Cases feature Team:Threat Hunting Security Solution Threat Hunting Team Theme: rac label obsolete

Comments

@stephmilovic
Copy link
Contributor

stephmilovic commented Apr 1, 2021

Remaining cases removal work

Remaining moves

Bugs we made

Screenshot 2021-03-31 at 2 41 36 PM

Bugs we moved over

Refactors/Cleanup

  • refactor message storage to use storage from plugin.ts PR: [Security Solution][Cases] Update messages storage #97514
  • Systemize navigation props across all cases components to be common/easy to use schema PR: [Security Solution][Cases] - Update navigation props #96493
  • Confirm proper plugin.tsx, tsconfig.json, and linking setup with Kibana PR: [Security Solution] Tsconfig for cases #96249
  • Confirm backOptions changes in taking onClick handler in place of pageId Confirmed in [Security Solution][Cases] - Update navigation props #96493**
  • Confirm all getCasesColumn calls take in appropriate args object in place of previous args list
  • Move the isModal property out of AllCases and break that logic out into its own component PR: [Security Solution] [Cases] All Cases Refactor & getAllCasesSelectorModal introduced #97149
    @cnasikas says:

    I see what you mean. I talk about it with @XavierM and we should break the AllCases components into smaller components and remove the isModal logic. This way we can move the onTableRowClick and alertData logic inside a new modal called, for example, AttachToCaseModal which can be exported through the CasesUiClient.

    Example:

    // AllCases component
    interface Props {
      configureCasesHref: string;
      createCaseHref: string;
      disabledStatuses?: CaseStatuses[];
      getCaseDetailsHref: (caseDetails: CaseDetailsHrefSchema) => string;
      onCaseDetailsNavClick: (caseDetails: CaseDetailsHrefSchema) => void;
      onConfigureCasesNavClick?: (ev: React.MouseEvent) => void;
      onCreateCaseNavClick?: (ev: React.MouseEvent) => void;
      userCanCrud: boolean;
    }
    
    <>
      <AllCasesHeader>
      <AllCasesFilters>
      <AllCasesTable>
    </>
    
    // AttachToCase modal
    interface Props {
       onAttachment: () => void;
    }
    
    <>
      <AllCasesFilters>
      <AllCasesTable>
    </>
    

    I think is a good opportunity to do it in this PR. It will be much cleaner. The AllCases is too compact, does a lot of things without reason.

@stephmilovic stephmilovic added Team:Threat Hunting Security Solution Threat Hunting Team Feature:Cases Cases feature Theme: rac label obsolete Feature:Cases-RAC-UI labels Apr 1, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting (Team:Threat Hunting)

@asnehalb
Copy link

asnehalb commented May 4, 2021

Moved non-critical items to https://github.com/elastic/security-team/issues/1091

@asnehalb asnehalb closed this as completed May 4, 2021
@asnehalb
Copy link

asnehalb commented May 4, 2021

closing as all items here are completed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Cases Cases feature Team:Threat Hunting Security Solution Threat Hunting Team Theme: rac label obsolete
Projects
None yet
Development

No branches or pull requests

3 participants