wordpress-mobile / wordpress-mobile/WordPress-iOS

Only three recent posts are kept on device

Open
#21,754 5 comments 0 reactions 1 assignee View on GitHub

@hassaanelgarem is already working on this.

Since Oct 13, 2023.

[Type] Enhancement Posts + Pages
Dominant language
Swift
Stars
3.9k
Forks
1.2k
Avg merge
23h 51m
Merged PRs (30d)
58

Description

The current behaviour—where the app deletes older posts and only keep three on the device—seems a bit strange to me.

Expected behavior

Loaded posts should not be deleted after switching to the Home screen.

Actual behavior

Older posts are deleted after switching to the Home screen.

Steps to reproduce the behavior
  1. Navigate to Posts screen and create 6 or more draft posts.
  2. Go to the root of My Sites tab (or the Home screen on iPad).
  3. Scroll through the home screen, or pull to refresh. Wait for a couple of seconds.
  4. Go back to the Posts screen. At this point, you should only see 3 drafts displayed on screen, but quickly after all drafts are re-fetched and displayed.

https://github.com/wordpress-mobile/WordPress-iOS/assets/1101828/d2a936e0-c479-4240-a536-74fe159e5e5c

Tested on [device], iOS [version], Jetpack iOS / WordPress iOS [version]

The trunk branch. 32404ca761a85800de6daa64637707df808a354c

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.