Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Feature: Audit search box scans the whole table; add per-field filter inputs

Aperta
#697 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@SantiagoDePolonia ci sta già lavorando.

Dal 17/8/2026.

  • #737 di @mikemikimike — chiusa senza merge

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Problem

Typing a user path into the audit-log search box is slow as the table grows. The box sends search=<text>, which the backend turns into a leading-wildcard %…% ILIKE against 11 columns at once (including the JSON data->>'error_message'), forcing a full table scan that no index can serve. The endpoint already has an indexed user_path= filter (idx_audit_user_path), but the search box never uses it — and it can't, because the box is a single free-text field.

Proposal

Replace the single free-text search box with per-field filter inputs (or a field dropdown + value box) so a path query hits the user_path index instead of the blanket scan — e.g. dedicated inputs for user_path, request_id, model, session_id, error_type. Keep the generic search only as an explicit opt-in, not the default.

Lingua principale
Go
Stelle
1.2k
Fork
111
Merge medio
15h 12m
PR unite (30g)
138

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ENTERPILOT/GoModel

Tutte le issue di ENTERPILOT/GoModel

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.