Backfill repository push activity

74267bc7964d · AtlantisPleb · · parent 79b3087d96d9

Backfill repository push activity

Deploy story

What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.

Not deployed through the forge lane

No push, promotion, build, or deploy receipt references this commit (receipts are scanned over a bounded recent window). Changes shipped by full node replacement carry their proof in the release gate receipt instead.

Changed files

  • modified priv/migration_lineages/prior-2026-08-19.json
  • added priv/repo/migrations/20260822120326_backfill_repository_push_activity.exs

Diff

2 files changed, +21 -1

priv/migration_lineages/prior-2026-08-19.json modified +2 -1

@@ -191,7 +191,8 @@

191 191
    20260820204317,
192 192
    20260820211218,
193 193
    20260820220625,
194
    20260821082652
194
    20260821082652,
195
    20260822120326
195 196
  ],
196 197
  "required_tables": [
197 198
    "users",
priv/repo/migrations/20260822120326_backfill_repository_push_activity.exs added +19

@@ -0,0 +1,19 @@

1
defmodule OpenAgents.Repo.Migrations.BackfillRepositoryPushActivity do
2
  use Ecto.Migration
3
4
  def up do
5
    execute("""
6
    UPDATE repositories AS repository
7
    SET updated_at = latest_push.accepted_at
8
    FROM (
9
      SELECT repo, MAX(inserted_at) AS accepted_at
10
      FROM forge_pushes
11
      GROUP BY repo
12
    ) AS latest_push
13
    WHERE repository.storage_key = latest_push.repo
14
      AND repository.updated_at < latest_push.accepted_at
15
    """)
16
  end
17
18
  def down, do: :ok
19
end

This page updates live while a promote is in flight · changelog