Hub 2.19.0: the server agent's releases; Update agent picks one
- AgentRelease (migration 20261123150000_agent_release): the agent's releases, apart from the products' so licences and billing are untouched. - Release sources can be for the Server agent; the defaults include it (monorepo agent@ tags, apps/agent/WHATS-NEW.md). Same sync rules as products. A saved list without it gets an "Add the agent's source" button on the Releases page. - GET /api/admin/agent-releases; server summaries carry agentLatest; update-agent jobs go to a known agent release, the latest when none is asked for (agentTag). - Update agent is a ReleaseSelect with the chosen version's notes; the Servers list and a server's page say when a newer agent is out; the Releases page shows agent releases (Server agent filter, Everything newest first by date). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
-- Hub 2.19.0: the server agent's releases, from its release source (Releases page, Update agent).
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "AgentRelease" (
|
||||
"id" TEXT NOT NULL,
|
||||
"version" TEXT NOT NULL,
|
||||
"notes" TEXT NOT NULL DEFAULT '',
|
||||
"urgent" BOOLEAN NOT NULL DEFAULT false,
|
||||
"releasedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||
|
||||
CONSTRAINT "AgentRelease_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "AgentRelease_version_key" ON "AgentRelease"("version");
|
||||
|
||||
@@ -290,6 +290,19 @@ model Release {
|
||||
@@unique([product, version])
|
||||
}
|
||||
|
||||
// Hub 2.19.0: releases of the server agent, from its release source (tags agent@1.2.3, notes in
|
||||
// apps/agent/WHATS-NEW.md), read by the same sync as the products'. The agent isn't a product (no
|
||||
// licences or billing), so its releases have their own table. Update agent picks from them.
|
||||
model AgentRelease {
|
||||
id String @id @default(uuid())
|
||||
version String @unique
|
||||
notes String @default("")
|
||||
urgent Boolean @default(false)
|
||||
releasedAt DateTime @default(now())
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
enum NoticeLevel {
|
||||
info
|
||||
maintenance
|
||||
|
||||
Reference in New Issue
Block a user