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

Changes not really applying on qfield cloud #5832

Closed
ronantaylorware opened this issue Nov 19, 2024 · 2 comments
Closed

Changes not really applying on qfield cloud #5832

ronantaylorware opened this issue Nov 19, 2024 · 2 comments
Labels

Comments

@ronantaylorware
Copy link

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)

  • Device: samsung a32
  • OS: android 13
  • QField version: 3.4.5 ebo d260bb qt6.7.3

Additional information

  • Problem started happening recently, didn't happen in an older version of QField: Unknown
  • Problem can be reliably reproduced, doesn't happen randomly: Tried a few times, same behaviour
  • Problem happens with all files and projects, not only some files or projects: Unknown

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

@SeqLaz
Copy link
Member

SeqLaz commented Nov 19, 2024

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

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.

@SeqLaz SeqLaz closed this as completed Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants