First implementation of "Duplicate" button for events in timeline#91
Merged
whikernel merged 4 commits intodfir-iris:developfrom Apr 12, 2022
Merged
First implementation of "Duplicate" button for events in timeline#91whikernel merged 4 commits intodfir-iris:developfrom
whikernel merged 4 commits intodfir-iris:developfrom
Conversation
whikernel
approved these changes
Apr 12, 2022
Contributor
whikernel
left a comment
There was a problem hiding this comment.
Nice one, thanks ! That's super usefull 👍
For us after merge :
- Add on_preload_event_duplicate as hook in post_init and documentation.
- Add missing duplicate_event JS call in modal
- Restrain scope of get_event_assets_id
whikernel
added a commit
to dfir-iris/iris-doc-src
that referenced
this pull request
Apr 12, 2022
whikernel
added a commit
to dfir-iris/dfir-iris.github.io
that referenced
this pull request
Apr 12, 2022
Merged
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.
This pull request implements a "Duplicate" button in both "cogwheel" menu and "quick action" menu in the modal.
Added a
/case/timeline/events/duplicate/<int:cur_id>route for that, which duplicates the selected Event based on Id and creates a new one with identical values with the exception of:No DB model changes needed besides helper functions.
Let me know if I can help implement this better and please have a look at the module hooks, I am not sure they are correct. I took them from the "Add event" function because they are mostly identical.