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

[WIP] pdf conversion job #951

Closed
wants to merge 3 commits into from
Closed

Conversation

kreek
Copy link
Contributor

@kreek kreek commented Apr 28, 2017

No description provided.

Copy link
Contributor

@omgitsbillryan omgitsbillryan left a comment

Choose a reason for hiding this comment

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

LGTM a few small comments

RSpec.describe DocumentUploads::PdfConversionJob do
describe '#perform' do
before(:all) do
@file_path = Rails.root.join('spec/fixtures/files/pdf_conversion.jpg')
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's supposed to be

@file_path = Rails.root.join('spec', 'fixtures', 'files', 'pdf_conversion.jpg')

in the unlikely even that this spec is run on an OS where / is not the default separator

before(:all) do
@file_path = Rails.root.join('spec/fixtures/files/pdf_conversion.jpg')
@file_path_converted = Rails.root.join('spec/fixtures/files/pdf_conversion.jpg.pdf')
MiniMagick::Tool::Convert.new do |convert|
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 creating the .jpg right? Can this be abstracted into a helper for readability?

SO Post

@markolson
Copy link
Contributor

I suspect we're going to need pandoc in order to handle .txt and .doc files along with imagemagick for the images.

@kreek
Copy link
Contributor Author

kreek commented May 18, 2017

@markolson cc @jcmeloni-usds @J-Quag are word docs a requirement for the first iteration of document uploads? Devops spidey-sense understandably being triggered by allowing files with macros. We'll have a virus scan that should block those files but it's safer to do only lossless conversion, as with image to PDF, than word to PDF which requires Office or OSS clone (LibreOffice) to reliably convert.

@J-Quag
Copy link
Contributor

J-Quag commented May 19, 2017 via email

@markolson
Copy link
Contributor

HCA backend allowable types look like Word, PDF, RTF and JPG. Not sure what EDU supports, but we can probably just say TXT/RTF, Image and PDF and maybe have a link to print-to-pdf instructions for Word?

@kreek
Copy link
Contributor Author

kreek commented May 27, 2017

New PR for this (as workflow task) against master instead of topic branch

@kreek kreek closed this May 27, 2017
@kreek kreek removed the in progress label May 27, 2017
@kreek kreek deleted the pdf-conversion-job branch January 21, 2019 21:27
aaronyoung-tw added a commit that referenced this pull request May 31, 2023
* [#951] create new route for Virtual Agent JWT proof of concept

[original issue 951](https://github.com/department-of-veterans-affairs/va-virtual-agent/issues/951)
   Co-authored-by: Maurice Okumu <maurice.okumu@thoughtworks.com>
aaronyoung-tw added a commit that referenced this pull request Jun 1, 2023
…s. (#12859)

* [#951] Refactor the Virtual Agent JWT fetch code to use a helper class.
[department-of-veterans-affairs/va-virtual-agent#951]

   Co-authored-by: Maurice Okumu <maurice.okumu@thoughtworks.com>

We refactored the code to allow for the extending of the
common::client::base
aaronyoung-tw added a commit that referenced this pull request Jun 5, 2023
department-of-veterans-affairs/va-virtual-agent#951

1. Removed code associated with the POC.
2. Removed a no-longer-needed feature flag.

   Co-authored-by: Raina Huerta <raina.huerta@thoughtworks.com>
ryan-mcneil pushed a commit that referenced this pull request Dec 11, 2023
* [#951] create new route for Virtual Agent JWT proof of concept

[original issue 951](https://github.com/department-of-veterans-affairs/va-virtual-agent/issues/951)
   Co-authored-by: Maurice Okumu <maurice.okumu@thoughtworks.com>
ryan-mcneil pushed a commit that referenced this pull request Dec 11, 2023
…s. (#12859)

* [#951] Refactor the Virtual Agent JWT fetch code to use a helper class.
[department-of-veterans-affairs/va-virtual-agent#951]

   Co-authored-by: Maurice Okumu <maurice.okumu@thoughtworks.com>

We refactored the code to allow for the extending of the
common::client::base
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.

4 participants