GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(relay): tunnel limit counts abandoned reprovisions and frees fail… · pingdotgg/t3code@9ebca5f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • infra/relay
    • migrations/postgres/20261028062605_backfill_withdrawn_tunnel_allocations
      • migration.sql
      • snapshot.json
    • package.json
    • src/environments
      • ManagedEndpointAllocations.test.ts
      • ManagedEndpointAllocations.ts
      • ManagedEndpointProvider.test.ts
      • ManagedEndpointProvider.ts
      • ManagedTunnelLimits.test.ts
      • ManagedTunnelLimits.ts
  • pnpm-lock.yaml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎infra/relay/migrations/postgres/20261028062605_backfill_withdrawn_tunnel_allocations/migration.sql‎

Copy file name to clipboard
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
-- Teardown claims used to bump updated_at past the link's revoke or publish-only write, so a
2+
-- failed deprovision now reads as an unfinished relink. Give those rows the updated_at the
3+
-- current write rule would have left. Touches only withdrawn links' live tunnels; idempotent.
4+
UPDATE "relay_managed_endpoint_allocations" AS a
5+
SET "updated_at" = l."updated_at"
6+
FROM "relay_environment_links" AS l
7+
WHERE l."user_id" = a."user_id"
8+
AND l."environment_id" = a."environment_id"
9+
AND a."tunnel_id" IS NOT NULL
10+
AND a."tunnel_released_at" IS NULL
11+
AND (l."revoked_at" IS NOT NULL OR l."managed_tunnels_enabled" = false)
12+
AND l."updated_at" < a."updated_at";

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.