Skip to content
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

Fix TransactionTooLargeException when opening a diff with lots of comments #1116

Merged
merged 2 commits into from Sep 20, 2021

Conversation

Fs00
Copy link
Contributor

@Fs00 Fs00 commented Sep 19, 2021

This PR fixes a crash that was occurring when tapping on a file (in PR Files tab) to open the diff in PR PowerShell/PowerShell#9900, caused by a TransactionTooLargeException due to lots of big review comments.
Here I've used the same approach that has been used for the CommitFragment (gzipping the data into the bundle), though I had to write new methods for this specific context. After fixing the issue, I did my best to remove the duplication I had introduced.

@maniac103
Copy link
Collaborator

LGTM, but can you please squash the deduplication + type annotation fix commits?

@Fs00
Copy link
Contributor Author

Fs00 commented Sep 20, 2021

Ok, do you want a single commit for everything or one for the fix + one for the deduplication?

@maniac103
Copy link
Collaborator

Either is fine.

@Fs00
Copy link
Contributor Author

Fs00 commented Sep 20, 2021

Squashed.

@maniac103 maniac103 merged commit cdf3dc2 into slapperwan:master Sep 20, 2021
@Fs00 Fs00 deleted the fix-diffs-crash branch September 20, 2021 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants