Received: from mail.netlandish.com (mail.netlandish.com [174.136.98.166]) by code.netlandish.com (Postfix) with ESMTP id 4D39335 for <~netlandish/links-dev@lists.code.netlandish.com>; Sun, 10 Aug 2025 15:17:55 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.176; helo=mail-vk1-f176.google.com; envelope-from=peter@netlandish.com; receiver= Authentication-Results: mail.netlandish.com; dkim=pass (1024-bit key; unprotected) header.d=netlandish.com header.i=@netlandish.com header.b=N+eufCyG Received: from mail-vk1-f176.google.com (mail-vk1-f176.google.com [209.85.221.176]) by mail.netlandish.com (Postfix) with ESMTP id E42011D67F2 for <~netlandish/links-dev@lists.code.netlandish.com>; Sun, 10 Aug 2025 15:18:44 +0000 (UTC) Received: by mail-vk1-f176.google.com with SMTP id 71dfb90a1353d-539360cc274so2548278e0c.3 for <~netlandish/links-dev@lists.code.netlandish.com>; Sun, 10 Aug 2025 08:18:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netlandish.com; s=google; t=1754839123; x=1755443923; darn=lists.code.netlandish.com; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=tRJRYvXZIiHD5MCHfjj2uCMvt1i3FzZoNqiPYIiqkXw=; b=N+eufCyGAKQWlBve7G28x+GCGJW/V7+tcZBbHqEDQWIUMjp5LyaSReJHsM6LdBD0W0 LJtnPK0n6LZQC55GkfMdzsJ3wHstMA90Tk1EGDom0lvbMxY3N9xIOtFbCKAih5BTaO0n XV/y6cWcGW/ZjNEpseJvCbJg+2wpB9RSY9ZAU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754839123; x=1755443923; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tRJRYvXZIiHD5MCHfjj2uCMvt1i3FzZoNqiPYIiqkXw=; b=mUWJ6oFa+/ojftsQf6Ja2gYvX//l6qR416gYUOAtmYzZx+8f5PZrxr5rmwiLb2bHhY o2YlSPiv+sItrsGlj4MdIjumHgX4KY9UqID+1obyh81XfsLflcjAKbQ90ei/f0rq9YxW PdxToPoy7kVj+62K1mUeE/eXsZUnCsL9B1RtiylETGCk+4wx7DoK7BPfzKfPdQQLmVwH sxVdu3u9S4jexzUMeSHPx2HH4a8D+WYDFKoEnnFZ9lq+RSIQxN0GALRu02DJCxAPjvfC pPDMJ9x2VOnIaRSA315RmdMJUnQ2QXzf8jACsNkhmxNeBGJySHTT1lVxrZd77ElYBalS dUHw== X-Gm-Message-State: AOJu0YxB2XXbqxWLjsPDkBwi/rY9s6XDAO4PNQd7fuC2zUvsHjIDEwp5 /6gZn8hxcTXkIszKUA1MXTuHFRMecx9fA2Trmv2Ko68pP63zuFrDtGhj/CX2rweJX3Nb9LpQRDm CeEtEEoNh/Q== X-Gm-Gg: ASbGnctHPSSTEaEfr9NrcQHm/xVh/s6L/gageNkwnU8+BCksEEnLkB/3QWBePVtYacC BLF4bteUV4E47H9KliAgMZuekmHrv/j7l9UAagX6Ql7NGz6RZCoHzHNvH5vrHUArsC/yWQJhJR6 kjDhK9VCX/Yk2IReeYFLYa22bA1RQgOgG1QwhVEv8PrTWdBs20NMSX/q4kgzmv9I9WRA6AesAig 8GCik6JCF+dLS4dJ4xz98X8krualUAQRPoyr3ZQIuOtSdFF/YWCvC0QJuDV/U+CZ1bcC0sA1Wlb Ioyo1qq4m/GNuAcpV0+oyqyGSiMOp2y8WI1DkgGfck6COoTGLxUKGkP7xKXf6yBlRWE9AqAX1ki +QbNiPfN0h6ctNPO4Z28QcR4= X-Google-Smtp-Source: AGHT+IHxYlv5uL901FHghtWbMpozqoCbTXI2e9oGuv7xB6+5iCfK9ypvuj2WflBQsK/WjPwnLy+Okw== X-Received: by 2002:a05:6122:46a4:b0:539:8b51:fbe8 with SMTP id 71dfb90a1353d-53a4ac335c1mr3754599e0c.0.1754839123411; Sun, 10 Aug 2025 08:18:43 -0700 (PDT) Received: from localhost ([2803:2d60:1107:87f:c9af:5f06:cc58:3156]) by smtp.gmail.com with UTF8SMTPSA id 71dfb90a1353d-53adcb6260csm681069e0c.11.2025.08.10.08.18.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Aug 2025 08:18:42 -0700 (PDT) From: Peter Sanchez To: ~netlandish/links-dev@lists.code.netlandish.com Cc: Peter Sanchez Subject: [PATCH links] gobwebs bump Date: Sun, 10 Aug 2025 09:18:37 -0600 Message-ID: <20250810151840.5376-1-peter@netlandish.com> X-Mailer: git-send-email 2.49.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Potential issues as this moves the application to the new DBI interface that provdes a single (by default) transaction across the entire request cycle. Changelog-updated: gobwebs bump and move to DBI interface. --- cmd/test/helpers.go | 4 ++-- go.mod | 12 ++++++------ go.sum | 24 ++++++++++++------------ 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/cmd/test/helpers.go b/cmd/test/helpers.go index 36feda8..6737c32 100644 --- a/cmd/test/helpers.go +++ b/cmd/test/helpers.go @@ -192,7 +192,7 @@ func NewAPITestServer(t *testing.T) (*server.Server, *echo.Echo, string) { srv = srv. DefaultMiddlewareWithConfig(mwConf). WithMiddleware( - database.Middleware(db), + database.DBIMiddleware(db), core.RemoteIPMiddleware, core.TimezoneContext(), crypto.Middleware(entropy), @@ -280,7 +280,7 @@ func getMWChain(s *server.Server, f echo.HandlerFunc, user *models.User) echo.Ha handlerFunc = authMiddleware(handlerFunc) sessionMiddleware := sessions.LoadAndSave(s.Session) handlerFunc = sessionMiddleware(handlerFunc) - dbMiddleware := database.Middleware(s.DB) + dbMiddleware := database.DBIMiddleware(s.DB) return dbMiddleware(handlerFunc) } diff --git a/go.mod b/go.mod index c9ae738..e70f2c7 100644 --- a/go.mod +++ b/go.mod @@ -30,12 +30,12 @@ require ( golang.org/x/text v0.27.0 golang.org/x/time v0.8.0 hg.code.netlandish.com/~netlandish/sendygo v0.0.0-20230124192435-bbf347776232 - netlandish.com/x/gobwebs v0.1.3 - netlandish.com/x/gobwebs-auditlog v0.2.1 - netlandish.com/x/gobwebs-formguard v0.2.1 - netlandish.com/x/gobwebs-graphql v0.2.2 - netlandish.com/x/gobwebs-oauth2 v0.2.1 - netlandish.com/x/gobwebs-ses-feedback v0.2.1 + netlandish.com/x/gobwebs v0.1.5 + netlandish.com/x/gobwebs-auditlog v0.2.2 + netlandish.com/x/gobwebs-formguard v0.2.3 + netlandish.com/x/gobwebs-graphql v0.2.3 + netlandish.com/x/gobwebs-oauth2 v0.2.2 + netlandish.com/x/gobwebs-ses-feedback v0.2.3 petersanchez.com/x/carrier v0.2.3 petersanchez.com/x/carrier/ses v0.0.0-20250114214955-7f5d9b835a85 petersanchez.com/x/carrier/smtp v0.0.0-20250114214955-7f5d9b835a85 diff --git a/go.sum b/go.sum index 3e8a4fb..a0f957a 100644 --- a/go.sum +++ b/go.sum @@ -2578,18 +2578,18 @@ modernc.org/z v1.0.1-0.20210308123920-1f282aa71362/go.mod h1:8/SRk5C/HgiQWCgXdfp modernc.org/z v1.0.1/go.mod h1:8/SRk5C/HgiQWCgXdfpb+1RvhORdkz5sw72d3jjtyqA= modernc.org/z v1.2.20/go.mod h1:zU9FiF4PbHdOTUxw+IF8j7ArBMRPsHgq10uVPt6xTzo= modernc.org/zappy v1.0.0/go.mod h1:hHe+oGahLVII/aTTyWK/b53VDHMAGCBYYeZ9sn83HC4= -netlandish.com/x/gobwebs v0.1.3 h1:nPLqpM5BJ5HKabGDhbY8TpZ1SdI/MxTy/lnti1FLP6g= -netlandish.com/x/gobwebs v0.1.3/go.mod h1:RAf0VNiujzXen/pu0k6yyhvPWMgCY9tKD7ftXrkT53E= -netlandish.com/x/gobwebs-auditlog v0.2.1 h1:3wdULHX3qtWF7qu3vWDMznEoF0Vx/a5xk6S7p6xmffE= -netlandish.com/x/gobwebs-auditlog v0.2.1/go.mod h1:67Wc5fWo3g0jnviqt1fSCzk+oRxQFE9gLTgJ8IaSRrw= -netlandish.com/x/gobwebs-formguard v0.2.1 h1:h2OThT9fnntfPrC0OoB3U+23urmcGa17SKHfPzU8dDg= -netlandish.com/x/gobwebs-formguard v0.2.1/go.mod h1:GHiN6/0phQ8gOu1acrifbwG8P6jMJ6Ij2vJlvHHm+1w= -netlandish.com/x/gobwebs-graphql v0.2.2 h1:KzHHFkHSJtV2rGqMr2QpnBlI4STTijDgAouliYAzTpY= -netlandish.com/x/gobwebs-graphql v0.2.2/go.mod h1:E9Xk+dGllPWsIBEE+VyzhedX7kwsygdeOHwxJdJxoYw= -netlandish.com/x/gobwebs-oauth2 v0.2.1 h1:j/zU13PY0GavaSNnEy+f6ExbkamWBIm4mUIPaQ8gE78= -netlandish.com/x/gobwebs-oauth2 v0.2.1/go.mod h1:ssioqpjdRNwqFI7Da46A1K08szJzOZaEgIYoTPPYaXo= -netlandish.com/x/gobwebs-ses-feedback v0.2.1 h1:9BLmmsPmmCkb7DpLzJgBrhibaJOW3NQfPnSlkpjWSnY= -netlandish.com/x/gobwebs-ses-feedback v0.2.1/go.mod h1:jL9Yvz59RaRnVTPDlE/A+jpwiSLPHSuvP1TIcnTDljI= +netlandish.com/x/gobwebs v0.1.5 h1:ZYm/zVFOr/D9lRhE4zXWTv27BwDEHP8pPaZafTiPxDo= +netlandish.com/x/gobwebs v0.1.5/go.mod h1:RAf0VNiujzXen/pu0k6yyhvPWMgCY9tKD7ftXrkT53E= +netlandish.com/x/gobwebs-auditlog v0.2.2 h1:BqDXkBnK0P2rKqQxliCP6r33Fv1cMUxFB/W65L/LCT0= +netlandish.com/x/gobwebs-auditlog v0.2.2/go.mod h1:BP+hVVNdsTNgCUaM1JfwnLNsdGwCoyBGxXhDrS8hPww= +netlandish.com/x/gobwebs-formguard v0.2.3 h1:uXWVGLu7fslk4qGw7ZuVJQcplyh/HOf8kmmuReIlarE= +netlandish.com/x/gobwebs-formguard v0.2.3/go.mod h1:0nK6mnyCATC32tanPrG5SrXj/Kbsmu4jRLt5JWtWURA= +netlandish.com/x/gobwebs-graphql v0.2.3 h1:0rjL7YdvWdCvmwT0iofO4PAJ0GVbHum+pAmtfNNp51U= +netlandish.com/x/gobwebs-graphql v0.2.3/go.mod h1:UDV59+6AOffuJE85u9zRYf6ngPUm6ebxNtb4HL8XaDU= +netlandish.com/x/gobwebs-oauth2 v0.2.2 h1:Q4tQpCH6bJqrkk8ozmnG6WsykED2BaFXt9VLmJQryHc= +netlandish.com/x/gobwebs-oauth2 v0.2.2/go.mod h1:Sbi9h2E+5JrCr+vaB+8pmFgQNgdCyPqdvB4cqLXM8GM= +netlandish.com/x/gobwebs-ses-feedback v0.2.3 h1:yW+1m+TFT6i93NlEoZaPJI1G4ZWBfDEDZGXHsspbC5g= +netlandish.com/x/gobwebs-ses-feedback v0.2.3/go.mod h1:6iKSktXc1oNHTWQZKY/TyXIj/7uCmLoI7/XK8CKqjsw= petersanchez.com/x/carrier v0.2.3 h1:6ScWG2HVFqeqafQp2D9kChNdXYkou4rduzppc3SDYMg= petersanchez.com/x/carrier v0.2.3/go.mod h1:GLiDI9OThDmruufk/VHlR6Ihvq/hIJQyA5beU6AFNYk= petersanchez.com/x/carrier/ses v0.0.0-20250114214955-7f5d9b835a85 h1:yy81/rrGdI+YWuTvv7JPvVnY104/g10vnloBnKxVAHk= -- 2.49.1