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

Offer a geographic filtering solution #297

Open
haubourg opened this issue Apr 30, 2019 · 1 comment
Open

Offer a geographic filtering solution #297

haubourg opened this issue Apr 30, 2019 · 1 comment
Labels
0 - WishList Enhancement External funding feature or bugfix funded by someone else

Comments

@haubourg
Copy link
Contributor

When using a centralized QWAT DB serving different organization, it becomes quickly necessary to offer a way to geographically filter rows so that each organization sees only its owns data.

QWAT has not been designed for that purpose and we'll try to evaluate the different solutions available.
So far we see 4 possibilities :

-1 add layer filter in the qgs project and distribute different projects for each customer. Not secure, but helps to prototype and stress out the data model capabilities

-2 Use row level security policies or security barrier on views on DB's side. This would be more elegant, but relies on the same attribute filtering options as solution 1

-3 Distribute local QWAT databases and create an infrastructure to aggregate data in a central reporting database. This is not optimal since most small municipalities can't offer the hosting for the infrastructure

-4 Go to a full web app and handle row policies at the application level. Not planned at all at the moment :)

Any thougth welcome here !

@haubourg haubourg added 0 - WishList Enhancement External funding feature or bugfix funded by someone else labels Apr 30, 2019
@ponceta
Copy link
Member

ponceta commented May 2, 2019

Pully

-1 Solution is used here, fk_district attribute does the job. But we have the chance to have a centralised edition for both districts.

Some tables missed this fk_district attribute.

Client side is a bit more configuration but is quite simple now on QGIS side.
-> QGIS enables to set an attribute with default non editable value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - WishList Enhancement External funding feature or bugfix funded by someone else
Projects
None yet
Development

No branches or pull requests

2 participants