Dashboards not showing up for non-admin users

Hi,

In the latest build Rev No. 18040, the non-admin users are not able to view the dashboards which are assigned to their respective user groups.

On investigating further, we figured out that giving paging=false param to /api/dashboards is causing the problem. This issue only occurs when user is not a Superuser.

Here are the responses from the API calls.

http://localhost:8080/api/dashboards.json?paging=false (Logged in as test user)
{

  • dashboards: [ ]

}

http://localhost:8080/api/dashboards.json (Logged in as test user)
{

  • pager: {

    • page: 1,

    • pageCount: 1,

    • total: 1

    },

  • dashboards: [

    • {

      • name: “AFGHANISTAN”,

      • id: “b872ws1db3r”

      }

    ]

}

···

Sandesh DoolipetaApplication Developer
Email
sandeshd@thoughtworks.com

Telephone
9686062727

Hi Sandesh,

that sounds strange - I was not able to reproduce on https://apps.dhis2.org/dev.

Could you please check that the database tables to see if the dashboards actually have 1) a userid set to some user 2) a publicaccess string set to ‘--------’ or some valid not null value ?

regards,

Lars

···

On Mon, Jan 19, 2015 at 6:24 AM, Sandesh Sukumar Doolipeta sandeshd@thoughtworks.com wrote:

Hi,

In the latest build Rev No. 18040, the non-admin users are not able to view the dashboards which are assigned to their respective user groups.

On investigating further, we figured out that giving paging=false param to /api/dashboards is causing the problem. This issue only occurs when user is not a Superuser.

Here are the responses from the API calls.

http://localhost:8080/api/dashboards.json?paging=false (Logged in as test user)
{

  • dashboards:

}

http://localhost:8080/api/dashboards.json (Logged in as test user)
{

  • pager: {
    • page: 1,
  • pageCount: 1,
  • total: 1

},

  • dashboards: [
    • {
      • name: “AFGHANISTAN”,
- id: "b872ws1db3r"
}

]

Sandesh DoolipetaApplication Developer
Email
sandeshd@thoughtworks.com

Telephone
9686062727

}

Hi Lars ,

It is working as expected on the latest build. Thanks :slight_smile:

···

On Mon, Jan 19, 2015 at 4:27 PM, Lars Helge Øverland larshelge@gmail.com wrote:

Hi Sandesh,

that sounds strange - I was not able to reproduce on https://apps.dhis2.org/dev.

Could you please check that the database tables to see if the dashboards actually have 1) a userid set to some user 2) a publicaccess string set to ‘--------’ or some valid not null value ?

regards,

Lars

On Mon, Jan 19, 2015 at 6:24 AM, Sandesh Sukumar Doolipeta sandeshd@thoughtworks.com wrote:

Hi,

In the latest build Rev No. 18040, the non-admin users are not able to view the dashboards which are assigned to their respective user groups.

On investigating further, we figured out that giving paging=false param to /api/dashboards is causing the problem. This issue only occurs when user is not a Superuser.

Here are the responses from the API calls.

http://localhost:8080/api/dashboards.json?paging=false (Logged in as test user)
{

  • dashboards:

}

http://localhost:8080/api/dashboards.json (Logged in as test user)
{

  • pager: {
    • page: 1,
  • pageCount: 1,
  • total: 1

},

  • dashboards: [
    • {
      • name: “AFGHANISTAN”,
- id: "b872ws1db3r"
}

]

Sandesh DoolipetaApplication Developer
Email
sandeshd@thoughtworks.com

Telephone
9686062727

}

Sandesh DoolipetaApplication Developer
Email
sandeshd@thoughtworks.com

Telephone
9686062727

Great.

···

On Tue, Jan 20, 2015 at 11:12 AM, Sandesh Sukumar Doolipeta sandeshd@thoughtworks.com wrote:

Hi Lars ,

It is working as expected on the latest build. Thanks :slight_smile:

On Mon, Jan 19, 2015 at 4:27 PM, Lars Helge Øverland larshelge@gmail.com wrote:

Hi Sandesh,

that sounds strange - I was not able to reproduce on https://apps.dhis2.org/dev.

Could you please check that the database tables to see if the dashboards actually have 1) a userid set to some user 2) a publicaccess string set to ‘--------’ or some valid not null value ?

regards,

Lars


Sandesh DoolipetaApplication Developer
Email
sandeshd@thoughtworks.com

Telephone
9686062727

On Mon, Jan 19, 2015 at 6:24 AM, Sandesh Sukumar Doolipeta sandeshd@thoughtworks.com wrote:

Hi,

In the latest build Rev No. 18040, the non-admin users are not able to view the dashboards which are assigned to their respective user groups.

On investigating further, we figured out that giving paging=false param to /api/dashboards is causing the problem. This issue only occurs when user is not a Superuser.

Here are the responses from the API calls.

http://localhost:8080/api/dashboards.json?paging=false (Logged in as test user)
{

  • dashboards:

}

http://localhost:8080/api/dashboards.json (Logged in as test user)
{

  • pager: {
    • page: 1,
  • pageCount: 1,
  • total: 1

},

  • dashboards: [
    • {
      • name: “AFGHANISTAN”,
- id: "b872ws1db3r"
}

]

Sandesh DoolipetaApplication Developer
Email
sandeshd@thoughtworks.com

Telephone
9686062727

}