• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

geniusrabbit / blaze-api / 35358080886
4%

Build:
DEFAULT BRANCH: main
Ran 18 Sep 2026 02:49PM UTC
Jobs 1
Files 257
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Sep 2026 02:44PM UTC coverage: 3.918% (+1.0%) from 2.931%
35358080886

push

github

web-flow
Fix OAuth PKCE session update: add missing updated_at column (#7)

* Fix OAuth PKCE session update: add missing updated_at column

Root cause: The auth_session table had a BEFORE UPDATE trigger calling
updated_at_column() which sets NEW.updated_at, but the table schema
never included an updated_at column, causing SQLSTATE 42703 error.

This broke CreatePKCERequestSession UPDATE path when called after login
in production OAuth flow (Affyard MCP → /oauth/authorize → login →
authorize → CreateAuthorizeCodeSession → CreatePKCERequestSession UPDATE).

Changes:
- Add updated_at column to auth_session table (migration 011)
- Add UpdatedAt field to AuthSession model to align with schema
- Update tests to account for GORM auto-updating updated_at
- Preserve UNIQUE(access_token) + UPDATE-by-access_token behavior

The trigger existed since initial migration (003_auth.up.sql line 102-103)
and matches the pattern used on auth_client which does have updated_at.
This fix aligns auth_session with that pattern.

Test coverage: TestCreatePKCERequestSessionUpdatesExistingSession now
exercises the full UPDATE path with proper updated_at handling.

* Fix CI: Update Go version from 1.25.x to 1.26.x

The go.mod file requires Go 1.26.0, but the CI workflow was still using
Go 1.25.x, causing compilation errors in tests.

1075 of 27435 relevant lines covered (3.92%)

0.04 hits per line

Coverage Regressions

Lines Coverage ∆ File
76
36.31
36.31% pkg/auth/oauth2/serverprovider/storage.go
35
0.0
0.0% repository/account/delivery/graphql/base_resolver.go
35
53.72
27.12% repository/account/usecase/member_usecase.go
32
0.0
0.0% repository/generated/usecase_db_gen.go
28
0.0
0.0% repository/options.go
23
0.0
0.0% pkg/context/session/account.go
23
0.0
0.0% repository/user/delivery/graphql/user_base/resolver_base.go
19
69.23
26.18% repository/account/repository/member_repository.go
6
0.0
0.0% pkg/acl/rbac_type.go
5
85.71
-14.29% repository/generated/model.go
5
35.0
35.0% repository/rbac/delivery/graphql/utils.go
3
83.33
-16.67% pkg/acl/errors.go
2
57.14
57.14% repository/account/delivery/graphql/handlers.go
2
84.62
0.0% repository/authclient/repository/repository.go
2
0.0
0.0% repository/user/usecase/session_helpers.go
Jobs
ID Job ID Ran Files Coverage
1 Go-1.26.x - 35358080886.1 18 Sep 2026 02:49PM UTC 257
3.92
GitHub Action Run
Source Files on build 35358080886
  • Tree
  • List 257
  • Changed 18
  • Source Changed 0
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 8d1df3db on github
  • Prev Build on main (#31397916137)
  • Next Build on main (#35364183929)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc