hub v0.51.0: DR-tier-by-default — per-customer dr_tier flag (default ON, legacy backfill from reality), cascade stages, WG-registration auto-provision hook, offsite-requires-DR guard (F-6 policy), host-page capability chips (inactive=neutral)

Claude-Session: https://claude.ai/code/session_01NptTCFtu7dz2Ru89qHRagN
This commit is contained in:
2026-07-12 20:37:00 +02:00
parent 007946faf4
commit 448a68237a
18 changed files with 824 additions and 87 deletions
+3 -1
View File
@@ -67,7 +67,9 @@ func TestApplyOffsite_ClientDisconnectMidProvision(t *testing.T) {
r := httptest.NewRequest(http.MethodPost,
"/configs/cust-web/edit?offsite_enabled=on&offsite_type=shared&offsite_quota_gb=50", nil)
r = r.WithContext(reqCtx)
cfg := &store.CustomerConfig{CustomerID: "cust-web", ConfigJSON: "{}"}
// DRTier: offsite requires the DR tier since v0.51.0 (the F-6 coupling) — this test is about
// the disconnect atom, so the gate is satisfied.
cfg := &store.CustomerConfig{CustomerID: "cust-web", ConfigJSON: "{}", DRTier: true}
err := s.applyOffsite(r.Context(), r, cfg)