← Back to team overview

dhis2-devs team mailing list archive

Re: [DHIS] Program gets unassigned to a user role during metadata export-import

 

Hi Morten,

Please find attached with the mail, the payload for the issue mentioned.

Thank you.

Archana Chillala
Application Developer
Email archanac@xxxxxxxxxxxxxxxx
Telephone +91 9100960533 <+91+9100960533>
[image: ThoughtWorks]
<http://www.thoughtworks.com/?utm_campaign=archana-chillala-signature&utm_medium=email&utm_source=thoughtworks-email-signature-generator>

On Wed, Mar 23, 2016 at 2:18 PM, Morten Olav Hansen <morten@xxxxxxxxx>
wrote:

> Just FYI.. if you want to fix this.. you can sen UserRole payload again..
> and it should match..
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Wed, Mar 23, 2016 at 12:18 PM, Morten Olav Hansen <morten@xxxxxxxxx>
> wrote:
>
>> Yes, its for both data sets and programs.
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Wed, Mar 23, 2016 at 11:54 AM, Vanya Seth <vanyas@xxxxxxxxxxxxxxxx>
>> wrote:
>>
>>> Hi Morten
>>>
>>> In case if its not already handled. Same might be the case for DataSets.
>>> UserRoles have dataset association as well.
>>>
>>> Regards
>>> Vanya
>>>
>>> On Wed, Mar 23, 2016 at 9:39 AM, Morten Olav Hansen <morten@xxxxxxxxx>
>>> wrote:
>>>
>>>> Hi again
>>>>
>>>> I'm guessing this is related the circular nature of our metadata, we
>>>> are importing users/userRoles, then program, etc etc.. but userRoles
>>>> actually need to know about programs to attach them.
>>>>
>>>> I will add a postImport hook for this in the new importer. I will have
>>>> a look at it first thing after easter holiday (back on Tuesday).
>>>>
>>>> --
>>>> Morten Olav Hansen
>>>> Senior Engineer, DHIS 2
>>>> University of Oslo
>>>> http://www.dhis2.org
>>>>
>>>> On Wed, Mar 23, 2016 at 10:49 AM, Morten Olav Hansen <morten@xxxxxxxxx>
>>>> wrote:
>>>>
>>>>> Hi Archana
>>>>>
>>>>> Could you provide me with a bit more information. When you say your
>>>>> are exporting then importing, are you exporting everything? including
>>>>> users, user roles etc etc?
>>>>>
>>>>> Also, please let us know DHIS version and revision, using legacy
>>>>> importer or new importer (from 2.23)
>>>>>
>>>>> --
>>>>> Morten Olav Hansen
>>>>> Senior Engineer, DHIS 2
>>>>> University of Oslo
>>>>> http://www.dhis2.org
>>>>>
>>>>> On Wed, Mar 23, 2016 at 12:35 AM, Archana Chillala <
>>>>> archanac@xxxxxxxxxxxxxxxx> wrote:
>>>>>
>>>>>> Thank you, Morten.
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> With Regards
>>> ThoughtWorks Technologies
>>> Hyderabad
>>>
>>> --Stay Hungry Stay Foolish!!
>>>
>>
>>
>

Attachment: program_user_role.json
Description: application/json


References