EyeSeeTea / dataset-configuration-blessed

Enhanced dataset manager Dhis2 app (blessed repository)
GNU General Public License v3.0
0 stars 1 forks source link

Editing and saving particular dataset by "particular user" gives error #171

Closed ardhimanshu closed 5 years ago

ardhimanshu commented 5 years ago

HighPriority: Editing and saving particular dataset by "particular user" gives error. User Thomas Kilunda. When the user tries to edit and save a dataset again, it gives him error message. Message attached.

ardhimanshu commented 5 years ago

ThomasKilundaDataSetSavingError.txt

adrianq commented 5 years ago

@ardhimanshu It has to do with sharing settings as usual.

These are the sharings for a regular dataset: https://gors.nrc.no/api/sharing?type=dataSet&id=x802DwRKB86 As you can see, sharings usually contains the user groups GL_GlobalAdministrator plus [country]_administrators and [country]_users

However in the one you shared with us the sharing looks like this: https://gors.nrc.no/api/sharing?type=dataSet&id=edQvobvlQTh As you can see, in this case, sharings are only set for the user group GL_GlobalAdministrator. Therefore a regular user can not edit it. To fix it, just add the other two groups for the country to the sharings of this dataset.

We are not sure how this happens as the step to choose the country is compulsory unless you select a project. If you choose a project the country is set behind the scenes and it is transparent for the user. In any case, the country should be always set when creating a dataset. If this happens again it would be good to know how the dataset was created (a step-by-step explanation).