[Security Solution] expanded flyout - right section - json tab implementation#152935
Merged
PhilippeOberti merged 1 commit intomainfrom Mar 20, 2023
Merged
[Security Solution] expanded flyout - right section - json tab implementation#152935PhilippeOberti merged 1 commit intomainfrom
PhilippeOberti merged 1 commit intomainfrom
Conversation
9ff22ff to
8d45003
Compare
Contributor
|
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
8d45003 to
2b60c55
Compare
2b60c55 to
457b0b3
Compare
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
| * // TODO revisit this as it seems very fragile: the first element found is the timeline flyout, which isn't visible but still exist in the DOM | ||
| */ | ||
| export const scrollWithinDocumentDetailsExpandableFlyoutRightSection = (x: number, y: number) => | ||
| cy.get(getClassSelector('euiFlyout')).last().scrollTo(x, y); |
| </RightPanelContext.Provider> | ||
| ); | ||
|
|
||
| expect(getByTestId(JSON_TAB_CONTENT_TEST_ID)).toBeInTheDocument(); |
Contributor
There was a problem hiding this comment.
Is it worth it to make sure some_value shows up in the component as well?
Contributor
Author
There was a problem hiding this comment.
same reasoning I was having with the table, as I'm reusing the existing JsonView component which internally is a simple EuiCodeBlock and is also already tested, I was thinking it wouldn't be necessary...
michaelolo24
approved these changes
Mar 20, 2023
Contributor
michaelolo24
left a comment
There was a problem hiding this comment.
Looks good!,Thanks! LGTM :)
v1v
added a commit
to v1v/kibana
that referenced
this pull request
Mar 20, 2023
…loy-my-kibana-oblt * upstream/main: (727 commits) Upgrade caniuse-lite db (elastic#153318) [Security Solution] expanded flyout - right section - json tab implementation (elastic#152935) chore(slo): Make APM indicator's index required (elastic#153311) skip failing test suite (elastic#136688) [Security Solution] Fix security-solution storybook package codeowners (elastic#153307) [EUI] Add `scrollLock` workaround CSS to Kibana's `body` (elastic#153227) [Cloud Security] Show coming soon deployments of vulnerability management (elastic#153249) [Cloud Security] fixed onboarding link directs to cspm integration (elastic#153268) [Response Ops][Alerting] Reusable functions for FAAD resource installation (elastic#152849) remove geohash_grid aggregation support (elastic#152952) [Tech Debt] Reorder Rules page (elastic#152897) [Saved Object Finder] Add help text & left button (elastic#152742) [Transform] Replace SavedObjectsFinder component (elastic#153128) Make pipeline creation endpoint accept a full pipeline definition (elastic#153133) [Fleet] Displaying policy changes in Agent activity (elastic#153237) skip flaky suite (elastic#152852) [Security Solution][Endpoint] Add tests to cover RBAC entries in the Role Kibana Privileges flyout (elastic#153068) [Security Solution][Endpoint] Additional tests for Response Console History Log page (covers TestRail manual tests) (elastic#153042) [Monitoring] Display node roles in Nodes table (elastic#152127) Rename getEditAlertFlyout to getEditRuleFlyout (elastic#153243) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR leverages the work done in a previous PR and adds the table and json tabs to the Security Solution expandable flyout right section panel:
JsonViewcomponent)How to test
xpack.securitySolution.enableExperimental: ['securityFlyoutEnabled']to thekibana.jsonfileyarn es snapshot --license trial,yarn test:generateandyarn start --no-base-pathRun tests and storybook
node scripts/storybook security_solutionto run Storybooknpm run test:jest --config ./x-pack/plugins/security_solution/public/flyoutto run the unit testsyarn cypress:open-as-cibut note that the integration/e2e tests have been written but are now skipped because the feature is protected behind a feature flag, disabled by default. To check them, add'securityFlyoutEnabled'hereScreen.Recording.2023-03-08.at.10.34.20.AM.mov
https://github.com/elastic/security-team/issues/6066
Checklist
Delete any items that are not applicable to this PR.