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

[4274] Fix/improve search token-autocomplete #4302

Merged
merged 2 commits into from
Jun 25, 2021
Merged

[4274] Fix/improve search token-autocomplete #4302

merged 2 commits into from
Jun 25, 2021

Conversation

vsyrovat
Copy link
Contributor

@vsyrovat vsyrovat commented Jun 19, 2021

Fix fall on search token-autocomplete by non-latin characters
*Fix search token-autocomplete by multiple words"

This PR fixes #4274

No breaking changes IMHO

I don't know exactly is it possible to tokens be in non-latin characters. @vbaranov please check this point
This PR not fix search by, for example, "лучшие токены" - this search string will be treat as empty string.

  • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.

@vbaranov vbaranov self-requested a review June 22, 2021 13:34
Copy link
Member

@vbaranov vbaranov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vsyrovat changes look good to me.

mix credo suggests refactoring opportunities:

  Refactoring opportunities
┃
┃ [F] ↗ `with` contains only one <- clause and an `else`
┃       branch, use a `case` instead
┃       apps/explorer/lib/explorer/chain.ex:1129 #(Explorer.Chain.search_contract)
┃ [F] ↗ `with` contains only one <- clause and an `else`
┃       branch, use a `case` instead
┃       apps/explorer/lib/explorer/chain.ex:1103 #(Explorer.Chain.search_token)

@vsyrovat
Copy link
Contributor Author

vsyrovat commented Jun 22, 2021

@vbaranov credo suggestions fixed

Copy link
Member

@vbaranov vbaranov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vsyrovat could you please also add an entry to CHANGELOG.md to the top of ### Fixes section?

@vsyrovat
Copy link
Contributor Author

vsyrovat commented Jun 25, 2021

@vsyrovat could you please also add an entry to CHANGELOG.md to the top of ### Fixes section?

@vbaranov, done a74d876

@vbaranov vbaranov merged commit 59e4e1d into blockscout:master Jun 25, 2021
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.

BlockScout responds with 500 when /token-autocomplete is called
2 participants