Adding default dashboards to a group via REST

Lex Clay shared this problem 42 days ago
Awaiting Reply

Hi Fishies,

Using the REST api to create a group in a client org and add default dashboards. In https://developers.yellowfinbi.com/dev/api-docs/current/#operation/bulkAddUserGroupDefaultDashboards it states that the dashboards are added in the order that they are specified. Running the calls through postman (to rule out anything else we do), that doesn't appear to happen. There were no existing default dashboards, the group was created via API call moments before the add default dashboard call was sent

Body array:

[
    {"resourceUUID":"e7409ff2-f846-44e1-a603-b78ec51b20b9"}, //Sales Performance
    {"resourceUUID":"1f797513-3fbb-4502-8e9a-b5827bef22d8"}, //Series Selection
    {"resourceUUID":"321e5a85-a349-4cfb-b8f4-c9141059a66a"}, //Drill
    {"resourceUUID":"f20c11a1-4aa3-4a2c-925a-209ba032558f"}, //Campaign Analysis
    {"resourceUUID":"f19e63f5-7175-4c57-897d-ed865aba8972"}  //Analysis
]
Order sent:

Sales Performance

Series Selection

Drill

Campaign Analysis

Analysis


Order Implemented:

Drill

Series Selection

Campain Analysis

Sales Performance

Analysis


It's pretty annoying & I can't think of an easy to implement work around other than add each dashboard one at a time &..well it's obvious why we wouldn't want to do that I think :)

Can you confirm behaviour & log as a bug for me please.

Many thanks.

Comments (2)

photo
1

Hi Lex,

Hope you're well.

I'll check this out and get back to you with an answer shortly.

Kind regards,

Chris

photo
1

Hi Lex,

I was able to replicate and confirm this behaviour. It's consistent whether using Dash UUIDs or just Dash IDs and seems to be in the order of number of characters, with longest first.

I'll get a defect logged.

Kind regards,

Chris

photo
1

Thanks Chris.

Number of characters?..can you expand a bit, number of characters in what variable?

photo
1

Hi Lex,

Sorry I missed your reply here and not being clear.

The list of dashboards when added via the API call is descending, ordered by the number of characters in the name of the dashboard. That's how it's being sorted right now, compared to when you add them via the UI.

I hope that makes sense!

Kind regards,

Chris

photo
1

Hmmm..not quite though. Analysis is being added last which has considerably less characters than all the others bar Drill. Character length order is

5

16

16

17

8

photo
1

Hi Lex,

Hmm, it does seem your order differs from the behaviour I found in my testing.

Which version of Yellowfin are you using?

Kind regards,

Chris

photo