-
Notifications
You must be signed in to change notification settings - Fork 327
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
Add widget for name_filter
#11455
Add widget for name_filter
#11455
Conversation
Builds a widget intended to be used for `name_filter` of `File.list` and | ||
its siblings that allows to filter file names by file format. | ||
name_filter_widget -> Widget = | ||
known_patterns = File_Format.all.flat_map .get_name_patterns |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does File_Format.all
still include Auto_Detect
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes:
all = [Auto_Detect] + format_types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I had missed that you added get_name_patterns
to that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I thought that since Auto_Detect
will accept any file from the known formats, we could define its set of patterns as a union of known formats' patterns. This also comes in handy because we wanted the "All known formats" entry in the dropdown.
Pull Request Description
Data.list
name filter fromFile_Format.name_patterns
#11310Important Notes
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
TypeScript,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
or the Snowflake database integration, a run of the Extra Tests has been scheduled.