DEV: Log Reviewable actions (#36076)

With reviewables now being able to have multiple actions performed on
them, we don't want to update the final reviewable state until an action
from every action bundle has been performed.

This change makes use of the new `ReviewableActionLog`, logging actions
when they occur, then checking to see if a reviewable has had all
actions performed before finalising it.
This commit is contained in:
Gary Pendergast
2025-11-20 13:41:40 +11:00
committed by GitHub
parent bfc2bd3fa1
commit 57f2f5a5ea
9 changed files with 378 additions and 15 deletions
@@ -0,0 +1,7 @@
# frozen_string_literal: true
class AddBundleToReviewableActionLogs < ActiveRecord::Migration[8.0]
def change
add_column :reviewable_action_logs, :bundle, :string, default: "legacy-actions", null: false
add_index :reviewable_action_logs, :bundle
end
end