Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Change fetchProvidedTopSites into TopSitesProviderConfig #11654

Closed
gabrielluong opened this issue Feb 2, 2022 · 0 comments · Fixed by #11668
Closed

Change fetchProvidedTopSites into TopSitesProviderConfig #11654

gabrielluong opened this issue Feb 2, 2022 · 0 comments · Fixed by #11668
Assignees
Labels
<top-sites> Component: feature-top-sites
Milestone

Comments

@gabrielluong
Copy link
Member

gabrielluong commented Feb 2, 2022

In Fenix, we only want to fetch top sites from the provider only if there are < 8 pinned + default sites. We want to introduce a max threshold that prevents fetching top sites from the provider unnecessarilly.

┆Issue is synchronized with this Jira Sub-task

@gabrielluong gabrielluong self-assigned this Feb 2, 2022
@gabrielluong gabrielluong added the <top-sites> Component: feature-top-sites label Feb 2, 2022
@gabrielluong gabrielluong added this to the 98.0.0 🙏 milestone Feb 2, 2022
gabrielluong added a commit to gabrielluong/android-components that referenced this issue Feb 4, 2022
…a function

This changes `fetchProvidedTopSites` into a lambda function `shouldFetchTopSitesFromProvider` that takes
the number of existing top sites as a parameter to determine whether or not to fetch top sites from the `TopSitesProvider`.
gabrielluong added a commit to gabrielluong/android-components that referenced this issue Feb 4, 2022
…a function

This changes `fetchProvidedTopSites` into a lambda function `shouldFetchTopSitesFromProvider` that takes
the number of existing top sites as a parameter to determine whether or not to fetch top sites from the `TopSitesProvider`.
gabrielluong added a commit to gabrielluong/android-components that referenced this issue Feb 4, 2022
…a function

This changes `fetchProvidedTopSites` into a lambda function `shouldFetchTopSitesFromProvider` that takes
the number of existing top sites as a parameter to determine whether or not to fetch top sites from the `TopSitesProvider`.
gabrielluong added a commit to gabrielluong/android-components that referenced this issue Feb 7, 2022
…a function

This changes `fetchProvidedTopSites` into a lambda function `shouldFetchTopSitesFromProvider` that takes
the number of existing top sites as a parameter to determine whether or not to fetch top sites from the `TopSitesProvider`.
gabrielluong added a commit to gabrielluong/android-components that referenced this issue Feb 7, 2022
…sProviderConfig

This changes `fetchProvidedTopSites` into a data class `TopSitesProviderConfig` that specifies
whether or not to display the top sites from the provider and the maximum threshold at which to
fetch the top sites from the provider.
@gabrielluong gabrielluong changed the title Change fetchProvidedTopSites into a lambda function Issue #11654: Change fetchProvidedTopSites into TopSitesProviderConfig Feb 7, 2022
gabrielluong added a commit to gabrielluong/android-components that referenced this issue Feb 7, 2022
…sProviderConfig

This changes `fetchProvidedTopSites` into a data class `TopSitesProviderConfig` that specifies
whether or not to display the top sites from the provider and the maximum threshold at which to
fetch the top sites from the provider.
gabrielluong added a commit to gabrielluong/android-components that referenced this issue Feb 7, 2022
…sProviderConfig

This changes `fetchProvidedTopSites` into a data class `TopSitesProviderConfig` that specifies
whether or not to display the top sites from the provider and the maximum threshold at which to
fetch the top sites from the provider.
@gabrielluong gabrielluong removed this from the 98.0.0 🙏 milestone Feb 8, 2022
gabrielluong added a commit to gabrielluong/android-components that referenced this issue Feb 8, 2022
…sProviderConfig

This changes `fetchProvidedTopSites` into a data class `TopSitesProviderConfig` that specifies
whether or not to display the top sites from the provider and the maximum threshold at which to
fetch the top sites from the provider.
gabrielluong added a commit to gabrielluong/android-components that referenced this issue Feb 8, 2022
…sProviderConfig

This changes `fetchProvidedTopSites` into a data class `TopSitesProviderConfig` that specifies
whether or not to display the top sites from the provider and the maximum threshold at which to
fetch the top sites from the provider.
@gabrielluong gabrielluong added this to the 99.0.0 🛎 milestone Feb 8, 2022
@mergify mergify bot closed this as completed in #11668 Feb 9, 2022
mergify bot pushed a commit that referenced this issue Feb 9, 2022
This changes `fetchProvidedTopSites` into a data class `TopSitesProviderConfig` that specifies
whether or not to display the top sites from the provider and the maximum threshold at which to
fetch the top sites from the provider.
@gabrielluong gabrielluong changed the title Issue #11654: Change fetchProvidedTopSites into TopSitesProviderConfig Change fetchProvidedTopSites into TopSitesProviderConfig Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
<top-sites> Component: feature-top-sites
Projects
None yet
1 participant