Skip to content

Conversation

mallexxx
Copy link
Collaborator

@mallexxx mallexxx commented Feb 26, 2025

RendijsSmukulis and others added 2 commits February 21, 2025 11:15
…ever get into this state (webview2 will not provide invalid uris to the navigation handlers, it'll fail upstream)
"topHits": [],
"searchSuggestions": [],
"localSuggestions": [
{ "type": "openTab", "title": "New Tab", "subtitle": "DuckDuckGo", "score": 153600, "uri": "duck://newtab", "tabId": "f4386ef1-675d-43f0-b0d3-868488ab9c56" },
Copy link
Collaborator

Choose a reason for hiding this comment

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

On the Windows side, we still have this entry as the top local suggestion with the 153600 score. It looks like it's being scored correctly and should be the top local suggestion result. Do you know why it isn't ending up here on macOS?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's not shown in open tab suggestions because it's a local New Tab page (duck://newtab) and we only show Settings and Bookmarks local page open tab suggestions

@mikamikem
Copy link
Collaborator

Added e9127d3 because it was suggesting the tab that was making the request.

@mallexxx mallexxx changed the title [WIP] suggestions json tests Suggestions json tests Mar 14, 2025
Copy link
Collaborator

@mikamikem mikamikem left a comment

Choose a reason for hiding this comment

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

Are the failing checks related to these changes or are they something we need to update from main to fix?

Also I'm good with the new test data generally at the moment since it's now passing on Windows, but I think we'll either need to update the existing test data or add new test cases to cover the changes Jackson was proposing.

- `expectation` - object containing:
- `topHits` - array of expected top hit suggestions (best matches across all sources)
- `searchSuggestions` - array of expected DuckDuckGo API suggestions
- `localSuggestions` - array of expected local suggestions (bookmarks, history, tabs, settings pages)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this also have the platform field added?

mallexxx and others added 4 commits March 24, 2025 19:48
…up the matching suggestions to be website instead of phrase.
…from the regression screenshots. I wasn't able to validate the mobile ones, so they may need fixing up.
@mikamikem
Copy link
Collaborator

@mallexxx I've pushed more changes to break out Jackson's test cases from https://app.asana.com/0/0/1209660385268480/1209688492719484/f into individual cases and properly tag some search results in the windows generated tests as nav results. The other changes look fine to me, so if these pass for you, I think we can approve this.

I'm still working through test failures on Windows in our local unit and integration tests. I think these are all broken because the basic de-duping behavior changed, but I'm still working through them, so it's possible some of this test data is broken or not behaving as intended. Feel free to fix it if so!

Copy link
Collaborator

@mikamikem mikamikem left a comment

Choose a reason for hiding this comment

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

This looks good on the Windows side!

@mallexxx mallexxx merged commit 47f3377 into main Apr 4, 2025
5 checks passed
mallexxx added a commit to duckduckgo/apple-browsers that referenced this pull request Apr 4, 2025
<!--
Note: This template is a reminder of our Engineering Expectations and
Definition of Done. Remove sections that don't apply to your changes.

⚠️ If you're an external contributor, please file an issue before
working on a PR. Discussing your changes beforehand will help ensure
they align with our roadmap and that your time is well spent.
-->

Task/Issue URL: https://app.asana.com/0/1202406491309510/1209499219087615
Privacy Ref Tests PR: duckduckgo/privacy-reference-tests#142
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants