several links in api/resources pointing to the same ("dimensions") url

Hi.

I noticed that in in version 2.15 (and also in version 2.13), some of the resources in the api/resources page point to the same url (api/dimensions)

These include:

<resource name="Categories" href="[https://apps.dhis2.org/demo/api/dimensions](https://apps.dhis2.org/demo/api/dimensions)">
<resource name="CategoryOptionGroupSets" href="[https://apps.dhis2.org/demo/api/dimensions](https://apps.dhis2.org/demo/api/dimensions)">

<resource name="DataElementGroupSets" href="[https://apps.dhis2.org/demo/api/dimensions](https://apps.dhis2.org/demo/api/dimensions)">
<resource name="DataElements" href="[https://apps.dhis2.org/demo/api/dimensions](https://apps.dhis2.org/demo/api/dimensions)">

<resource name="Dimensions" href="[https://apps.dhis2.org/demo/api/dimensions](https://apps.dhis2.org/demo/api/dimensions)">
<resource name="OrganisationUnitGroupSets" href="[https://apps.dhis2.org/demo/api/dimensions](https://apps.dhis2.org/demo/api/dimensions)">

<resource name="TrackedEntityAttributes" href="[https://apps.dhis2.org/demo/api/dimensions](https://apps.dhis2.org/demo/api/dimensions)">

Is this intentional or should each of the resources point to a url with the resource name (only camelCased)

Hi Lavi,

It is not intentional and has been fixed in a later version.

Bug report is here

https://bugs.launchpad.net/dhis2/+bug/1216825

Best regards,

Jason

···

On Sun, Jul 6, 2014 at 1:36 PM, Lavi Shpigelman shpigi@gmail.com wrote:

Hi.

I noticed that in in version 2.15 (and also in version 2.13), some of the resources in the api/resources page point to the same url (api/dimensions)

These include:

<resource name="Categories" href="[https://apps.dhis2.org/demo/api/dimensions](https://apps.dhis2.org/demo/api/dimensions)">
<resource name="CategoryOptionGroupSets" href="[https://apps.dhis2.org/demo/api/dimensions](https://apps.dhis2.org/demo/api/dimensions)">


<resource name="DataElementGroupSets" href="[https://apps.dhis2.org/demo/api/dimensions](https://apps.dhis2.org/demo/api/dimensions)">
<resource name="DataElements" href="[https://apps.dhis2.org/demo/api/dimensions](https://apps.dhis2.org/demo/api/dimensions)">


<resource name="Dimensions" href="[https://apps.dhis2.org/demo/api/dimensions](https://apps.dhis2.org/demo/api/dimensions)">
<resource name="OrganisationUnitGroupSets" href="[https://apps.dhis2.org/demo/api/dimensions](https://apps.dhis2.org/demo/api/dimensions)">


<resource name="TrackedEntityAttributes" href="[https://apps.dhis2.org/demo/api/dimensions](https://apps.dhis2.org/demo/api/dimensions)">

Is this intentional or should each of the resources point to a url with the resource name (only camelCased)


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

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

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

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

Hi Lavi,

this has been corrected in latest development version so will be okay in 2.16. It is not intentional but also not completely arbitrary - all those classes implement a common “dimensional” interface and as a result ended up with wrong re-directs. The Web API has undergone a rewrite for 2.16 so unfortunately we are not able to back-port the “fix”.

regards,

Lars

···

On Sun, Jul 6, 2014 at 1:36 PM, Lavi Shpigelman shpigi@gmail.com wrote:

Hi.

I noticed that in in version 2.15 (and also in version 2.13), some of the resources in the api/resources page point to the same url (api/dimensions)

These include:

<resource name="Categories" href="[https://apps.dhis2.org/demo/api/dimensions](https://apps.dhis2.org/demo/api/dimensions)">
<resource name="CategoryOptionGroupSets" href="[https://apps.dhis2.org/demo/api/dimensions](https://apps.dhis2.org/demo/api/dimensions)">


<resource name="DataElementGroupSets" href="[https://apps.dhis2.org/demo/api/dimensions](https://apps.dhis2.org/demo/api/dimensions)">
<resource name="DataElements" href="[https://apps.dhis2.org/demo/api/dimensions](https://apps.dhis2.org/demo/api/dimensions)">


<resource name="Dimensions" href="[https://apps.dhis2.org/demo/api/dimensions](https://apps.dhis2.org/demo/api/dimensions)">
<resource name="OrganisationUnitGroupSets" href="[https://apps.dhis2.org/demo/api/dimensions](https://apps.dhis2.org/demo/api/dimensions)">


<resource name="TrackedEntityAttributes" href="[https://apps.dhis2.org/demo/api/dimensions](https://apps.dhis2.org/demo/api/dimensions)">

Is this intentional or should each of the resources point to a url with the resource name (only camelCased)


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

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

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

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

Lars, is there an intention to fix this bug in 2.15 ? I understand that the Web API is being rewritten but this is a major bug. Or is 2.15 not to be regarded as a stable release, with the userbase being encouraged to move directly to 2.16?

- Edward -

···

On Sunday, July 6, 2014 7:17 PM, Lars Helge Øverland <larshelge@gmail.com> wrote:

Hi Lavi,

this has been corrected in latest development version so will be okay in 2.16. It is not intentional but also not completely arbitrary - all those classes implement a common "dimensional" interface and as a result ended up with wrong re-directs. The Web API has undergone a rewrite for 2.16 so unfortunately we are not able to back-port the "fix".

regards,

Lars

On Sun, Jul 6, 2014 at 1:36 PM, Lavi Shpigelman <shpigi@gmail.com> wrote:

Hi.

I noticed that in in version 2.15 (and also in version 2.13), some of the resources in the api/resources page point to the same url (api/dimensions)

These include:

<resource name="Categories" href="DHIS2 App Hub;
<resource name="CategoryOptionGroupSets" href="DHIS2 App Hub;
<resource name="DataElementGroupSets" href="DHIS2 App Hub;
<resource name="DataElements" href="DHIS2 App Hub;
<resource name="Dimensions" href="DHIS2 App Hub;
<resource name="OrganisationUnitGroupSets" href="DHIS2 App Hub;
<resource name="TrackedEntityAttributes" href="DHIS2 App Hub;
Is this intentional or should each of the resources point to a url with the resource name (only camelCased)

_______________________________________________
Mailing list: DHIS 2 Users in Launchpad
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : DHIS 2 Users in Launchpad
More help : ListHelp - Launchpad Help

_______________________________________________
Mailing list: DHIS 2 Users in Launchpad
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : DHIS 2 Users in Launchpad
More help : ListHelp - Launchpad Help

Hi Edward,

I’m sorry but we don’t plan to fix this. If you let us know your use-case we are happy to suggest a work-around.

regards,

Lars

···

On Tue, Jul 22, 2014 at 9:32 AM, Edward Ari Bichetero ebichete@yahoo.com wrote:

Lars, is there an intention to fix this bug in 2.15 ? I understand that the Web API is being rewritten but this is a major bug. Or is 2.15 not to be regarded as a stable release, with the userbase being encouraged to move directly to 2.16?

  • Edward -

On Sunday, July 6, 2014 7:17 PM, Lars Helge Øverland larshelge@gmail.com wrote:

Hi Lavi,

this has been corrected in latest development version so will be okay in 2.16. It is not intentional but also not completely arbitrary - all those classes implement a common “dimensional” interface and as a result ended up with wrong re-directs. The Web API has undergone a rewrite for 2.16 so unfortunately we are not able to back-port the “fix”.

regards,

Lars

On Sun, Jul 6, 2014 at 1:36 PM, Lavi Shpigelman shpigi@gmail.com wrote:

Hi.

I noticed that in in version 2.15 (and also in version 2.13), some of the resources in the api/resources page point to the same url (api/dimensions)

These include:

Is this intentional or should each of the resources point to a url with the resource name (only camelCased)


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

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

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

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


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

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

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

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