wordpress-mobile / wordpress-mobile/WordPress-Android

Deleting a site via the web doesn't remove it from the app

Open
#16,511 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Pri] Low [Type] Bug /My site Delete Site My Site Dashboard
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

Expected behavior

I expected that after I deleted a site from the web, it would be removed from the app immediately.

Actual behavior

Instead, the site is not removed. My Site Menu is still displayed with the site address and title. All items can be tapped, and show various errors. For instance:

Stats: "Data not loaded" grey toast message
Media: "Media couldn't be refreshed at this time"
Posts: "You don't have permission to view or edit posts"
Site Settings: Site Settings appears and you can scroll through them a bit, but then are directed back to My Site Menu and shown "Couldn't retrieve site info" blue toast message.

Steps to reproduce the behavior
  1. Create a new site you'd like to delete. I did this on an account with no existing sites.
  2. Open that site in WordPress.com on a web browser, and delete it.
  3. Head back into the app to look around, and notice that you still have that site selected and can navigate around the app with that site.
Tested on Samsung Galaxy S21, Android 12, WPAndroid 19.8-rc-2.

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.

Research direction

Reproduce the flow by deleting a site on WordPress.com, then returning to the Android app and opening My Site Menu. Trace how the app refreshes or invalidates the selected site after deletion, and confirm that the deleted site and its menu are removed without the reported data, permission, or site-info errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.