Program gets unassigned to a user role during metadata export-import

Hi Morten,

We have two instances of DHIS one of which has been setup with sample metadata which is imported into the other instance through export-import.

On the first instance, we have created a program and assigned it to a user role. Then, metadata is exported from that instance and imported into the other. The program gets imported into the second instance, but comes unassigned to any user role (even if that has been configured on the first instance). Is this a known issue?

Any help here would be appreciated.

Thanks

···

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

Currently using DHIS version 2.23 on both instances.

···

On Mon, Mar 14, 2016 at 1:26 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi Morten,

We have two instances of DHIS one of which has been setup with sample metadata which is imported into the other instance through export-import.

On the first instance, we have created a program and assigned it to a user role. Then, metadata is exported from that instance and imported into the other. The program gets imported into the second instance, but comes unassigned to any user role (even if that has been configured on the first instance). Is this a known issue?

Any help here would be appreciated.

Thanks

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

Could you please provide any update on this?

···

On Mon, Mar 14, 2016 at 1:27 PM, Archana Chillala archanac@thoughtworks.com wrote:

Currently using DHIS version 2.23 on both instances.

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Mon, Mar 14, 2016 at 1:26 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi Morten,

We have two instances of DHIS one of which has been setup with sample metadata which is imported into the other instance through export-import.

On the first instance, we have created a program and assigned it to a user role. Then, metadata is exported from that instance and imported into the other. The program gets imported into the second instance, but comes unassigned to any user role (even if that has been configured on the first instance). Is this a known issue?

Any help here would be appreciated.

Thanks

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

Is this using the new or old importer? I don’t have a testcase for this yet, I will need to look into it.

···

On Tue, Mar 22, 2016 at 7:55 PM, Archana Chillala archanac@thoughtworks.com wrote:

Could you please provide any update on this?

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Mon, Mar 14, 2016 at 1:27 PM, Archana Chillala archanac@thoughtworks.com wrote:

Currently using DHIS version 2.23 on both instances.

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Mon, Mar 14, 2016 at 1:26 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi Morten,

We have two instances of DHIS one of which has been setup with sample metadata which is imported into the other instance through export-import.

On the first instance, we have created a program and assigned it to a user role. Then, metadata is exported from that instance and imported into the other. The program gets imported into the second instance, but comes unassigned to any user role (even if that has been configured on the first instance). Is this a known issue?

Any help here would be appreciated.

Thanks

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

​Oh, I’m sorry. This was with the old importer, Morten. I’ll test it with the new importer and let you know the result.

···

On Tue, Mar 22, 2016 at 6:27 PM, Morten Olav Hansen morten@dhis2.org wrote:

Is this using the new or old importer? I don’t have a testcase for this yet, I will need to look into it.

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

On Tue, Mar 22, 2016 at 7:55 PM, Archana Chillala archanac@thoughtworks.com wrote:

Could you please provide any update on this?

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Mon, Mar 14, 2016 at 1:27 PM, Archana Chillala archanac@thoughtworks.com wrote:

Currently using DHIS version 2.23 on both instances.

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Mon, Mar 14, 2016 at 1:26 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi Morten,

We have two instances of DHIS one of which has been setup with sample metadata which is imported into the other instance through export-import.

On the first instance, we have created a program and assigned it to a user role. Then, metadata is exported from that instance and imported into the other. The program gets imported into the second instance, but comes unassigned to any user role (even if that has been configured on the first instance). Is this a known issue?

Any help here would be appreciated.

Thanks

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

Ok, it might be the same for the new one. I will try and and a test-case tomorrow.

···

On Tue, Mar 22, 2016 at 8:06 PM, Archana Chillala archanac@thoughtworks.com wrote:

​Oh, I’m sorry. This was with the old importer, Morten. I’ll test it with the new importer and let you know the result.

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Tue, Mar 22, 2016 at 6:27 PM, Morten Olav Hansen morten@dhis2.org wrote:

Is this using the new or old importer? I don’t have a testcase for this yet, I will need to look into it.

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

On Tue, Mar 22, 2016 at 7:55 PM, Archana Chillala archanac@thoughtworks.com wrote:

Could you please provide any update on this?

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Mon, Mar 14, 2016 at 1:27 PM, Archana Chillala archanac@thoughtworks.com wrote:

Currently using DHIS version 2.23 on both instances.

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Mon, Mar 14, 2016 at 1:26 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi Morten,

We have two instances of DHIS one of which has been setup with sample metadata which is imported into the other instance through export-import.

On the first instance, we have created a program and assigned it to a user role. Then, metadata is exported from that instance and imported into the other. The program gets imported into the second instance, but comes unassigned to any user role (even if that has been configured on the first instance). Is this a known issue?

Any help here would be appreciated.

Thanks

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

Thank you, Morten.

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)

···

On Wed, Mar 23, 2016 at 12:35 AM, Archana Chillala archanac@thoughtworks.com wrote:

Thank you, Morten.

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

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).

···

On Wed, Mar 23, 2016 at 10:49 AM, Morten Olav Hansen morten@dhis2.org 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

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@thoughtworks.com wrote:

Thank you, Morten.

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@dhis2.org 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@dhis2.org 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@thoughtworks.com wrote:

Thank you, Morten.

With Regards
ThoughtWorks Technologies

Hyderabad

–Stay Hungry Stay Foolish!!

Yes, its for both data sets and programs.

···

On Wed, Mar 23, 2016 at 11:54 AM, Vanya Seth vanyas@thoughtworks.com 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

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

On Wed, Mar 23, 2016 at 9:39 AM, Morten Olav Hansen morten@dhis2.org 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).

With Regards
ThoughtWorks Technologies

Hyderabad

–Stay Hungry Stay Foolish!!

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@dhis2.org 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@thoughtworks.com wrote:

Thank you, Morten.

Just FYI… if you want to fix this… you can sen UserRole payload again… and it should match…

···

On Wed, Mar 23, 2016 at 12:18 PM, Morten Olav Hansen morten@dhis2.org wrote:

Yes, its for both data sets and programs.

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

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@thoughtworks.com 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@dhis2.org 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).

With Regards
ThoughtWorks Technologies

Hyderabad

–Stay Hungry Stay Foolish!!

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@dhis2.org 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@thoughtworks.com wrote:

Thank you, Morten.

Hi Morten,

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

Thank you.

program_user_role.json (7.16 KB)

···

On Wed, Mar 23, 2016 at 2:18 PM, Morten Olav Hansen morten@dhis2.org wrote:

Just FYI… if you want to fix this… you can sen UserRole payload again… and it should match…

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

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@dhis2.org 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@thoughtworks.com 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@dhis2.org 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).

With Regards
ThoughtWorks Technologies

Hyderabad

–Stay Hungry Stay Foolish!!

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@dhis2.org 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@thoughtworks.com wrote:

Thank you, Morten.

For the record, this was fixed.

Lars

···

On Mon, Mar 14, 2016 at 8:57 AM, Archana Chillala archanac@thoughtworks.com wrote:

Currently using DHIS version 2.23 on both instances.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Mon, Mar 14, 2016 at 1:26 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi Morten,

We have two instances of DHIS one of which has been setup with sample metadata which is imported into the other instance through export-import.

On the first instance, we have created a program and assigned it to a user role. Then, metadata is exported from that instance and imported into the other. The program gets imported into the second instance, but comes unassigned to any user role (even if that has been configured on the first instance). Is this a known issue?

Any help here would be appreciated.

Thanks

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

Thanks, Lars!

···

On Fri, Jun 24, 2016 at 4:48 PM, Lars Helge Øverland lars@dhis2.org wrote:

For the record, this was fixed.

Lars

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Mon, Mar 14, 2016 at 8:57 AM, Archana Chillala archanac@thoughtworks.com wrote:

Currently using DHIS version 2.23 on both instances.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Mon, Mar 14, 2016 at 1:26 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi Morten,

We have two instances of DHIS one of which has been setup with sample metadata which is imported into the other instance through export-import.

On the first instance, we have created a program and assigned it to a user role. Then, metadata is exported from that instance and imported into the other. The program gets imported into the second instance, but comes unassigned to any user role (even if that has been configured on the first instance). Is this a known issue?

Any help here would be appreciated.

Thanks

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks