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 Solution][Case] Show the current connector name in case view #93018

Merged
merged 1 commit into from
Mar 1, 2021

Conversation

cnasikas
Copy link
Member

@cnasikas cnasikas commented Mar 1, 2021

Summary

If you create a case with a connector selected the name of the connector is being saved in the case's saved object. Specifically: connector: {id: string; name: string; ...}. If you update the connector, the name is not updated in the case's saved object because the updating is happening on the action's side and we do not have a way to update our information after an action's update. This PR fixes this issue as the name of the connector is taken from the up to date list of all current connectors.

Fixes: #92607

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@cnasikas cnasikas added bug Fixes for quality problems that affect the customer experience v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.12.0 Team:Threat Hunting Security Solution Threat Hunting Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v7.13.0 labels Mar 1, 2021
@cnasikas cnasikas requested a review from a team March 1, 2021 12:19
@cnasikas cnasikas requested a review from a team as a code owner March 1, 2021 12:19
@cnasikas cnasikas self-assigned this Mar 1, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@elasticmachine
Copy link
Contributor

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

.find('[data-test-subj="has-data-to-push-button"]')
.first()
.text()
.includes('My Connector 2')
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry for the dumb question but how does the new name get set? Is it changed by a different test? Or in one of the mock implementations above?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hey! It is set in useConnectorsMock.mockImplementation(() => ({ connectors: connectorsMock, loading: false }));.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 7.8MB 7.8MB -10.0B

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @cnasikas

@cnasikas cnasikas merged commit 4ab91da into elastic:master Mar 1, 2021
@cnasikas cnasikas deleted the fix_92607 branch March 1, 2021 16:09
cnasikas added a commit to cnasikas/kibana that referenced this pull request Mar 1, 2021
jloleysens added a commit that referenced this pull request Mar 3, 2021
… ilm/rollup-v2-action

* 'ilm/rollup-v2-action' of github.com:elastic/kibana:
  [Security Solution][Case][Bug] Only add rule object for alert comments (#92977)
  [Security Solution][Case] Show the current connector name in case view (#93018)
  [Security Solution] Remove unused mock data (#92357)
  Adds mapping to the signals for the indicator rules that were missing (#92928)
  skip flaky suite (#85208)
  Cleanup spaces plugin (#91976)
  Control round and decimal places in Gauge Visualization when using aggregate functions like average (#91293)
  Added alerting ui mock for jest test (#92604)
  Remove "beta" label from URL Drilldown as it is now GA (#92859)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting Security Solution Threat Hunting Team v7.12.0 v7.13.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Security Solution] Updated name of external Connector is not reflecting on update button at case
4 participants