Skip to content

Take a commit you deleted off a profile even when it was below the first page - #237

Open
sulimanbenhalim wants to merge 1 commit into
NativePHP:mainfrom
sulimanbenhalim:fix/drop-deleted-older-commits
Open

sulimanbenhalim wants to merge 1 commit into
NativePHP:mainfrom
sulimanbenhalim:fix/drop-deleted-older-commits

Conversation

@sulimanbenhalim

Copy link
Copy Markdown
Contributor

delete one of your older commits on your profile after it loaded more and the toast says rm abc1234 → /dev/null but the row stays
deleting it from its own page and coming back leaves it too and an organization's page and a guild's board lay their lists the same way

  • showDeleted() and coming back both lay a fresh first page over the list and FreshPage::over() keeps every row below that page as it was
  • ResponseCache::commitDeleted() takes it out of the kept first pages but the pages under them are never kept
  • Log and Starred already drop what deletedIds() lists in their own onResume() so layFreshCommits() does the same now before it lays the page
  • it's in the trait since Profile Organization and Guild all lay their kept page through it when they come back (Log's own pass stays for latestCommits and its held page)
  • it only filters what's already showing so a commit devnull sends again still shows

a new test in CommitMenuTest deletes a commit from the second page of your profile by its row and another one as if from its own page and fails on main
it only covers the profile but the organization and guild screens go through the same layFreshCommits()

Screenshots

the end of a profile with 27 commits on an Android emulator against a local devnull right after deleting the one under Note 4 from its More menu
before that's Note 2 and its row is still there though devnull deleted it and after it's Note 3 and its row is gone

profile-delete

iOS light iOS dark Android light Android dark
Before
After

iOS isn't here since this Xcode has no Simulator app to scroll and tap with

  • No visible change

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.

1 participant