Adding default dashboards to a group via REST

Lex Clay shared this problem 2 years ago
Completed

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.

Replies (3)

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
photo
1

Hi Lex,

I hope you're well.

I can confirm that this defect has been fixed in 9.10!

Please see our announcement of the release of this version, which contains links to download the update.

With the resolution of this bug, this concludes the ticket and I'll mark it as complete.

If you have any questions, don't hesitate to ask.

Kind regards,

Chris

Leave a Comment
 
Attach a file