-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[SIEM] template timeline UI #64439
[SIEM] template timeline UI #64439
Conversation
Hello @marrasherrier, I have a question for you regarding to tabs for timelines table https://www.figma.com/proto/98ayxwvfEtP9q0GcsQqwe7/Timeline?node-id=14%3A935&scaling=min-zoom Therefore I’m thinking of using filter EuiFilterGroup, so by default it still show all the timelines we have |
hi @angorayc, I agree, a filter group like the one used in cases is probably a better choice here. I will update the figma mocks |
@marrasherrier , after conforming with @XavierM , all the cases we have now are all fine to land at default tab, so we are fine to keep the current design. |
Pinging @elastic/siem (Team:SIEM) |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
7a6f237
to
467bdde
Compare
@@ -98,9 +97,9 @@ export const OpenTimeline = React.memo<OpenTimelineProps>( | |||
|
|||
const onRefreshBtnClick = useCallback(() => { | |||
if (refetch != null) { | |||
refetch(); | |||
refetch(searchResults, totalSearchResultsCount); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is to fix the flashing timelines' table while refetching data, not a good fix, so I'm opening an issue to follow it up
https://github.com/elastic/siem-team/issues/647
pinnedEventIds, | ||
globalNotes, | ||
eventNotes, | ||
templateTimelineId, | ||
templateTimelineVersion, | ||
timelineType, | ||
version = null, | ||
} = parsedTimeline; | ||
const parsedTimelineObject = omit( | ||
timelineSavedObjectOmittedFields, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Omitting the fields that timeline savedObject doesn't take to avoid failure while creating / updating savedObject.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll manage globalNotes for template timeline down below on Line 159-161
We have an issue when we tried to update a template timeline with a global note.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good to me, but I found some bugs about the importing timeline template and I think we do not cover all the use cases in this PR.
I think that we can move forward since we won't have the full story yet. But we will need a follow-up PR to get all the corner cases resolved.
I can see this implementation has been done thoughtfully, I did appreciate to read this PR and the code in it. Please merge when you got a green light.
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* init template timeline's tab * add template filter * add routes for timelines tabs * add tabs hook * add filter type * fix unit test * add breadcrumbs * fix types error * fix flashing table * fix types * fix flashing table * fix filter * add comments for filters * review X * review x * fix create note for template timeline * rename timelineTypes to timelineType * update unit test * fix types * update filter for timeline savedObject * fix lint error Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Patryk Kopycinski <[email protected]> Co-authored-by: Xavier Mouligneau <[email protected]>
* init template timeline's tab * add template filter * add routes for timelines tabs * add tabs hook * add filter type * fix unit test * add breadcrumbs * fix types error * fix flashing table * fix types * fix flashing table * fix filter * add comments for filters * review X * review x * fix create note for template timeline * rename timelineTypes to timelineType * update unit test * fix types * update filter for timeline savedObject * fix lint error Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Patryk Kopycinski <[email protected]> Co-authored-by: Xavier Mouligneau <[email protected]> Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Patryk Kopycinski <[email protected]> Co-authored-by: Xavier Mouligneau <[email protected]>
* master: (72 commits) add tsvb tests to Firefox suite (elastic#65425) Fix flaky ServerMetricsCollector integration test (elastic#65420) [APM] Custom links section inside the Actions menu is showing outside of the menu (elastic#65428) [ML] Adds docs_per_second to transform edit form. (elastic#65365) update apm index pattern (elastic#65424) add direct build command (elastic#65431) [ML] Adding daily_model_snapshot_retention_after_days to types and schemas (elastic#65417) [chore] Improve request cancelation handling in vis embeddable (elastic#65057) [Alerting] migrates acceptance and functional test fixtures to KP (elastic#64888) [ML] Fixes reordering in view by selection when overall cell selected (elastic#65290) Additional branding updates (elastic#64712) Remove redundant formatting of percentage column (elastic#64948) [SIEM][CASE] Configuration pages UI redesign (elastic#65355) New nav (elastic#64018) [Ingest pipelines] Address copy feedback (elastic#65175) bug fixing (elastic#65387) skip whole suite blocking snapshots (elastic#65377) add related event generation to ancestor nodes (fixes a bug) (elastic#64950) [Canvas] move files from legacy/plugins to plugins (elastic#65283) [SIEM] template timeline UI (elastic#64439) ...
Pinging @elastic/security-solution (Team: SecuritySolution) |
Summary
https://www.figma.com/proto/98ayxwvfEtP9q0GcsQqwe7/Timeline?node-id=14%3A935&scaling=min-zoom
Implementation details:
Add getAllTimeline's new endpointReplace getAllTimeline's graphQL with new endpointChecklist
Delete any items that are not applicable to this PR.
Documentation was added for features that require explanation or tutorialsThis was checked for keyboard-only and screenreader accessibilityThis renders correctly on smaller devices using a responsive layout. (You can test this in your browserThis was checked for cross-browser compatibility, including a check against IE11For maintainers