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] list UI is backwards compatible #77956

Merged

Conversation

kevinlog
Copy link
Contributor

@kevinlog kevinlog commented Sep 18, 2020

Summary

Uses the query_strategy_version field to determine if we should show the KQL bar. If it's v1 then the transform isn't installed and the KQL bar won't work. Auto-refresh will still run behind the scenes, but it's intentional to also not show it when we don't show the KQL bar to reduce user confusion in the UI.

No transform installed:
image

Transform installed:
image

Checklist

Delete any items that are not applicable to this PR.

@kevinlog kevinlog added Team:Endpoint Management release_note:skip Skip the PR/issue when compiling release notes v8.0.0 v7.10.0 labels Sep 18, 2020
@kevinlog kevinlog marked this pull request as ready for review September 20, 2020 20:45
@kevinlog kevinlog requested review from a team as code owners September 20, 2020 20:45
@elasticmachine
Copy link
Contributor

Pinging @elastic/endpoint-management (Team:Endpoint Management)

@kevinlog
Copy link
Contributor Author

@elasticmachine merge upstream

await reactTestingLibrary.act(async () => {
await middlewareSpy.waitForAction('serverReturnedEndpointList');
});
// const adminSearchBar = await renderResult.findByTestId('adminSearchBar');
Copy link
Contributor

Choose a reason for hiding this comment

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

delete?

await middlewareSpy.waitForAction('serverReturnedEndpointList');
});
// const adminSearchBar = await renderResult.findByTestId('adminSearchBar');
return renderResult.findByTestId('adminSearchBar').catch((e) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Alternative would be to use the queryByTestId() which will not throw, but will instead return null if the element is not found:

Suggested change
return renderResult.findByTestId('adminSearchBar').catch((e) => {
expect(renderResult.queryByTestId('adminSearchBar')).toBeNull();

Copy link
Contributor

@paul-tavares paul-tavares left a comment

Choose a reason for hiding this comment

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

Looks good - some minor comments, but good for you to Merge

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

async chunks size

id value diff baseline
securitySolution 10.1MB +1.8KB 10.1MB

History

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

@kevinlog kevinlog merged commit b778e9c into elastic:master Sep 22, 2020
@kevinlog kevinlog deleted the task/hide-KQL-bar-when-not-compatible branch September 22, 2020 01:26
kevinlog added a commit to kevinlog/kibana that referenced this pull request Sep 22, 2020
gmmorris added a commit to gmmorris/kibana that referenced this pull request Sep 22, 2020
* master: (45 commits)
  [CSM] Use stacked chart for page views (elastic#78042)
  [Enterprise Search] Fix various plugin states when app has error connecting to Enterprise Search (elastic#78091)
  Remove service map beta badge (elastic#78039)
  [Enterprise Search] Rename "telemetry" to "stats" (elastic#78124)
  [Alerting] optimize calculation of unmuted alert instances (elastic#78021)
  call .destroy on ace when react component unmounts (elastic#78132)
  [Ingest Manager] Fix agent action acknowledgement (elastic#78089)
  [Upgrade Assistant] Rename "telemetry" to "stats" (elastic#78127)
  [Security Solution] Refactor Hosts Kpi to use Search Strategy (elastic#77606)
  Bump backport to 5.6.0 (elastic#78097)
  [Actions] adds a Test Connector tab in the Connectors list (elastic#77365)
  [Uptime] Improve ping chart axis (elastic#77992)
  [TSVB] Fields dropdowns are not populated if one of the indices is missing (elastic#77363)
  [UiActions] Remove duplicate apply filter action  (elastic#77485)
  [APM] Use transaction metrics for transaction error rate (elastic#78009)
  [ES-ARCHIVER] Fix bug when query flag is empty (elastic#77983)
  Edit UI text strings in Integrations and Fleet tabs (elastic#75837)
  [baseline capture] switch to large workers (elastic#78109)
  [SECURITY_SOLUTION] list UI is backwards compatible (elastic#77956)
  [Mappings editor] Add support for point field type (elastic#77543)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants