Skip to content

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.

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
3 participants