-
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] Fix auto save for template timeline #65001
Conversation
Pinging @elastic/siem (Team:SIEM) |
@elasticmachine merge upstream |
@@ -236,6 +237,9 @@ export const createTimelineEpic = <State>(): Epic< | |||
...savedTimeline, | |||
savedObjectId: response.timeline.savedObjectId, | |||
version: response.timeline.version, | |||
timelineType: response.timeline.timelineType ?? TimelineType.default, | |||
templateTimelineId: response.timeline.templateTimelineId ?? null, | |||
templateTimelineVersion: response.timeline.templateTimelineVersion ?? null, | |||
isSaving: false, |
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.
I put these back as after updating/creating the timeline, we need to assign the value back to the store from api's response. Otherwise we might encounter with error like timeline's version conflict
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* update save timeline * fix types * allow template timeline to be updated via import * fix unit tests * fix for review * handle update timeline Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* update save timeline * fix types * allow template timeline to be updated via import * fix unit tests * fix for review * handle update timeline Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Pinging @elastic/security-solution (Team: SecuritySolution) |
Summary
I found a bug in my create template timeline PR, it is after updating a template timeline, it becomes a normal timeline as I didn't add relevant attributes into open timeline's modal
so we didn't sent the right info when persisting timeline.
also after I adding these, I still get a templateTimelineVersion conflict, therefore I'd like to update my persistTimeline api to allow sending the same templateTimelineVersion, and I'll bump the version from api's side.
Checklist
Delete any items that are not applicable to this PR.
For maintainers