Skip to content

Conversation

mallexxx
Copy link
Contributor

@mallexxx mallexxx commented Feb 26, 2025

Task/Issue URL: https://app.asana.com/0/1202406491309510/1209499219087615
Privacy Ref Tests PR: duckduckgo/privacy-reference-tests#142

Description

Testing Steps

  1. Activate Internal User from the Debug Menu

  2. Activate autocompleteTabs override from Debug -> Feature flag overrides menu

  3. Open couple of github.com pages, couple of app.asana.com pages and a https://asana.com/resources page, settings, bookmarks, 2 new tabs

  4. Switch to the New Tab, start entering asa: history record should be autocompleted, one app.asana.com Switch To Tab record should be right after it, asana.com/resources should be below bing results; enter git – same (switch to tab suggestion should be either 2nd or at the end of the list

  5. Switch to app.asana.com, start entering app.asa - validate another app.asana.com is not suggested to switch to, history entry should be suggested;

  6. Validate entering set suggests to switch to the Settings tab at the bottom, book – to the Bookmarks tab. new shouldn‘t suggest an open New Tab to switch to.

  7. Validate Open Tabs don‘t appear in the Top Hits section

Impact and Risks

What could go wrong?

Quality Considerations

Notes to Reviewer

Optional E2E tests**:

  • Run macOS PIR E2E tests
    Check this to run the Personal Information Removal end to end tests. If updating CCF, or any PIR related code, tick this.

Internal references:

Definition of Done | Engineering Expectations | Tech Design Template

mallexxx and others added 6 commits February 26, 2025 20:06
<!--
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/0/1209533698125405/f
Tech Design URL:
CC:

### Description

### Testing Steps
<!-- Assume the reviewer is unfamiliar with this part of the app -->
1.
2.

### Impact and Risks
<!-- 
What's the impact on users if something goes wrong?

High: Could affect user privacy, lose user data, break core
functionality
Medium: Could disrupt specific features or user flows
Low: Minor visual changes, small bug fixes, improvement to existing
features
None: Internal tooling, documentation
-->

#### What could go wrong?
<!-- Describe specific scenarios and how you've addressed them -->

### Quality Considerations
<!-- 
Focus on what matters for your changes:
- What edge cases exist?
- How does this affect performance?
- What monitoring have you added?
- What documentation needs updating?
- How does this impact privacy/security?
-->

### Notes to Reviewer
<!-- Anything specific you want reviewers to focus on -->

### Optional E2E tests**:
- [ ] Run macOS PIR E2E tests
Check this to run the Personal Information Removal end to end tests. If
updating CCF, or any PIR related code, tick this.

---
###### Internal references:
[Definition of
Done](https://app.asana.com/0/1202500774821704/1207634633537039/f) |
[Engineering
Expectations](https://app.asana.com/0/59792373528535/199064865822552) |
[Tech Design
Template](https://app.asana.com/0/59792373528535/184709971311943)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Dax Mobile <[email protected]>
Co-authored-by: Daniel Bernal <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: kshann <[email protected]>
Co-authored-by: Sam Symons <[email protected]>
Co-authored-by: Christopher Brind <[email protected]>
Co-authored-by: Mariusz Śpiewak <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Sabrina Tardio <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Jacek Łyp <[email protected]>
Co-authored-by: Pete Smith <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anh Do <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fernando Bunn <[email protected]>
Co-authored-by: Michal Smaga <[email protected]>
Co-authored-by: amddg44 <[email protected]>
Co-authored-by: Alessandro Boron <[email protected]>
Co-authored-by: Dominik Kapusta <[email protected]>
Co-authored-by: Diego Rey Mendez <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Federico Cappelli <[email protected]>
Co-authored-by: muodov <[email protected]>
Co-authored-by: Graeme Arthur <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Jonathan Kingston <[email protected]>
Co-authored-by: Juan Manuel Pereira <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
@mallexxx mallexxx changed the title [WIP} Suggestions JSON tests [WIP] Suggestions JSON tests Mar 6, 2025
@mallexxx mallexxx changed the base branch from main to alex/refactor-suggestions March 11, 2025 14:11
@mallexxx mallexxx changed the title [WIP] Suggestions JSON tests Suggestions JSON tests Mar 11, 2025
@mallexxx mallexxx changed the title Suggestions JSON tests 2. Update Suggestions ranking algorithm; add JSON tests Mar 11, 2025
Base automatically changed from alex/refactor-suggestions to main March 12, 2025 07:06
@mallexxx mallexxx requested a review from tomasstrba March 12, 2025 07:06
Copy link
Contributor

@tomasstrba tomasstrba left a comment

Choose a reason for hiding this comment

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

LGTM! ✅ Works as expected. Thank you for adding tests 👍

Copy link

This PR has been inactive for more than 7 days and will be automatically closed 7 days from now.

@github-actions github-actions bot added the stale label Mar 25, 2025
@mallexxx mallexxx removed the stale label Mar 27, 2025
@mallexxx mallexxx self-assigned this Mar 27, 2025
mallexxx and others added 6 commits April 3, 2025 14:07
<!--
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/1/137249556945/project/1202406491309510/task/1209377843227194
### Description
- update the suggestions algorithm to match Windows implementation (Show
both History record and Open tab:
-
https://github.com/duckduckgo/windows-browser/blob/ed93effed38cbdd60849629e336345a36731186f/WindowsBrowser.Autocomplete/Services/SuggestionSortAlgorithm.cs
-
https://github.com/duckduckgo/windows-browser/blob/ed93effed38cbdd60849629e336345a36731186f/WindowsBrowser.Autocomplete/Services/ScoringService.cs
- Add JSON Suggestions test scenarios:
[`privacy-reference-tests`](https://github.com/duckduckgo/privacy-reference-tests/pull/142/files)
- 1st PR of the series with refactoring:
#154

### Testing Steps
<!-- Assume the reviewer is unfamiliar with this part of the app -->
1. Activate Internal User from the Debug Menu
2. Activate `autocompleteTabs` override from Debug -> Feature flag
overrides menu
3. Open couple of github.com pages, couple of app.asana.com pages and a
https://asana.com/resources page, settings, bookmarks, 2 new tabs
4. Switch to the New Tab, start entering `asa`: history record should be
autocompleted, one app.asana.com Switch To Tab record should be right
after it, asana.com/resources should be below bing results; enter `git`
– same (switch to tab suggestion should be either 2nd or at the end of
the list
5. Switch to app.asana.com, start entering `app.asa` - validate another
app.asana.com is not suggested to switch to, history entry should be
suggested;
6. Validate entering `set` suggests to switch to the Settings tab at the
bottom, `book` – to the Bookmarks tab. `new` shouldn‘t suggest an open
New Tab to switch to.

7. Validate Open Tabs don‘t appear in the Top Hits section

### Quality Considerations
<!-- 
Focus on what matters for your changes:
- What edge cases exist?
- How does this affect performance?
- What monitoring have you added?
- What documentation needs updating?
- How does this impact privacy/security?
-->

### Notes to Reviewer
<!-- Anything specific you want reviewers to focus on -->

---
###### Internal references:
[Definition of
Done](https://app.asana.com/0/1202500774821704/1207634633537039/f) |
[Engineering
Expectations](https://app.asana.com/0/59792373528535/199064865822552) |
[Tech Design
Template](https://app.asana.com/0/59792373528535/184709971311943)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Sabrina Tardio <[email protected]>
Co-authored-by: Anh Do <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Dax Mobile <[email protected]>
Co-authored-by: Daniel Bernal <[email protected]>
Co-authored-by: Pete Smith <[email protected]>
Co-authored-by: Dominik Kapusta <[email protected]>
Co-authored-by: Fernando Bunn <[email protected]>
Co-authored-by: Christopher Brind <[email protected]>
Co-authored-by: Mariusz Śpiewak <[email protected]>
Co-authored-by: muodov <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Diego Rey Mendez <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Alessandro Boron <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Elle Sullivan <[email protected]>
Co-authored-by: Juan Manuel Pereira <[email protected]>
Co-authored-by: Sam Symons <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Jonathan Kingston <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Federico Cappelli <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Graeme Arthur <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Marcos Gurgel <[email protected]>
Co-authored-by: Michal Smaga <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: amddg44 <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: bwaresiak <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: shakyShane <[email protected]>
Co-authored-by: Shane Osbourne <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Brian Hall <[email protected]>
Co-authored-by: Mariusz Śpiewak <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Jacek Łyp <[email protected]>
Co-authored-by: Lorenzo Mattei <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Tom Strba <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Kate Manning <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
Co-authored-by: Anka <[email protected]>
@mallexxx mallexxx merged commit 4fdf96c into main Apr 4, 2025
60 checks passed
@mallexxx mallexxx deleted the alex/suggestions-tests branch April 4, 2025 13:47
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.

2 participants