Skip to content
This repository was archived by the owner on Aug 26, 2022. It is now read-only.

bug 1205667 - get_tidied_content can return blank#3497

Merged
jwhitlock merged 2 commits intomasterfrom
never-tidy-in-compare-request-1205667
Sep 18, 2015
Merged

bug 1205667 - get_tidied_content can return blank#3497
jwhitlock merged 2 commits intomasterfrom
never-tidy-in-compare-request-1205667

Conversation

@groovecoder
Copy link
Contributor

When a $compare request is made for a large revision,
we want to skip tidy_content and return a warning to the user,
so we don't block requests on the expensive tidy operation.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm worried that an empty string is a valid tidied content. I'd rather return something non-string, like None (changing param to allow_null or async), to specify that no content was returned.

@jwhitlock jwhitlock assigned groovecoder and unassigned jwhitlock Sep 17, 2015
@jwhitlock
Copy link
Contributor

Oh, and test coverage 😄

@groovecoder groovecoder force-pushed the never-tidy-in-compare-request-1205667 branch from def1695 to 8c546d9 Compare September 17, 2015 20:22
When a $compare request is made for a large revision,
we want to skip tidy_content and return a warning to the user,
so we don't block requests on the expensive tidy operation.
@groovecoder
Copy link
Contributor Author

Updated with changes and tests.

@groovecoder groovecoder assigned jwhitlock and unassigned groovecoder Sep 17, 2015
@jwhitlock
Copy link
Contributor

+r was able to get the "Server is rendering the content comparison. Please refresh this page in a few minutes." message, refreshed and got it again, and on third refresh got the content comparison.

jwhitlock added a commit that referenced this pull request Sep 18, 2015
…205667

bug 1205667 - get_tidied_content can return blank
@jwhitlock jwhitlock merged commit 4f282be into master Sep 18, 2015
@groovecoder groovecoder deleted the never-tidy-in-compare-request-1205667 branch September 23, 2015 19:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants