Skip to content

[SVCS-488] Improve docx rendering - OSF Part #8002

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

cslzchen
Copy link
Collaborator

@cslzchen cslzchen commented Dec 7, 2017

Tickets and Related PRs

Service Ticket: https://openscience.atlassian.net/browse/SVCS-488
MFR PR: CenterForOpenScience/modular-file-renderer#304

Purpose

Let OSF expose whether a file is public to WB and MFR. For MFR can use an external rendering service provided by Microsoft to render public .docx files.

Changes

Add publice_file = node.is_public as query parameter to the download_url,
which is a query parameter for the render_url,
which is returned by addon_view_file(),
which is called by route addon_view_or_download_file().

This change is based on the discussion with @sloria and @AddisonSchiller a while ago.

Side Effects

No

QA Notes

Please refer to the Service Ticket or the Service PR.

Deployments Notes

This PR must be merged before its MFR counterparts. The change won't take effect (nor cause any issues) until the MFR PR is merged.

 download_url in `addon_view_file()`, which is
 called by `addon_view_or_download_file()`.
 The `is_public` comes from the node to which
 the file belongs.
@brianjgeiger brianjgeiger merged commit bab6c3c into CenterForOpenScience:develop Dec 11, 2017
@cslzchen cslzchen deleted the feature/svcs-488-improve-docx branch August 1, 2018 21:17
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.

2 participants