QField icon indicating copy to clipboard operation
QField copied to clipboard

Project Export fails to make online layers for QField Cloud projects

Open thymaro opened this issue 2 years ago • 0 comments

Describe the issue

When packaging a QGIS project containting a PostGIS layer in a remote DB, the layer is exported to GPKG in the QField Cloud project. The layer configurations are set to "prefer online" in the QField plugin settings tab in the layer properties. The GPKG in the QField Cloud project is set to "offline editing" instead.

DB access

host: postgresql-beq.alwaysdata.net database: beq_testdb_usutf8 table: test_table_01 usr: beq_testuser input: let-me-in-1234

Reproduction steps

Steps to reproduce the behavior:

  1. Create new QGIS project
  2. Add a PostGIS table as layer
  3. Configure the layers to be "directly access data source"
  4. Export as QField Cloud project
    1. It opens in the QGIS browser
    2. Double-click the supposed PostGIS layer, the info says it's a GPKG
    3. Check the file on disk exists --> sure enough, it's a GeoPackage file.

Expected behavior

The QField Cloud Project should access the PostGIS database and make edits to the table directly.

Observed behavior

cf. above

Additional files

testproject_01.zip testproject_01_cloud.zip

Desktop (please complete the following information)

  • OS: Win10
  • QGIS Version 3.22.10-Białowieża
  • QFieldSync Version v4.1.1

Mobile (please complete the following information)

  • Device: Galaxy Tap S6, SM-T865
  • OS: Android 11
  • QField version: v2.2.3 Coordinated Capybara (772d14)

Additional information

  • Problem started happening recently, didn't happen in an older version of QField: don't know, as I didn't use it like this with older versions.
  • Problem can be reliably reproduced, doesn't happen randomly: Yes
  • Problem happens with all files and projects, not only some files or projects: Yes, tried several diffeent files and projects and DBs and users.

QFieldCloud

username: thymaro project name: testproject_01

thymaro avatar Aug 31 '22 12:08 thymaro