Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Fix #2685: Correctly updates favorites on NTP after deletion on iPad. #2688

Merged
merged 1 commit into from
Jul 2, 2020

Conversation

iccub
Copy link
Contributor

@iccub iccub commented Jul 2, 2020

Summary of Changes

This pull request fixes #2685

Submitter Checklist:

  • Unit Tests are updated to cover new or changed functionality
  • User-facing strings use NSLocalizableString()

Test Plan:

Screenshots:

Reviewer Checklist:

  • Issues include necessary QA labels:
    • QA/(Yes|No)
    • release-notes/(include|exclude)
    • bug / enhancement
  • Necessary security reviews have taken place.
  • Adequate unit test coverage exists to prevent regressions.
  • Adequate test plan exists for QA to validate (if applicable).
  • Issue is assigned to a milestone (should happen at merge time).

@iccub iccub requested a review from kylehickinson July 2, 2020 09:38
@@ -30,7 +30,7 @@ class FavoritesSectionProvider: NSObject, NTPObservableSectionProvider {

frc = Bookmark.frc(forFavorites: true, parentFolder: nil)
super.init()
frc.fetchRequest.fetchLimit = 6
frc.fetchRequest.fetchLimit = 20
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wonder if we should refetch the data after favorite update/delete.
Not a big deal, since user would have to remove 15 favs in a row to go over this fetchLimit

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Update: I added performFetch it makes sense to have it

@iccub iccub merged commit 4d9a1c2 into development Jul 2, 2020
@iccub iccub deleted the bugfix/2685 branch July 2, 2020 13:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deleting a favourite doesn't update the list on the tab
2 participants