fix: review fixes for webhook and auto mode (#8)

Clear available_* only when the deployed ref equals it, drop the unused
poll source, stop leaking internal errors to CI, use the request-scoped
logger, validate X-Request-ID, re-read jobs once after the timeout,
report refused when no target ref exists, and tidy UI, deploy and docs.
This commit is contained in:
2026-10-12 20:48:43 +02:00
parent f25a7a7779
commit b1d6e5e705
15 changed files with 162 additions and 83 deletions
+2 -3
View File
@@ -56,7 +56,7 @@ type Service struct {
// AvailableRef is the newest ref a webhook or poll reported for this
// service; "" if none, or if a later job already deployed it.
AvailableRef string
AvailableSource string // SourceWebhook or SourcePoll; "" when AvailableRef is empty
AvailableSource string // SourceWebhook; "" when AvailableRef is empty
AvailableAt *time.Time
FirstSeenAt time.Time
UpdatedAt time.Time
@@ -72,13 +72,12 @@ const (
// Sources of an available ref.
const (
SourceWebhook = "webhook"
SourcePoll = "poll"
)
// Available is a newer ref reported for a service.
type Available struct {
Ref string
Source string // SourceWebhook or SourcePoll
Source string // SourceWebhook
At time.Time
}