Skip to content

[SVCS-528] Let WB know a request is coming from MFR #292

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

Conversation

AddisonSchiller
Copy link
Contributor

@AddisonSchiller AddisonSchiller commented Oct 24, 2017

This ticket MUST be merged after its Waterbutler counterpart

Ticket

https://openscience.atlassian.net/browse/SVCS-528

Related Waterbutler counterpart PR: CenterForOpenScience/waterbutler#290

Purpose

Changes

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

Side effects

As long as the mfr query param is in effect, none

QA Notes

This must be tested with its WB counterpart to have any effect.

Deployment Notes

@coveralls
Copy link

coveralls commented Oct 24, 2017

Coverage Status

Coverage increased (+0.02%) to 63.851% when pulling 910c201 on AddisonSchiller:feature/SVCS-528-gdoc-improvements into d6f20ba on CenterForOpenScience:develop.

@cslzchen cslzchen self-requested a review October 26, 2017 15:09
@cslzchen cslzchen changed the title [SVCS-528]Let WB know a request is coming from MFR [SVCS-528] Let WB know a request is coming from MFR Oct 26, 2017
Copy link
Contributor

@cslzchen cslzchen left a comment

Choose a reason for hiding this comment

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

MFR side looks good and move to PCR after reviewing WB-side and testing locally. 🎆 🎆

  • For phase 2, we may want to parse and rebuild the url query parameters instead of appending it.

@@ -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

Choose a reason for hiding this comment

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

This is fine since self.url is a literal string instead of an object as long as the URL does not contain fragment parameters.

@cslzchen
Copy link
Contributor

cslzchen commented Dec 5, 2017

Replaces by #303.

@cslzchen cslzchen closed this Dec 5, 2017
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