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

Adjust instructions to setup a PG service #480

Open
gacarrillor opened this issue Jul 9, 2024 · 4 comments
Open

Adjust instructions to setup a PG service #480

gacarrillor opened this issue Jul 9, 2024 · 4 comments

Comments

@gacarrillor
Copy link
Contributor

Creating, setting up and even testing a PG service file might be overwhelming for end users, specially for Windows ones.

We've created a plugin to ease PG service file creation and editing. By using it, users avoid creating new files on their own and dealing with environment variables. See https://github.com/opengisch/qgis-pg-service-parser-plugin/

I'd suggest to replace the current documentation on creating and setting up a PG service file (from https://docs.qfield.org/how-to/pg-service/) by some step-by-step instructions using the plugin.

To match almost the whole QField/QFieldCloud workflow described in the aforementioned link, we can adapt/extend the plugin in two ways :

  • Add a Connect tab so that it's easy to create and test a QGIS connection via a just-created service. (Work already started, see PR)
  • Add a button to copy the service definition, which would be handy since users will have to paste it to QFieldCloud's secrets interface.

I'd be happy to both extend the plugin and update QField documentation, just let me know when to start.

@gacarrillor
Copy link
Contributor Author

Ping @m-kuhn
:)

@m-kuhn
Copy link
Member

m-kuhn commented Sep 18, 2024

I do like the idea 👍

@suricactus
Copy link
Collaborator

Note we can open an endpoint on QFieldCloud so one can directly push the credentials there.

@gacarrillor
Copy link
Contributor Author

Note we can open an endpoint on QFieldCloud so one can directly push the credentials there.

Do you mean, like:


You have 2 options:

  • Click on copy to get the PG_service configuration and paste it into QFieldCloud's secrets interface.
  • Tell QFieldSync where is your pg_service.conf file, select the service, and click on the (new) button Send credentials to QFieldCloud?

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