actinia-org / actinia-core

Actinia Core is an open source REST API for scalable, distributed, high performance processing of geographical data that uses mainly GRASS GIS for computational tasks (DOI: https://doi.org/10.5281/zenodo.5879231) | Tutorial: https://actinia-org.github.io/actinia-core/ | Docker: https://hub.docker.com/r/mundialis/actinia-core
https://actinia.mundialis.de/
GNU General Public License v3.0
81 stars 23 forks source link

How to manage central, persistent data as superadmin #382

Closed ninsbl closed 2 years ago

ninsbl commented 2 years ago

Maybe I just overlooked it, but I could not figure out how to best manage data in persistent mapsets for all users as superadmin...

Is that somewhere documented already?

In a try-out, where I do have superadmin rights, I would like to add data that all users can access to test actinia workflows with own, real life data... But I feel a bit lost here. I do have a fair understanding of GRASS GIS and could probably work on the server directly in GRASS, but it would be nice if I could do things through actinia...

May have some overlap with #264

ninsbl commented 2 years ago

Looking at: https://mmacata.github.io/actinia-introduction/img/actinia_PDB_UDB.png I wonder if it would be an option to create a UDB for superadmin and then create a symlink for either the whole DB or selected locations to the PDB, or would that have problematic side effects?

mmacata commented 2 years ago

Hi @ninsbl in general it is not recommended to create the shared data pool via API. There are different options.

If you really want to use the API here and keep the option to maintain the data pool via API, the approach with symlinks could work. If all users are in the same group, a symlink wouldn't even be necessary, as mapsets are shared amongst groups. But as I already wrote in #264, by design the persistent DB is not editable via API and often mounted read-only, so that no data loss can occur.

ninsbl commented 2 years ago

Thanks, @mmacata. Very helpful. This answers my question and we will then likely go for a non-REST-API (or SSH / GRASS GIS) way to maintain persistent data...

Maybe worth adding this to FAQ?...

mmacata commented 1 year ago

Definitely, I added it here