-
Notifications
You must be signed in to change notification settings - Fork 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
Delete all linked report when clearing optimistic chat and transaction error #44923
Merged
arosiclair
merged 15 commits into
Expensify:main
from
bernhardoj:fix/43481-delete-report-when-error
Jul 15, 2024
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
6363963
delete all linked report when clearing optimistic chat and transactio…
bernhardoj 0925b52
Merge branch 'main' into fix/43481-delete-report-when-error
bernhardoj af16ea6
lint
bernhardoj 35cd311
access the report from ReportConnection
bernhardoj 51cf9e9
pass missing argument
bernhardoj 4e0171d
Merge branch 'main' into fix/43481-delete-report-when-error
bernhardoj 1a0c0c3
early return when deleting the error report
bernhardoj 14aceb5
filter out falsey value
bernhardoj 360f07c
prettier
bernhardoj 5fd50f0
fix typing
bernhardoj fccb7cb
fix typing
bernhardoj 4b97867
Merge branch 'main' into fix/43481-delete-report-when-error
bernhardoj 81241ac
only accept report object
bernhardoj ba95292
make delete all child report optional and pass the chat report instea…
bernhardoj 1e6c518
lint
bernhardoj 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 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 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 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.
Let us do an early return here to keep possible regressions at bay. Also, I think doing any further steps does not make sense when the chat report and all related reports are deleted. Something like this can be done within the
if
condition here. What do you think?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.
That makes sense, updated!