Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5/n] Refactor SelectionInput auto-complete logic #27229

Open
wants to merge 5 commits into
base: salazarm/weak-map-ttl
Choose a base branch
from

Conversation

salazarm
Copy link
Contributor

Summary & Motivation

Couple goals:

  • Separate the selection visitor into a Base visitor which encapsulates the cursor based visiting logic, and the SelectionVisitor which makes auto-complete suggestions. The reason is that cloud will be using the base visitor to figure out which auto-completions we need to query for.
  • Make SelectionAutoCompleteInput take a useAutoComplete hook as a prop which can return loading: true to indicate asynchronous suggestions are in progress. This will be used by cloud for elastic search filtering.

How I Tested These Changes

  1. Existing jests
  2. New jest tests for BaseVisitor
  3. Used this in cloud for elastic search filtering

Copy link

github-actions bot commented Jan 21, 2025

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-gi6y2rurk-elementl.vercel.app
https://salazarm-refactor-for-elastic-search.core-storybook.dagster-docs.io

Built with commit 7330bdb.
This pull request is being automatically deployed with vercel-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant