Maintenance::BackfillTreeNodeToMboProfilesTask

Source code
# frozen_string_literal: true

# DEPRECATED — no longer functional.
#
# This task relied on `mbo_profiles.tree_node_id` and `mbo_profiles.primary` columns
# that were removed by CleanupMboProfilesTreeNodeColumns (2026-03-24).
# Running it now raises NotImplementedError because the task is intentionally disabled.
#
# Use Maintenance::SetFirstMboProfileAsPrimaryTask instead to promote the oldest
# TreeNodeToMboProfile join record to primary for any tree node that lacks one.
class Maintenance::BackfillTreeNodeToMboProfilesTask < MaintenanceTasks::Task
  def collection
    raise NotImplementedError,
          'BackfillTreeNodeToMboProfilesTask is deprecated. ' \
          'Use Maintenance::SetFirstMboProfileAsPrimaryTask instead.'
  end

  def process(_record)
    raise NotImplementedError, 'BackfillTreeNodeToMboProfilesTask is deprecated.'
  end
end

Previous Runs

Succeeded
#90

Processed 16,731 out of 16,731 items (100%).

Ran for 9 minutes, finished .

Metadata:
user_id
-1