Skip to content

Debounce on type history entries for "files to include/exclude" fields #86785

Merged
JacksonKearl merged 2 commits intomicrosoft:masterfrom
IllusionMH:debounce-search-on-type-86288
Dec 12, 2019
Merged

Debounce on type history entries for "files to include/exclude" fields #86785
JacksonKearl merged 2 commits intomicrosoft:masterfrom
IllusionMH:debounce-search-on-type-86288

Conversation

@IllusionMH
Copy link
Contributor

This PR fixes #86288

While commit 520c999 fixed problem with main Search field types in "files to include/exclude" fields still produced a ton of new history entries. This PR make history entries for these fields created on type delayed in the same way as Search field to prevent pollution.

Alternative implementation can be used if there is need to handle immediate history submit in case when triggeredOnType === false, but it looks a bit overkill if only one field can be edited at the time and it will save own history entry on Enter. Other should be already saved (even by timeout) in general case (I doubt that users will Tab to next field and continue typing so "save" will be delayed for 2 fields at the same time).

@JacksonKearl
Copy link
Contributor

Thanks! The alternative implementation makes sense, but I think we can wait to see if unexpected behavior actually arises.

@roblourens roblourens added this to the December/January 2020 milestone Dec 14, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Search history pollution with search.searchOnType enabled

3 participants