Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jpnunn opened this issue Sep 16, 2024 · 6 comments
Open

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

jpnunn opened this issue Sep 16, 2024 · 6 comments

Comments

@jpnunn
Copy link

jpnunn commented Sep 16, 2024

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)

  • OS: Windows 11
  • QGIS Version 3.34.8
  • QFieldSync Version 4.10.1

QField (please complete the following information)

  • Device: Tested on Google Pixel 4a and Samsung tablets (sorry dont have version)
  • OS: [e.g. Android 11]
  • QField version: 3.4.1 (c28cef v.3.4.1))

Additional information

  • Problem started happening recently, didn't happen in an older version of QField: No
  • Problem can be reliably reproduced, doesn't happen randomly: Yes
  • Problem happens with all files and projects, not only some files or projects: No

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

@nirvn
Copy link
Member

nirvn commented Sep 16, 2024

@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
Copy link
Author

jpnunn commented Sep 16, 2024

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
Copy link
Member

nirvn commented Sep 18, 2024

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

@jpnunn
Copy link
Author

jpnunn commented Sep 18, 2024

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
Copy link
Collaborator

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
Copy link
Author

jpnunn commented Sep 18, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants