Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Allow fuzzy search on data filter when getting transactions - Closes #2404 #2513

Merged
merged 11 commits into from
Nov 8, 2018

Conversation

diego-G
Copy link

@diego-G diego-G commented Oct 31, 2018

What was the problem?

Query was returning only exact matches.

How did I fix it?

Changing the subquery to support LIKE matches and removing null characters from the string to avoid errors.

How to test it?

mocha test/functional/http/get/transactions.js

Review checklist

modules/transactions.js Outdated Show resolved Hide resolved
@diego-G diego-G requested a review from vitaly-t October 31, 2018 16:35
@MaciejBaj MaciejBaj changed the title Allow fuzzy search on data filter when getting transactions - Close #2404 Allow fuzzy search on data filter when getting transactions - Closes #2404 Oct 31, 2018
vitaly-t
vitaly-t previously approved these changes Oct 31, 2018
Copy link
Contributor

@vitaly-t vitaly-t left a comment

Choose a reason for hiding this comment

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

LGTM.

@diego-G diego-G requested review from MaciejBaj and removed request for 4miners November 1, 2018 09:25
MaciejBaj
MaciejBaj previously approved these changes Nov 2, 2018
@diego-G diego-G requested a review from 4miners November 5, 2018 08:46
4miners
4miners previously approved these changes Nov 6, 2018
Copy link
Contributor

@4miners 4miners left a comment

Choose a reason for hiding this comment

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

The code looks fine. However, I'm not sure about the feature itself. What is the point of allowing wildcard search on this field? I don't really see use cases for it.

modules/transactions.js Outdated Show resolved Hide resolved
@diego-G diego-G force-pushed the 2404-allow_fuzzy_search_on_data_filter branch from f6f5652 to 90e2f81 Compare November 6, 2018 14:39
@diego-G diego-G requested a review from 4miners November 6, 2018 14:41
modules/transactions.js Outdated Show resolved Hide resolved
@diego-G diego-G requested a review from 4miners November 6, 2018 14:56
4miners
4miners previously approved these changes Nov 7, 2018
nazarhussain
nazarhussain previously approved these changes Nov 8, 2018
schema/swagger.yml Outdated Show resolved Hide resolved
Co-Authored-By: diego-G <diego@lightcurve.io>
@MaciejBaj MaciejBaj merged commit b922930 into development Nov 8, 2018
@MaciejBaj MaciejBaj deleted the 2404-allow_fuzzy_search_on_data_filter branch November 8, 2018 15:57
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.

Allow to search for transactions by data field
6 participants