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

DYN-6739 Regression Typing Fast in Search #224

Conversation

RobertGlobant20
Copy link
Contributor

When typing fast in the TextSearch box was getting wrong results or the results were not in the same order than Dynamo InCanvasSearch,
It was happening due that we are implementing the React Debounce pattern (this patters allows the user to continue typing while we are searching ) but we were missing to update the results immediately after getting the results so I added a call to this.updateSearchViewDelayed() method immediately after getting the results.

FYI: @reddyashish @Enzo707

When typing fast in the TextSearch box was getting wrong results or the results were not in the same order than Dynamo InCanvasSearch,
It was happening due that we are implementing the React Debounce pattern (this patters allows the user to continue typing while we are searching ) but we were missing to update the results immediately after getting the results so I added a call to this.updateSearchViewDelayed() method immediately after getting the results.
@RobertGlobant20
Copy link
Contributor Author

GIF showing the expected behavior when typing fast.
nZjfIGgNMM

@Enzo707
Copy link
Contributor

Enzo707 commented Apr 23, 2024

@RobertGlobant20 there's a couple of side effect I've noticed:

  • There's still in search mode after cleaning up the search input
  • If you try to perform any change within canvas search the focus seems to be still in library search.

C9Wg2oapWg

I had to update the onTextChanged() method due that when deleting quickly the text typed inside the SearchTextBox was showing the library with search results (event when the textbox is empty).
So I have to reorganize all the code in the onTextChanged() method so that most of the code will be inside the timeout (otherwise there is no way to control the code async execution).
@RobertGlobant20
Copy link
Contributor Author

@RobertGlobant20 there's a couple of side effect I've noticed:

  • There's still in search mode after cleaning up the search input
  • If you try to perform any change within canvas search the focus seems to be still in library search.

@Enzo707 The first bug was fixed in the next commit:
6637771

The second bug is an existing bug you can test it in previous versions of dynamo.

here is the expected behavior.
5iIgpuqx7F

Updating comments so my changes will be more clear
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@QilongTang QilongTang requested a review from reddyashish April 29, 2024 19:12
@reddyashish reddyashish merged commit e6a681a into DynamoDS:master Apr 29, 2024
11 checks passed
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.

4 participants