opengisch / QField

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

Changes not really applying on qfield cloud #5832

Closed ronantaylorware closed 2 days ago

ronantaylorware commented 3 days ago

Describe the issue

After pushing changes from mobile device to cloud, qfield cloud website says changes have been successfully applied (in the changes tab) However trying to sync QGIS on desktop to see the applied changes doesn't work - it says the project is already up to date. Fix is to re-apply the particular change on the qfield cloud website under the changes tab.

Reproduction steps

Steps to reproduce the behavior: Track a geopackage layer on mobile device. finish tracking. Press push changes Change appears in qfield cloud Does not appear on QGIS desktop

(https://app.qfield.cloud/a/Peregrine/BowenEcologyGDA94/)

QGIS version Windows 3.40.0-Bratislava qfield sync 4.11.0

QField (please complete the following information)

Additional information

bronan (https://app.qfield.cloud/a/Peregrine/BowenEcologyGDA94/)

SeqLaz commented 3 days ago

Hi @ronantaylorware,

Please try to reapply the most recent changes made to the project. You can review the latest versions of the data in QFieldCloud and identify which modifications need to be reapplied to synchronize the changes.

You can also force the download of projects from QFieldCloud by following these steps:

  1. Close the project in QGIS if it's currently open.
  2. Locate the project folder on your computer and create a backup in a secure location.
  3. Delete all files within the project folder.
  4. Open QGIS and click on the cloud icon of QFieldSync.
  5. Select the project and click on the "Synchronize" button.
  6. Choose the option "Prefer from the cloud" and proceed to download.

Alternatively, you can use the QFieldCloud SDK Python with API connection. Here's an example script you can use in Python QGIS:


import requests
from qfieldcloud_sdk import sdk

client = sdk.Client(url="https://app.qfield.cloud/api/v1/")
client.login(
    username="real_username",
    password="real_password"
)

client.download_project(
    project_id="XXXXX-XXXXX-XXXX-XXX-XXXXXXXX",
    local_dir='./',
    show_progress=True,
    force_download=True,
)

Replace "real_username", "real_password", and "project_id" with the actual information.

ronantaylorware commented 2 days ago

Thanks for your response

re-applying did work, however i dont want to re-apply every change. Good news is it looks to be working as expected today.

Note when it wasn't working i did force download the project, i selected a new project location and used a different username and the project came through the same, without the changes applied

Not sure what if anything changed between then and now, but as i said it is working today.

thanks for your time.