Skip to content

Releases: CDLUC3/dmptool

v5.31

10 Dec 15:48
d706c70
Compare
Choose a tag to compare
v5.31 Pre-release
Pre-release
  • Fixed an issue with the application name in emails
  • Fixed an issue preventing super admins from merging users

v5.29

03 Dec 17:42
d562e95
Compare
Choose a tag to compare
v5.29 Pre-release
Pre-release

Changes proposed in this PR:

  • Run SQL script to convert existing records in the conditions table so that they are JSON Arrays (see query below)
  • Updated the form partials in app/views/org_admin/conditions/_form.erb.rb to properly send condition data to the controller.
  • Removed all JSON.parse calls in the app/helpers/conditions.rb helper

Made the following changes to simplify this patch and to make it a little more user friendly:

  • The "Add Conditions" button will now say "Edit Conditions" if there are any.
  • Updated the column heading over the "thing that happens when the condition is met" from "Remove" to "Target" since the content of the column can either be questions being removed or an email notification being sent.
  • Conditions can be added or removed (not updated anymore)
  • Hovering over the email of an existing condition displays a tooltip that shows the email message, subject, etc.

You Need to update underlying data within the table so that they are JSON arrays using the following query:

UPDATE conditions
SET option_list = CONCAT(CONCAT('[', REPLACE(REPLACE(REPLACE(option_list, '---\n- \'', '"'), '\'\n- \'', '","'), '\'\n', '"')), ']'),
  remove_data = CONCAT(CONCAT('[', REPLACE(REPLACE(REPLACE(remove_data, '---\n- \'', '"'), '\'\n- \'', '","'), '\'\n', '"')), ']')
where option_list like '---%';

v5.28

19 Nov 20:25
deecfa0
Compare
Choose a tag to compare
v5.28 Pre-release
Pre-release

Fixes #657, #658 and #659

Upgrade to Rails 7.2!

Changes proposed in this PR:

  • Upgrade to Rails 7.2 and Ruby 3.2
  • Unpeg all gems that were specifying a specific version
  • Update all gem and JS dependencies
  • Update deprecated use of @import and $ variable references in all SASS files
  • Rails now uses Zeitwerk exclusively so class/module names matter. Needed to change the application name from DMPRoadmap to DmpRoadmap
  • Ran the rails app:update script tp let Rails 7 build its own version of all the bin/* files and the config/application.rb, config/environments/*.rb files and most initializers
  • Added font awesome woff and ttf files to the app/assets/fonts directory
  • Rails UJS changed a it so needed to update the way it is initialized in application.js
  • Rails ActiveRecord changed the way enums are handled (particularly when they are not mapped directly to a DB column). Needed to switch from enum [variableName] { variableOne: 0, variableTwo: 1 } format to using a constant like VARIABLE_NAME = %w[variableOne variableTwo]
  • ActiveRecord also changed the way field serializers are defined. They all now require a coder to be defined. So had to change all instances like serialize :option_list, Array so that they use named parameters like serialize :option_list, type: Array, coder: JSON
  • When calling super within a method you no longer need to pass the method's input variables directly
  • Rails changed the way it starts up and loads resources. Because of this, the mapping from Rails.configuration.x.dmproadmap.[variableName] to the shorter Rails.configuration.x.[variableName] that happened within the config/initializers/_dmproadmap.rb was not happening. The AnywayConfig gem is still properly loading all variables, but the initializer file is now running before AnywayConfig so it was setting all variables to null or the default values defined in config/dmproadmap.yaml. to correct this we needed to:
    • remove the old config/initializers/_dmproadmap.rb file since it is no longer useful
    • AnywayConfig cannot have nested variables, so flattened all application.[variableName] and organization.[variableName] to application_[variableName] and organization_[variableName]
    • update the config/dmproadmap.yaml file so that it contains all of the default variables that were previously defined in the config/initializers/external_apis/*.rb files.
    • update the AnywayConfig config/configs/dmproadmap_config.rb so that it now contains all variables (there were some that were defined within the old initializers.
    • updated ALL references to those variables. For example max_pages = Rails.configuration.x.application.api_max_page_size became max_pages = Rails.configuration.x.dmproadmap.application_api_max_page_size
    • Update rack-attack config to be more restrictive for the contact us form

v5.27

05 Nov 18:24
48f592d
Compare
Choose a tag to compare
v5.27 Pre-release
Pre-release

Bug fix for DOCX downloads containing missing content

  • Another .gsub() replacement regex was appended to existing one in the clean_html_for_docx_creation(html) function in plan_exports_controller.rb. This should find those cases described above, and replace the
    tag with a closing

    and an opening

    tag.

v5.26

25 Sep 15:44
0a1aba5
Compare
Choose a tag to compare
v5.26 Pre-release
Pre-release
  • Fix for issue with emails getting sent to plan collaborators #650
  • Fix for OAuth2 sign in forms #651

v5.25-rc3

24 Sep 15:43
0a1aba5
Compare
Choose a tag to compare
v5.25-rc3 Pre-release
Pre-release
  • Update to mailer to fix mixing of named and unnamed params in the function def

v5.25-rc2

24 Sep 15:36
7d22521
Compare
Choose a tag to compare
v5.25-rc2 Pre-release
Pre-release

mistakenly stemmed rc1 off of the wrong branch

  • Fix for issue with emails getting sent to plan collaborators #650
  • Fix for OAuth2 sign in forms #651

v5.25-rc1

23 Sep 23:22
7d22521
Compare
Choose a tag to compare
v5.25-rc1 Pre-release
Pre-release
  • Fix for issue with emails getting sent to plan collaborators #650
  • Fix for OAuth2 sign in forms #651

v5.24

19 Aug 22:33
68606b9
Compare
Choose a tag to compare
v5.24 Pre-release
Pre-release

Changes proposed in this PR:

  • We missed 2 partials when updating where/how the DMP ID gets stored for the pilot project. Updated the partials to use the new dmp_id_for_display function. Addresses #576
  • Updated all gem and JS dependencies

v5.23

31 Jul 22:41
bb4fa38
Compare
Choose a tag to compare
v5.23 Pre-release
Pre-release
  • Fix for the ROR Service so it can accommodate the new Zenodo metadata format and download the ROR zip archive