v3.0.2
This release contains a series of bug fixes introduced by the v3.0 upgrade to Rails 5
Developers
We have written up a high level description of the DB schema along with explanations of each table and field's use within the system: https://github.com/DMPRoadmap/roadmap/wiki/DB-Schema
- Addressed an issue that was allowing a user to select non-funder organizations on the Plan details page
- Fixed an issue that was preventing the JSON Web Tokens from being decoded properly
- Fixed an issue with the mysql tests GitHub action
- Fixed an issue with API V1 deserialization test that was improperly comparing dates #2774
- Fixed an issue that was causing the
plans/
endpoint in API V1 to return a 500 error #2776 - Fixed an issue with one-click plan creation #2800
- Fixed an issue with table sorting/pagination #2785
- Fixed an issue that prevents branded content from being used when running Rails as a daemon #2779
- Addressed an issue that displayed the 'Create plan' icon on the public 'Funder Templates' page to users who are not logged in #2804
- Updates to optimize system performance by changing ActiveRecord method calls on associations to Array methods. For example:
@plan.answers.where(foo: 'bar').order(:created_at)
to@plan.answers.select { |a| a.foo == 'bar' }.sort { |a,b| a.created_at <=> b.created_at }
- Removed the old
app/helpers/version_helper.rb
which attempted to execute agit
command. The version/commit information it collected was used on theapp/views/layouts/application.html.erb
file which is typically overridden. Having the code in place was problematic in situations where people use tools like Capistrano for application deployment and the deployed code is not a git repository. - Updated the Perm model to use the Rails cache so that the system is not querying the DB multiple times
- Fixed an issue with the Metadata Standard question type that was preventing the answer from saving properly. #2826
- Updated all calls to
administerable_by?
andeditable_by?
on the Plan model to require the user's id instead of the object. For example:@plan.administerable_by?(current_user)
to@plan.administerable_by?(current_user.id)
- Fixed a bug in the
bin/setup
file
Dependency updates
- Bump the wkhtmltopdf-binary gem from 0.12.6 to 0.12.6.5
- Bump the elliptic gem from 6.5.3 to 6.5.4
Thanks to @nicolasfranck and @yjarosz for their contributions to this release 👍🏻