Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[6.x] Search for similar results #31042
This is a resubmission of #30886 with fixed tests.
When using the
This PR allow the failure message to make an educated guess on the DB row we are most likely trying to compare to. It gives priority to the first key/value pair in our expected data, and performs a query based solely on that 1 piece of information. If it finds rows matching this data, it will return them. If it doesn't find any results from its educated guess, it will fallback to the current method of returning results.
first we take the first key/value pair of the expected data, and look to see if that exists in the database. If that finds results, we'll send those back to the developer since they're easier to compare. if we don't find any of those results, we'll fallback to the old way of just returning results from the table.