opengisch / QField

A simplified touch optimized interface for QGIS
http://www.qfield.org
GNU General Public License v2.0
800 stars 221 forks source link

"Remove stored project" keeps old version of project on qfield #5652

Open jpnunn opened 4 days ago

jpnunn commented 4 days ago

Describe the issue

When I use the "Remove Stored Proejct" from the QFieldCloud Projects list in QField it seems to remove it, however when i download and open a version that has been updated in QFieldCloud, the old version is visible. The only way around it is to remove QField from the device and reinstall. This would not be a major problem, except my company has prevented some of the team using google play so they cannot reinstall it.

Reproduction steps

Steps to reproduce the behavior:

  1. QField Home page
  2. Long click and "Remove Stored Project"
  3. Restart QField
  4. Download Project from QFieldCloud and Open project

Add a simple sample project if it requires a specific configuration

Expected behavior

When a project is removed then imported and opened i would expecte the latest changes to be applied.

Observed behavior

An old version is kept on the devices and is not removed.

Screenshots and GIFs

[If applicable, add screenshots and GIFs to help explain your problem.]

QGIS (please complete the following information)

QField (please complete the following information)

Additional information

[If the problem happened with QFieldCloud, please add your username and project name.]

nirvn commented 4 days ago

@jpnunn , can you define what you mean by "the old version is visible"? You mean your device falls to download the latest version of your project from the cloud and instead downloads and old revision?

jpnunn commented 4 days ago

Thanks for the fast response @nirvn. When i mean "the old version is visible", i mean it must have saved the previous version locally on the device (which i cannot remove myself) and despite clicking the "Remove stored project" or sync the project it does not update. Even with a new, updated version on QFieldCloud the old version is kept on the device. The only way around it is to uniinsatll QField, then reinstall.

nirvn commented 3 days ago

@jpnunn , so your problem appears to be that update project files on QFieldCloud aren't properly packaged and reaching your phone?

jpnunn commented 3 days ago

Hi @nirvn yes that is correct. The only way to get it on my phone is to uninstal qfield and reinstall it. If it is downloaded onto a devices that has never downloaded it before, it will get the latest version. It must be keeping the old versions on the phone and not updating them with the latest version despite attemtping to update.

I should also add that in this situation no updates to the gpkg had been made. The only updates were to the project qgs file.

suricactus commented 2 days ago

Hey, @jpnunn can you please share a bit more details, privately if you want about your project name and owning user.

Also, do you want long enough (a few minutes) between the last push to the project and syncing back to the device?

jpnunn commented 2 days ago

Hi @suricactus It is possible i didnt wait long enough between the upload however i tried a few times for it to work. Since then i have reinstalled qfield to get it to work.