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

Filters: ILIKE and any-column minors, and a cancel for filtered counts

Aperta
#45 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
mysql, postgresql, react, rust, sqlite, tauri, typescript
Ambito
database, desktop

Direzione di ricerca

Start with src-tauri/src/driver/{postgres,mysql,sqlite}.rs, src-tauri/src/manager.rs, and src/features/grid/, then read the deferred tasks in docs/notes/plan-03-followups.md and the filtered-count note in docs/notes/plan-05-followups.md. Reproduce the filtered-count and filter-minor behaviors across the listed database paths. Done means the UI can cancel a long filtered count and remain usable, each listed minor has a test or documentation, and the stated test, lint, and Rust checks pass.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:backend area:frontend size:M status:ready type:task

Context

Known behaviour from plan 3 Task 8: a high exact_count_threshold setting makes filtered counts scan up to that many rows; they hold the browse connection until done and have no user-facing cancel. Several filter minors from Task 2 and Task 6 are grouped here.

To do

  • Add a user-facing cancel for a running filtered count (Cancelled state in the grid footer, count shown as approximate afterwards); avoid holding the whole browse connection if possible.
  • ILIKE on MySQL _bin collations is case-sensitive: fall back to LOWER() comparison or document it in the filter hint.
  • The any-column filter does not see PostgreSQL bytea[] as binary.
  • PostgreSQL simple-query path maps errors with map_err, not map_live_err (lost-connection classification).
  • MySQL filtered path takes about 5 round trips: merge DEALLOCATE and the variable clear; a KILL in the middle of cleanup may leave session variables set.
  • ILIKE typed in the quick bar is accepted on MySQL / SQLite: hint LIKE instead.

Acceptance criteria

  • A filtered count above the threshold can be cancelled from the UI and the grid stays usable.
  • Each minor fixed with a test or documented.
  • pnpm test && pnpm lint green (plus cargo clippy --all-targets -- -D warnings and pnpm test:rust when Rust changes)

Likely files touched

  • src-tauri/src/driver/{postgres,mysql,sqlite}.rs (filters, counts)
  • src-tauri/src/manager.rs
  • src/features/grid/ (filters bar, footer)

Linked docs

  • docs/notes/plan-03-followups.md (Deferred Task 2, Task 6, Task 8)
  • docs/notes/plan-05-followups.md (Open: filtered counts)
Lingua principale
TypeScript
Stelle
0
Fork
0
Merge medio
1h 2m
PR unite (30g)
41

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 Cemoche/tablemax

Tutte le issue di Cemoche/tablemax

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.