techmatters / terraso-mobile-client

A React Native project for Terraso’s LandPKS mobile application.
https://landpks.terraso.org
GNU Affero General Public License v3.0
2 stars 0 forks source link

Site should not show in list after its project is deleted #2180

Open knipec opened 1 month ago

knipec commented 1 month ago

App Version

1.0.1 (191)

Account

No response

Platforms

Description

Deleting a project deletes its affiliated sites in the database, but that doesn't seem to delete the sites from the Redux store, so they still show on the home screen

Steps to Reproduce

  1. Create a site
  2. Add the site to a project
  3. Delete the project
  4. Return to the home screen

Expected behavior

The site is gone from the map and site list

Deleting a project says the following: Screenshot 2024-09-20 at 10 29 18 AM

Actual behavior

The site is still visible on the map and site list. You can access its location dashboard and data entry, but because the site no longer exists in the database you cannot edit any data. The next time you launch the app it will be gone though.

Additional context

knipec commented 3 weeks ago

Triage notes: