Repository navigation
fix(delete): Fix soft delete crash when sketch was soft_deleted #3860
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
Merged
jaegeral
merged 15 commits into
google:master
from
jaegeral:2026-06-22-cli-soft-delete-crash
Sep 24, 2026
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
699df7b
add test case and fix
jaegeral 6be9822
Update cli_client/python/timesketch_cli_client/commands/sketch.py
jaegeral 89fe23d
fix lint
jaegeral 3cff227
fix lint
jaegeral 48d2e5d
pylint
jaegeral fd82b96
improve
jaegeral dd2da18
improve
jaegeral b417bc9
Merge branch 'master' into 2026-06-22-cli-soft-delete-crash
jkppr 67cb2d3
Merge branch 'master' into 2026-06-22-cli-soft-delete-crash
jaegeral ca5bd25
have a better error message when not using force_delete and return re…
jaegeral bbc3bc2
lint and black
jaegeral b485846
Merge branch 'master' into 2026-06-22-cli-soft-delete-crash
jaegeral 9c684c3
Merge branch 'master' into 2026-06-22-cli-soft-delete-crash
jaegeral b7fbe94
Update cli_client/python/timesketch_cli_client/commands/sketch.py
jaegeral 3bc044a
Update cli_client/python/timesketch_cli_client/commands/sketch.py
jaegeral File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
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.
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.
If I'm not mistaken, the API (_get_sketch_for_admin) returns
timelines: []. This means for admins, the dry-run here will show no timelines, but--force_deletewill still permanently delete them from the DB.That seems a bit risky because the admin won't see what they are actually deleting. Or is this intentional?
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.
oh yeah it might be good to at least mention the id and status of the timeline, we do not need to expose the name and description for admins.
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.
DOne ptal, I now return redacted info and I also added another permission check in the get_sketch_for_admin just to be on the safe side