Closed Bug 1874074 Opened 2 years ago Closed 2 years ago

Pocket suggestions are fetched when the Amo provider is specified, regardless of whether Pocket was specified

Categories

(Application Services :: Suggest, defect, P3)

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1876630

People

(Reporter: adw, Unassigned)

References

Details

(Whiteboard: [disco])

query() seems to fetch Pocket suggestions as long as the Amo provider is specified, even when Pocket is not specified. AFAICT it might be due to the second SELECT in the UNION here, which does not check the list of passed-in providers like the first SELECT does, but I'm not sure and haven't debugged it. I only found this today while working on the test for the desktop bug 1874072.

I didn't find that Amo suggestions are fetched when Pocket is specified, but that may be due only to my specific test case because it looks like that might be possible too?

Also I'm testing with the suggest in m-c, but it doesn't look like this particular code has changed.

Whiteboard: [disco]
Whiteboard: [disco]
Whiteboard: [disco]

Thanks Drew! This will be fixed by the fetch_suggestions() refactor that Tif is doing in bug 1876630—the UNION ALL and the complicated query will go away, in favor of querying the providers separately, then combining and sorting the results in Rust after.

Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1876630
Resolution: --- → DUPLICATE
Blocks: 1877306
You need to log in before you can comment on or make changes to this bug.