mapcentia / geocloud2

The GC2 framework helps you build a spatial data infrastructure quickly and easily. Powered using open source components for a scalable solution focused on freedom rather than fees.
https://www.osgeo.org/projects/gc2-vidi/
GNU Affero General Public License v3.0
148 stars 67 forks source link

Keyvalue now works for empty key (fetching all keys and values for th… #55

Closed sashuk closed 5 years ago

sashuk commented 5 years ago

Keyvalue now works for empty key (fetching all keys and values for the specific database)

mapcentia commented 5 years ago

@sashuk Its deployed now. I just had to make some changes: https://github.com/mapcentia/geocloud2/commit/44dbb4f3fd0f1fdf16105e727af52b48a74dcf31 But I don't see how you can filtre on user/sub-user server side?

sashuk commented 5 years ago

@mapcentia Thanks a lot, it works! About the filtering - I've thought that the backend uses some kind of object storage, so filtering over object properties (browserId or userId) will not be a problem. However, values are stored as a regular text field, so there is no real difference who will do the parsing and filtering. Also, the key-value storage is very abstract, which is great, so adding any state snapshot related filters could be confusing, I think.

mapcentia commented 5 years ago

@sashuk The backend does use an object storage - a JSONB field in the PostgreSQL database. So filtering over object properties will not be a problem. I think I misunderstood how you had planned to do filtering.

sashuk commented 5 years ago

@mapcentia Got it, thanks for the information!