api icon indicating copy to clipboard operation
api copied to clipboard

Fallback scenarios should not result in address or venue records!

Open missinglink opened this issue 5 years ago • 2 comments

I have been seeing this message in the logs "Fallback scenarios should not result in address or venue records!"

It's coming from middleware/confidenceScoreFallback.js and presumably, the original author didn't expect this to happen?

missinglink avatar Nov 12 '19 09:11 missinglink

The logs were generated from running the acceptance tests

missinglink avatar Nov 12 '19 09:11 missinglink

This might be related to what I discovered while creating https://github.com/pelias/api/pull/1334, which came out of a bug report from https://github.com/pelias/api/issues/1280.

As it turns out, the confidenceScoreFallback middleware is being used much more widely than it was originally intended, and while it is operating outside of its intended functionality, looking at the results we actually prefer results as they are now.

So the real fix would be to expand the expected usage of that middleware, possibly removing the other confidenceScore middleware, and likely fixing this issue in the process.

orangejulius avatar Nov 12 '19 20:11 orangejulius