-
Notifications
You must be signed in to change notification settings - Fork 11
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
CV2-4719 add unique identifier as doc_id at check-api level #1926
Conversation
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.
Devin, please add the missing tests.
@caiosba will do - the
|
I think that the |
@caiosba sounds good - I'll fix the others first, we'll rerun, then assess |
app/models/concerns/smooch_search.rb
Outdated
headers | ||
) | ||
end | ||
|
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.
Trailing whitespace detected.
Code Climate has analyzed commit e295099 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (100% is the threshold). This pull request will bring the total coverage in the repository to 99.9% (0.0% change). View more on Code Climate. |
Description
On Presto, oftentimes we unnecessarily fingerprint the same item several times. With this change, we will plumb a
content_hash
key along through Check-API to Alegre to Presto, so that Presto can use the key to do an internal lookup against a Redis server to see if we have a recently fingerprinted item with that ID and just return it directly.References: CV2-4719
How has this been tested?
No tests yet - expanding the data package will very likely cause many test errors, so this first change is to just highlight/record them.
Things to pay attention to during code review
Nothing significant at the Check-API stage, probably.
Checklist