Re: [Dhis2-devs] Unable to create dashboards on latest revision of trunk.

2015-02-15 Thread Morten Olav Hansen
Hi Sandesh Was this working before? because this is not really how the API works... normally you would create the dashboard, then add the items.. We do support doing both if you do something like this (untested, but should work) { "dashboardItems": [ { "id": "di-client-generated-uid", "char

Re: [Dhis2-devs] Unable to create dashboards on latest revision of trunk.

2015-02-15 Thread Sandesh Sukumar Doolipeta
Hi Lars , The chart ID in the payload sent to you was changed. When we tried posting in the app , we used a valid chart ID. On Sun, Feb 15, 2015 at 4:53 PM, Lars Helge Øverland wrote: > Hi Mansi, > > is the request you included in the email the same as you used when > attempting to POST? If

Re: [Dhis2-devs] Unable to create dashboards on latest revision of trunk.

2015-02-15 Thread Lars Helge Øverland
Hi Mansi, is the request you included in the email the same as you used when attempting to POST? If you look under dashboardItems > chart > id you have "chartId", which is not a valid UID - this should be a reference to an existing chart UID. Try changing that and see if it helps. { "display

Re: [Dhis2-devs] Unable to create dashboards on latest revision of trunk.

2015-02-13 Thread Sandesh Sukumar Doolipeta
Hi , Did anyone have a chance to take a look at this issue? . We are still facing the same issue on rev no. 18249. On Wed, Feb 11, 2015 at 2:35 PM, Mansi Singhal wrote: > Hey Lars, > > dashboardItem table has uid column. PFA the snapshot for the same. > > On Wed, Feb 11, 2015 at 2:33 PM, Lars H

Re: [Dhis2-devs] Unable to create dashboards on latest revision of trunk.

2015-02-11 Thread Mansi Singhal
Hey Lars, dashboardItem table has uid column. PFA the snapshot for the same. On Wed, Feb 11, 2015 at 2:33 PM, Lars Helge Øverland wrote: > Hi Mansi, > > can you also check whether table "dashboarditem" also contains a uid > column? > > Lars > > -- Regards, Mansi Singhal _

Re: [Dhis2-devs] Unable to create dashboards on latest revision of trunk.

2015-02-11 Thread Lars Helge Øverland
Hi Mansi, can you also check whether table "dashboarditem" also contains a uid column? Lars ___ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs More help : ht

Re: [Dhis2-devs] Unable to create dashboards on latest revision of trunk.

2015-02-11 Thread Morten Olav Hansen
Ok, I will have a look -- Morten On Wed, Feb 11, 2015 at 3:33 PM, Mansi Singhal wrote: > Yeah Yeah. We didn't check on the UI. We have seen it only for web-api. > > And the issue is coming only if payload contains "dashboardItems". > > On Wed, Feb 11, 2015 at 1:55 PM, Morten Olav Hansen > wrot

Re: [Dhis2-devs] Unable to create dashboards on latest revision of trunk.

2015-02-11 Thread Mansi Singhal
Yeah Yeah. We didn't check on the UI. We have seen it only for web-api. And the issue is coming only if payload contains "dashboardItems". On Wed, Feb 11, 2015 at 1:55 PM, Morten Olav Hansen wrote: > Is it only through the web-api you see the issue? I can create a new one > through the UI just

Re: [Dhis2-devs] Unable to create dashboards on latest revision of trunk.

2015-02-11 Thread Morten Olav Hansen
Is it only through the web-api you see the issue? I can create a new one through the UI just fine in the latest revision (on a empty db). I will test it with the web-api soon. -- Morten On Wed, Feb 11, 2015 at 3:23 PM, Mansi Singhal wrote: > PFA the snapshot of dashboard table. > > On Wed, Feb

Re: [Dhis2-devs] Unable to create dashboards on latest revision of trunk.

2015-02-11 Thread Mansi Singhal
PFA the snapshot of dashboard table. On Wed, Feb 11, 2015 at 1:51 PM, Mansi Singhal wrote: > Hey Morten, > > Dashboard table contains the UID column. This is something else. Can you > please look into the issue. > > On Wed, Feb 11, 2015 at 1:05 PM, Morten Olav Hansen > wrote: > >> This is proba

Re: [Dhis2-devs] Unable to create dashboards on latest revision of trunk.

2015-02-11 Thread Mansi Singhal
Hey Morten, Dashboard table contains the UID column. This is something else. Can you please look into the issue. On Wed, Feb 11, 2015 at 1:05 PM, Morten Olav Hansen wrote: > This is probably related to the other TW bug reported on this list? If > dashboards don't have UIDs, it will fail. > > If

Re: [Dhis2-devs] Unable to create dashboards on latest revision of trunk.

2015-02-10 Thread Morten Olav Hansen
This is probably related to the other TW bug reported on this list? If dashboards don't have UIDs, it will fail. If its not, can you at least confirm that dashboard table contains the UID column? -- Morten On Wed, Feb 11, 2015 at 1:27 PM, Mansi Singhal wrote: > Hello, > > We are on the latest

[Dhis2-devs] Unable to create dashboards on latest revision of trunk.

2015-02-10 Thread Mansi Singhal
Hello, We are on the latest revision(18220) of dhis-trunk. We are facing issues creating dashboard. We tried debugging the code and had seen that method with signature: *List getByUid( Collection uids ) [Line no: 436]* is throwing an exception while returning a list. *That is, return getSharing