From b8245c39971c6d0fb07b9237f0652223948a0eeb Mon Sep 17 00:00:00 2001 From: shilpigoeldev <83065526+shilpigoeldev@users.noreply.github.com> Date: Tue, 12 Nov 2024 09:53:06 +0000 Subject: [PATCH 1/3] Added another rule for missing SRI (#128) * Added another rule for missing SRI * Corrected the rule to single out particular case --- .../providers/leeds/leeds_handler_colorectal.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/import/colorectal/providers/leeds/leeds_handler_colorectal.rb b/lib/import/colorectal/providers/leeds/leeds_handler_colorectal.rb index 3c152006..695c33c0 100644 --- a/lib/import/colorectal/providers/leeds/leeds_handler_colorectal.rb +++ b/lib/import/colorectal/providers/leeds/leeds_handler_colorectal.rb @@ -369,6 +369,17 @@ def genes_from_mtype %w[MLH1 MSH2 MSH6 PMS2 EPCAM] when /r211/ %w[APC BMPR1A EPCAM GREM1 MLH1 MSH2 MSH6 MUTYH NTHL1 PMS2 POLD1 POLE PTEN SMAD4 STK11] + when /confirmation/ + genes_for_confirmation_mtype + else + [] + end + end + + def genes_for_confirmation_mtype + if @indicationcategory == '11450' && @geno == 'mlpa del confirmation +ve' && + @report.match(/familial\spathogenic\sdeletion\sof\sexons\s16-19/ix) + %w[MLH1] else [] end From 57038a2ca0e7ca58b37819071ac9c50d848ba2c7 Mon Sep 17 00:00:00 2001 From: bshand Date: Fri, 22 Nov 2024 09:24:54 +0000 Subject: [PATCH 2/3] Use Rails 7.0 application defaults [NDRS2-2253] (#130) --- config/application.rb | 15 +- .../new_framework_defaults_7_0.rb | 145 ------------------ config/initializers/wrap_parameters.rb | 14 -- test/fixtures/project_outputs.yml | 4 +- test/fixtures/pseudo/death_data.yml | 3 +- test/fixtures/pseudo/ppatients.yml | 6 +- test/fixtures/pseudo/prescription_data.yml | 6 +- test/fixtures/users.yml | 6 + 8 files changed, 31 insertions(+), 168 deletions(-) delete mode 100644 config/initializers/new_framework_defaults_7_0.rb delete mode 100644 config/initializers/wrap_parameters.rb diff --git a/config/application.rb b/config/application.rb index 073ba55b..135ca1f2 100644 --- a/config/application.rb +++ b/config/application.rb @@ -13,7 +13,7 @@ module Mbis class Application < Rails::Application # Initialize configuration defaults for originally generated Rails version. - config.load_defaults 6.1 + config.load_defaults 7.0 # Configuration for the application, engines, and railties goes here. # @@ -70,5 +70,18 @@ class Application < Rails::Application # TODO: Old Rails 6.0 default; disable this ActiveSupport.utc_to_local_returns_utc_offset_times = false + + # TODO: Old Rails 6.1 default; disable this + # Fails rails test test/models/concerns/workflow/model_test.rb:180 + config.active_support.executor_around_test_case = false + + # TODO: Old Rails 6.1 default; disable this + # Fixtures are incomplete, e.g. test/fixtures/memberships.yml needs to be defined + config.active_record.verify_foreign_keys_for_fixtures = false + + # Old Rails 6.1 default, required by devise_saml_authenticatable version 1.9.1 + # cf. https://github.com/apokalipto/devise_saml_authenticatable/issues/237 + # If we don't have this, the redirect when logging out from ADFS throws an application error. + Rails.application.config.action_controller.raise_on_open_redirects = false end end diff --git a/config/initializers/new_framework_defaults_7_0.rb b/config/initializers/new_framework_defaults_7_0.rb deleted file mode 100644 index 099df580..00000000 --- a/config/initializers/new_framework_defaults_7_0.rb +++ /dev/null @@ -1,145 +0,0 @@ -# rubocop:disable Layout/LineLength, Layout/EmptyLines -# Be sure to restart your server when you modify this file. -# -# This file eases your Rails 7.0 framework defaults upgrade. -# -# Uncomment each configuration one by one to switch to the new default. -# Once your application is ready to run with all new defaults, you can remove -# this file and set the `config.load_defaults` to `7.0`. -# -# Read the Guide for Upgrading Ruby on Rails for more info on each option. -# https://guides.rubyonrails.org/upgrading_ruby_on_rails.html - -# `button_to` view helper will render `