Commit Graph
1 Commits
Author SHA1 Message Date
Jordi Enric 548abae3e9 fix(auth): open matching logs from Overview API errors FE-5191 (#53854)
## Problem

On Auth Overview, following a failed sign-in from the Auth API Errors
table opens a legacy text search. That search can miss the requests
behind the count or include requests with a different method or status.

## Fix

Open unified logs for the current project with the gateway source, HTTP
method, path, and status from the selected row. Use the start and end
timestamps of the query that produced the count.

Closes [FE-5191](https://linear.app/supabase/issue/FE-5191).

## How to test

1. Open Authentication → Overview on a project with Auth API errors.
2. Follow the logs link on a failed sign-in row such as `POST
/auth/v1/token`.
3. Check the project, API Gateway source, method, path, and HTTP status
in Logs. The time range should match the 24-hour window used to fetch
the row, even if the page has been open for a while.

## Compatibility and verification

Explicit legacy Logs preferences still open the legacy gateway view. In
unified logs, existing Path equals and Path does not equal filters now
compare the complete path on both backends. Use Contains or Does not
contain for substring matching.

All 211 focused tests passed with retries disabled, along with Studio
typecheck and formatting. Restoring the old substring predicates made
the exact-path tests fail on both backends.

Verified the click-through on the Studio staging preview for
`c9186d34c0`. A `POST /auth/v1/signup` row with status 401 opened
unified logs on the same project with the four expected filters. The
time window was exactly 24 hours and the visible results matched the
row. The component regression covers `POST /auth/v1/token` on both
analytics backends.
2026-11-23 17:00:55 +01:00