From 240dfbc1323203829bc9a06c7d32c317c0861a4d Mon Sep 17 00:00:00 2001 From: Nat Dean-Lewis Date: Tue, 28 Jul 2026 17:04:01 +0100 Subject: [PATCH] docs: remove redundant TODO --- app/models/log.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/models/log.rb b/app/models/log.rb index abb652474..3ad9edea0 100644 --- a/app/models/log.rb +++ b/app/models/log.rb @@ -50,7 +50,6 @@ class Log < ApplicationRecord scope :has_old_form_id, -> { where.not(old_form_id: nil) } scope :imported_2023_with_old_form_id, -> { imported.filter_by_year(2023).has_old_form_id } scope :imported_2023, -> { imported.filter_by_year(2023) } - # TODO: CLDC-4273: use .union in filter_by_organisation rather than raw SQL scope :filter_by_organisation, lambda { |orgs, _user = nil| owned = unscoped { where(owning_organisation: orgs).select(:id) } managed = unscoped { where(managing_organisation: orgs).select(:id) }