Skip to content

Make the tree filter search events too #806

Closed

Description

@EVWorth

Severity: P2

What happens

  1. Open ?mock=connected and leave every database collapsed.
  2. Type purge in the schema filter. The tree shows only "Show system databases", although analytics has the event purge_old_events.
  3. Type zzz. The tree is blank, with no "no matches" message.

Cause

  • src/components/schema/SchemaTree.tsx:160-166: the filter preload loop calls ensureTables, ensureViews, ensureRoutines and ensureTriggers, but not ensureEvents. Events are only matched if their folder was opened before.
  • There is no empty state after the database map at :429.

Fix

Add await store.ensureEvents(connectionId, db.name) to the loop. Show "No objects match '…'" when the filter hides every database.

Part of #783.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added 2 commits that reference this issue on Oct 23, 2026
    e6dfb79
    6c11ea1
  3. added a commit that references this issue on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions