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

[SVCS-528] Improve gdoc rendering - MFR Part #303

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

cslzchen
Copy link
Contributor

@cslzchen cslzchen commented Dec 5, 2017

Ticket

https://openscience.atlassian.net/browse/SVCS-528
WB counterpart: CenterForOpenScience/waterbutler#304

Purpose

This PR replaces #292. Credit goes to @AddisonSchiller 🎆 🎆 .

  • Let WB know that the request is from MFR.
  • When rendering .gdoc, MFR will receive a .pdf from WB and render this file using pdf renderer.

Changes

  • Append a mfr query param to WB urls to let it know the request is coming from MFR.
  • Move .gdoc extension from unoconv renderer/exporter to pdf renderer

Side effects

None

QA Notes

Test that .gdoc rendering works as usual.

Deployment Notes

This PR must be merged/deployed at the same time as its WB counterpart.
Same to the WB PR, this is blocked by @TomBaxter 's V3 update: CenterForOpenScience/waterbutler#276.

@coveralls
Copy link

coveralls commented Dec 5, 2017

Coverage Status

Coverage increased (+0.02%) to 68.034% when pulling 9d9ccec on cslzchen:feature/svcs-528-improve-gdoc into 8bb2dd4 on CenterForOpenScience:develop.

@@ -104,6 +104,8 @@ def NAME(self):

try:
self.url = self.request.query_arguments['url'][0].decode('utf-8')
# TODO should probably use furl here, but maybe wait till after furl is upgraded
self.url += '&mfr=true'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need to use furl or UrlLib.

@cslzchen cslzchen force-pushed the feature/svcs-528-improve-gdoc branch from 9d9ccec to 5a88dd5 Compare December 5, 2017 20:53
@coveralls
Copy link

coveralls commented Dec 5, 2017

Coverage Status

Coverage remained the same at 68.016% when pulling 5a88dd5 on cslzchen:feature/svcs-528-improve-gdoc into 8bb2dd4 on CenterForOpenScience:develop.

@cslzchen cslzchen changed the title [SVCS-528] Improve gdoc rendering (MFR Part) [SVCS-528] [Blocked] Improve gdoc rendering (MFR Part) Dec 6, 2017
@cslzchen cslzchen changed the title [SVCS-528] [Blocked] Improve gdoc rendering (MFR Part) [SVCS-528] [Blocked] Improve gdoc rendering - MFR Part Dec 7, 2017
@cslzchen cslzchen changed the title [SVCS-528] [Blocked] Improve gdoc rendering - MFR Part [SVCS-528] Improve gdoc rendering - MFR Part Jan 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants