Skip to content

v5.17

Pre-release
Pre-release
Compare
Choose a tag to compare
@briri briri released this 27 Jun 00:30
· 110 commits to v5 since this release

Fixes for #601

  • Add an override so that the DMPUpload file field is visible

Cleanup of JS build:

  • Rebuilt package.json file from the ground up
  • Removed popper.js (we no longer use), hogan.js (don't see it used anywhere and it is no longer maintained), puppeteer (no reference to it anywhere), rails-erb-loader (we removed the use of this in a recent release), react-scripts (was causing a lot of vulnerability alerts for its dependencies and is only used to create new React apps),
  • Fixed some deprecated math calculations in the Rails sass files
  • updated webpack config which was using deprecated babel plugins

Fixes for 502 errors #605.

  • Added index to the settings table
  • Performance improvements to the registry_orgs_controller.rb
  • Performance improvements to the answers_controller.rb
  • Performance improvements to the plans_controller.rb and app/view/branded/plans/_download_form.html.erb

Fixes for #604.

  • Replace use of wicked_pdf gem which used the now defunct wkhtmltopdf package with the grover gem which uses puppeteer and headless chrome. This occurs in the following files: plan_exports_controller.rb, pdf_publisher_job.rb and public_pages_controller
  • Updated Gemfile to remove the aforementioned gems and add grover
  • Removed wkhtmltopdf from Rails config
  • Added an initializer to setup grover properly
  • Added Roboto and Tinos fonts for use by Puppeteer
  • Add the publisher_job_status field to the templates table and added narrative to the template model so that we can store the PDF version of a template in ActiveStorage
  • Update the Template publication workflow so that it pre-renders the template as a PDF and stores it in ActiveStorage
  • Update both the public facing "Funder Requirements" and "Public Plans" pages to return the pre-rendered PDFs from ActiveStorage when available.
  • Update the PdfPublisherJob to use Grover to build PDFs
  • Added new tasks for Capistrano so that it will install Chrome on the server if it does not already exist and will also install the Roboto and Tinos fonts
  • Added Rake task to pre-render all public templates
  • Updated gem and JS dependencies